Question
Anamata
NL
Last activity: 22 Mar 2023 6:07 EDT
Creating Operator class WorkParty using API fails
In previous versions of Pega i was able to add an "Owner" WorkParty (class "Data-Party-Operator") by doing a PageInstructions "instruction": "ADD" API call. In order to create this workparty in the correct class, I had to include the "pxObjClass" in the content.
In newer releases of Pega I'm not allowed to include the pxObjClass anymore. If I do so Pega will respond with an HTTP 500 error. (Exception: com.pega.pegarules.pub.clipboard.UnmodifiablePropertyException: The page or property MyServicePage.updateCaseRequest.pageInstructions(1).content.pxObjClass is unmodifiable.). However, if I try and create that workparty without the pxObjClass it creates a workparty in the "Data-Party" class.
Does anyone have an idea how to fix this?