Question

2
Replies
143
Views
DingyangL Member since 2019 5 posts
accenture
Posted: December 10, 2019
Last activity: December 17, 2019

pyStatusWork updated using UpdateStatus activity but all other fields are set to null

Hi guys,

I am looking for a solution to to update pyStatusWork of multiple objects from 'Pending-Running' to 'Pending-Suspend' using UpdateStatus activity, without losing valuable data from other columns.

Understand that by using Obj-Browse and Obj-Open-By-Handle (looped), I am able to access the object. In the next step, I will call the activity Work-.UpdateStatus and set the pyStatusWork to desired value. Then Obj-Save method to save the record.

After running the activity, I am able to see in the Pega Marketing UI that the pyStatusWork have been updated and in the DB table as well.

However, I noticed that other critical data in the table have been set to null. As a result, the campaigns are corrupted and certain functions becomes disabled.

Upon investigating further, there are other activities within the UpdateStatus activity, where there are properties which are mapped to pxRequestor page for example. Since there are no values or page created in pxRequestor, how can I safely update the pyStatusWork without impacting other critical components?

I am currently on Pega Platform v7.30 and Pega Marketing v7.22.

Thanks in advance.

Pega Marketing Low-Code App Development Dev/Designer Studio Data Integration Java and Activities
Share this page LinkedIn