a guest Mar 19th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- SET @SubscriberKey = '0030N000025L06hQAC'
- SET @rs = RetrieveSalesforceObjects("account", "Email_Opt_In__c,Phone_Opt_In__c", "Contact_ID__c", "=", @SubscriberKey)
- IF NOT Empty(@rs) THEN
- Set @row = ROW(@rs,1)
- Set @Email = FIELD(@row,"Email_Opt_In__c")
- Set @Phone = FIELD(@row,"Phone_Opt_In__c")
- IF @Email == 'TRUE' THEN
- SET @EmailValue = 'Checked'
- IF @Phone == 'TRUE' THEN
- SET @PhoneValue = 'Checked'
- Subkey: %%=v(@SubscriberKey)=%%
- Email: %%=v(@Email)=%%
- Phone: %%=v(@Phone)=%%
- EmailValue: %%=v(@EmailValue)=%%
- PhoneValue: %%=v(@PhoneValue)=%%
RAW Paste Data