Question

3
Replies
282
Views
X
LeelaKrishna369 Member since 2017 14 posts
CPFB
Posted: 9 months ago
Last activity: 9 months 3 weeks ago
Solved

Map Json response to Page in Activity

Received Json response as below and tried using tools.getStepPage().adoptJSONObject(tools.getStepPage().getString("pyResponseMessage"));

and getting error as follows as we got response in Page for every property. Please let us know to map below mentioned Json response. Above code is working if we are receiving single value for the property.

Response:

{"Field1":{"date":"1960-09-11","s":"T","result":"TEMP"},"Field2":{"date":"1990-09-11","s":"T","result":"1960-04-10"}}

Error: The property Field1 was of mode Page while adoptDictionaryDefinition(ImmutablePropertyInfo, boolean, boolean) was expecting String mode. Details: the mode has been reset to match the property's definition.

Pega Platform
Share this page LinkedIn