Posted: 10 Dec 2019 4:23 EST Last activity: 17 Dec 2019 21:28 EST
pyStatusWork updated using UpdateStatus activity but all other fields are set to null
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.
pxForceCaseClose utility updates the status to Resolved-Completed. However, the requirement is to set the status back to the previous status, eg, Pending-Suspend to Pending-Running vice versa. The case is not created at this point of time, if I am not wrong.