I have Data Extension in Child Business Unit which has been shared with Parent Business Unit. This Data Extension has 3 Primary Keys SubScriberKey, JobId, EventDate. It also has a "Processed" flag which is set to False by default on each record.
I have created automation with a SSJS Activity in Parent BU to process records and then update back Processed flag to True on the successfully processed records.
I am using UpdateData AMPScript function to update Data Extension rows.
Following is the code from the Cloud Page where I am trying to update Data Extension rows.
set @resultMC = UpdateData(@deName,3,'SubscriberKey',@subscriberKey,'JobId',@JobId,'EventDate',@activityDate,'Processed',1)
My Automation is processing records without any error but not updating Processed flag on the Data Extension. Am I missing anything here? Does UpdateData function even work for Shared Data Extension?
ent.
prefix to the Data Extension name?