I have trouble on AMPScript(newbie on this functionality), on my cloudpage I ask for 2 optin with checkbox. So you can have check both or only one of the two.
Regarding the result, I want to get back the tick into CRM. Could you please help me with his issue? My lookup are working but not my logic with updatesinglesalesforceobject
%%[ var @updatemail, @updatetel,@optinemail, @optintel, @contactid SET @optinemail = Lookup("Optin_Formulaire","HasOptedOutOfEmail","ID", @contactid) IF @optinemail = 1 THEN SET @updatemail = UpdateSingleSalesforceObject('Contact', 'ID', 'HasOptedOutOfEmail', 'True') ENDIF SET @optintel = Lookup("Optin_Formulaire","HasOptedOutOfMobile","ID", @contactid) IF @optintel = 1 THEN SET @updatetel = UpdateSingleSalesforceObject('Contact', 'ID', 'et4ae5__HasOptedOutOfMobile__c', 'True') ENDIF ]%%