Question
Creating cases with Page Group properties through Pega API
Hello,
I've been using the Pega API for case management, but I cannot figure out how to properly define a Page Group property using the JSON structure when sending a POST request for case creation.
For regular Page properties, I just send the page properties inside the key values, for example.:
"Page":{"PageProperty1": "value1", "PageProperty2": "value2"}
For Page Lists, I can use the JSON array structure, as shown below:
"PageList":[{"PageProperty1": "value1"},{"PageProperty1": "value1"}]
For Page Groups, however, I've tried several approaches but none worked so far. Seeing the generated JSON from Page Group properties on the clipboard gets me something like the code below:
"PageGroup":{"GroupName":{"PageProperty1":"value1"}}
Unfortunately, this approach also did not work (the property was not created properly).
Does anyone had any experience with this process, or any ideas on how to manage this situation?
Thanks in advance,
Igor Kimieciki
***Updated by moderator: Lochan to update Categories***
Hi Igor,
If you already have any existing case which contains the Page Group property, then try to GET the information of that Case using GET request of /cases/{id} or /cases request. So that you can see the Page Group representation in JSON format in the returned response. Hope this approach might help you.
Regards
Mahesh