daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Mar 19th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %%[
  2.     SET @SubscriberKey = '0030N000025L06hQAC'
  3.     SET @rs = RetrieveSalesforceObjects("account", "Email_Opt_In__c,Phone_Opt_In__c", "Contact_ID__c", "=", @SubscriberKey)
  4.  
  5.     IF NOT Empty(@rs) THEN
  6.       Set @row = ROW(@rs,1)
  7.       Set @Email = FIELD(@row,"Email_Opt_In__c")
  8.       Set @Phone = FIELD(@row,"Phone_Opt_In__c")
  9.     ENDIF
  10.  
  11.     IF @Email == 'TRUE' THEN
  12.      SET @EmailValue = 'Checked'
  13.     ENDIF
  14.     IF @Phone == 'TRUE' THEN
  15.      SET @PhoneValue = 'Checked'
  16.     ENDIF
  17.     ]%%
  18.  
  19. Subkey: %%=v(@SubscriberKey)=%%
  20. <br>
  21. Email: %%=v(@Email)=%%
  22. <br>
  23. Phone: %%=v(@Phone)=%%
  24. <br>
  25. EmailValue: %%=v(@EmailValue)=%%
  26. <br>
  27. PhoneValue: %%=v(@PhoneValue)=%%
  28. <br>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top