Question

3
Replies
56
Views
Faraz@SSA Member since 2016 1 post
PEGA
Posted: 6 months ago
Last activity: 6 months 1 week ago
Solved

Pega API and CaseUpdate

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.

Pega Platform Low-Code App Development Testing Applications Government Senior System Architect
Share this page LinkedIn