Question

2
Replies
891
Views
Bhavya_Incessant Member since 2011 4 posts
Incessant Technologies
Posted: 2 years ago
Last activity: 2 years ago
Closed

Suppress properties in Json String

Hi All

For one of the requirements I need to send the case data to an external service as JSON String.

I am converting the whole pyWorkPage to a JSON string using below code. The conversion happens when the case is resolved.

---------------------------------

PublicAPI tools = (PegaAPI) ThreadContainer.get().getPublicAPI();

ClipboardPage stepPage = tools.getStepPage();

retValue = stepPage.getJSON(false);

------------------------------

The above code works well and returns the JSON string. Now I want to remove few Pega OOTB (Some px,py,pz properties) properties from the JSON before sending it to service.

Is there anything which Pega provides OOTB or we need to write a custom code?

I am using Pega 7.4 version.

Regards

Bhavya

Pega Platform Data Integration Java and Activities Data Integration
Moderation Team has archived post
Share this page LinkedIn