swamulu bandamneni (swamulub3797)
Rabobank Group

Rabobank Group
swamulub3797 Member since 2020 1 post
Rabobank Group
Posted: July 12, 2020
Last activity: August 28, 2020
Posted: 12 Jul 2020 13:37 EDT
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.  



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***  

Pega Platform Data Integration Java and Activities Financial Services System Architect