You need to sign in to do that
Don't have an account?
R Reay
UpdateSingleSalesforceObject Working During Test But Not Live Email Send
I am working on an email send that has a button for customers to sign up for a loyalty program. I have this button linked to a cloud page with the following code:
%%[
set @subKey = AttributeValue("_subscriberkey")
UpdateSingleSalesforceObject("Contact",@subKey,"Loyalty_Program_Opt_In__c","TRUE")
]%%
When I do a preview and test, and click on the button, the associated contact I am using to test gets updated in our connected Salesforce org. However, when I actually send the email as a test and click on the button from within the email in my inbox, the contact in SF does not get updated.
Any ideas on why it wouldn't be working when it is actually sent out versus when I am testing through "preview and test" within SFMC?
Thanks,
R
%%[
set @subKey = AttributeValue("_subscriberkey")
UpdateSingleSalesforceObject("Contact",@subKey,"Loyalty_Program_Opt_In__c","TRUE")
]%%
When I do a preview and test, and click on the button, the associated contact I am using to test gets updated in our connected Salesforce org. However, when I actually send the email as a test and click on the button from within the email in my inbox, the contact in SF does not get updated.
Any ideas on why it wouldn't be working when it is actually sent out versus when I am testing through "preview and test" within SFMC?
Thanks,
R
Thanks,