Pega API and CaseUpdate
The Pega API lets update Case Data using the following JSON structure.
The Pega API lets update Case Data using the following JSON structure.
{ "content": { "IsInRightBusinessArea":"true", "IsInRightJurisdiction":"true", "CreateCaseOrConnectToExisting":"Create", "InvestigationGroupToCreate":"Investigation", "InvestigationTypeToCreate":"ArrangementGuardianship", "Persons": [{ "PersonID": "xxxxxxxxxx", "PrimaryPerson": "true", "pxObjClass": "PegaPS-Data-Entity-Person", "pzIndexOwnerKey": {{CaseID}}, "Name": { "FirstName": "xxxxx", "FullName": "xxxx xxxxxx", "LastName": "xxxxxx", "pxObjClass": "PegaPS-Data-Entity-Person-Name" }, "pzIndexes": { "Index_Persons": "1" } }] } }
"content" represent pyWorkPage and you can update any object inside pyWorkPage.
However, I have a problem updating any page or page list which sits outside pyWorkPage or "content" like temporary pages that can be seen on a clipboard case thread but cannot be updated for instance with the following JSON structure.
{
"tmpAttachment": { "pxObjClass": "Code-Pega-List", "pxResults": [ { "pxObjClass": "Data-WorkAttach-File", "pySelected": "true"
}]
}
Has anyone come across this problem? I can obviously make changes to page structure to live inside pyWorkPage but I am looking for ways to update a page if possible.
Thank you.