Question

Rabobank Group
NL
Last activity: 28 Aug 2020 14:50 EDT
decimal property initialising 0 value
We are integrating with other system using rest connector, and receiving large json response. Some of the property values are not present in the response and while mapping if there is no property present in the response and if I map that pega decimal datatype properties initialising default value with 0.
Ex:
CalculatedValue is property and defined as decimal datatype
Sample Json Response:
[{ "ReasonTypeCode": "ABC" }]
Data transform mapping:
pyWorkpage.ReasonType =Datapage.pxresults(1).ReasonTypeCode
pyWorkpage.CalculatedValue = Datapage.pxresults(1).CalculatedValue
I can check(when) value is there or not before mapping, but my response contains more than hundred properties.
***Edited by Moderator: Pallavi to change content type from Discussion to Question***