When trying to update the Contact object using an AMPScript on my SFMC cloud page, my script works fine. However, I haven't been able to figure out how to update the Demographics object using the same script. What would the equivalent of @id = _subscriberkey
be for the demographics object. SF support informed me that there should be a demographicsID
. The Contact object and demographics object are linked. I don't seem to be able to find a unique identifier for demographics, how can I do this?
%%[Var @result, @sfObject, @id, @fieldName, @fieldValueSet @sfObject = "Contact"Set @id = _subscriberkeySet @fieldName = "confirmedviaemail__c"Set @fieldValue = "True"Set @result = UpdateSingleSalesforceObject(@sfObject, @id, @fieldName, @fieldValue)If @result == 1 then]%%Slot Booked for 5 May with %%=v(@id)=%% successfully.%%[ else ]%%Slot Booking for 5 May with ID %%=v(@id)=%% was not updated.%%[ EndIf ]%%
I am sorry if my question doesn't make sense, I am trying to learn.