having a little trouble following the necessary logic to get this formula field syntax correct. i need to accomplish the following:
- If source_system__c="Adobe" AND
If type__c="Deliverability" AND
- If Email_Event_Status_Code__c="127" then "Not applicable"
- If Email_Event_Status_Code__c="0" then "Ignored"
- If Email_Event_Status_Code__c="1" then "Sent"
- If Email_Event_Status_Code__c="2" then "Failed"
- If Email_Event_Status_Code__c="6" then "Pending"
- If Email_Event_Status_Code__c="7" then "Delivery canceled"
- If Email_Event_Status_Code__c="8" then "Prepared"
If type__c="Email Engagement" AND
- If Email_Event_Status_Code__c="0" then "Not defined"
- If Email_Event_Status_Code__c="1" then "Email click"
- If Email_Event_Status_Code__c="2" then "Open"
- If Email_Event_Status_Code__c="3" then "Opt-out"
- If Email_Event_Status_Code__c="4" then "Web"
- If Email_Event_Status_Code__c="5" then "Transaction"
- If Email_Event_Status_Code__c="6" then "Mirror page"
- If Email_Event_Status_Code__c="10" then "Click on mobile notification"
- If Email_Event_Status_Code__c="11" then "Offer click"
- If Email_Event_Status_Code__c="12" then "Impressions for In-App"
- If Email_Event_Status_Code__c="13" then "In-App Click"
- If Email_Event_Status_Code__c="14" then "In-App Dismissal"
- If Email_Event_Status_Code__c="15" then "Impressions for Push"
If type__c="Subscription" AND
- If Email_Event_Status_Code__c="0" then "Unsubscribe"
- If Email_Event_Status_Code__c="1" then "Subscribe"
all the if's and and's are confusing me. this is what i have so far and its returning a syntax error:
IF(AND(AND(IF(Source_System__c = "Adobe"), (Type__c = Deliverability),(Email_Event_Status_Code__c = "127", "Not applicable))))
any support is greatly appreciated!
thanks!