We have a Registration Form with Fields
- FirstName
- Phone
- Job Function
- Status
When someone enters details on the form and clicks on submit the data is stored in MC and creates a Lead in CRM.We have an email post that where there are 2 CTA buttons (Yes/ No). If someone clicks on Yes, it redirects to a CloudPage.
I am adding this Ampscript Logic on the CloudPage
%%[
set @Email = RequestParameter("Email")
set @Id = RequestParameter("Id")
set @UpdateRowsinDE = UpsertDE("ResponseDE",1,'Id',@Id, "Status",'closed' )
set @UpdateRowinHC = UpdateSingleSalesforceObject('Request__c',@Id,'Status__c', 'Closed' )
]%%
Issue : Instead of updating the record which was initially created through the form its adding a new row just with that field mentioned in AMPscript.
I want the record who entered details on the first form to get updated