Use Data-Transform To Map Properties of An Integration Service (JSON) - PDN
Use Data-Transform To Map Properties of An Integration Service (JSON) - PDN
Product Support
Collaborate with developers, support engineers, and experts who build and work with Pega products. Join us to get fast
answers to your questions, and participate in our Ask the Expert sessions!
Communities (/communities) / Product Support (/community/pega-product-support) / Use Data-Transform to Map Properties of an Integration Service (JSON)
Participate
BOOKMARK (/FLAG/FLAG/BOOKMARK/1235631?DESTINATION=NODE/1235631&TOKEN=SFN54XO6B1AW7JTNIBKW44RAF852ME7A8MZUB2KN5X4)
Use
Data-Transform to Map Properties of an Integration Service
(JSON)
This question has been Answered.
Hi ,
We need to map the properties in the JSON to a Data Page . The property names are di erent in JSON.
Say we have emp_name in JSON , which we need to map to EMPLOYEE_NAME in our application .
How do we accomplish this ? We used a Data- Transform to map properties but we are not sure how we can get the JSON request in this Data-
Transform.
We tried using a param with the same name as the JSON request property (emp_name) . But this was empty in the Data Transform .
How can we access the JSON request values from within the Data Transform?
Thanks,
Smitha R
Correct Answer
(/users/habeebbaig) HabeebBaig (/users/habeebbaig) November 9, 2016 - 3:04pm
You should be able to map request to JSON type on clipboard from Service-REST rule itself as in request tab you set 'map to' as 'JSON' and 'map to key' as a pagelist
property and rest of the data modelling will be dynamically taken care on clipboard you just need to refer the values later from clipboard wherever required. For
example as you want to use data transform you can use the pagelist which has request data as source (seggregated with proper indexes) and set it to target property.
https://pdn.pega.com/community/product-support/question/use-data-transform-map-properties-integration-service-json 1/4
12/28/2017 Use Data-Transform to Map Properties of an Integration Service (JSON) | PDN
Replies
(/users/chandrasekharbk) ChandraSekharBk (/user/21461) Pega November 9, 2016 - 10:22am
https://pdn.pega.com/community/pega-product-support/question/modify-json-response-pega-717
https://pdn.pega.com/community/pega-product-support/question/rest-json-attributes-starting-not-being-mapped-corresponding
Reply (/Comment/Reply/1235631/401076)
(/vote/comment/401091/1/vote/upanddown/Z1m_LwucyPdTX59vyCHydS7bJR8cImlulGaGw19DLNk/nojs)
0
(/vote/comment/401091/-1/vote/upanddown/vz-HqcT8MHsRuyaTHgJjeoAYUR20_HmHaymOsajGdOk/nojs)
0
Are you parsing JSON and mapping to clipboard or generating JSON from clipboard?
Reply (/Comment/Reply/1235631/401091)
Reply (/Comment/Reply/1235631/401226)
0
(/vote/comment/439916/-1/vote/upanddown/s84wEMWg-wzCTWJL1AWm-dU4kq3n-vqy5xp5jn2huOc/nojs)
https://pdn.pega.com/community/product-support/question/use-data-transform-map-properties-integration-service-json 2/4
12/28/2017 Use Data-Transform to Map Properties of an Integration Service (JSON) | PDN
I am doing the mapping as below in the Post Request tab. Please need your help.
Thanks,
Janaka
File attachments:
Service-Rest.JPG (https://pdn.pega.com/sites/pdn.pega.com/ les/Service-Rest.JPG)
Reply (/Comment/Reply/1235631/439916)
0
(/vote/comment/439921/-1/vote/upanddown/joKYFpWVHKUQb_-o_gqA1AT70l1OE58m46iVY7jZETw/nojs)
0
Found the Answer:
https://pdn.pega.com/support-articles/inbound-map-error-rest-service-parsing-json-request
Thanks,
Janaka Perera
Reply (/Comment/Reply/1235631/439921)
0
(/vote/comment/440046/-1/vote/upanddown/vrPvtGbr4SauXlCKz0vjDpuVLwNlVgtZvbN4OLVbETo/nojs)
0
Hello Janaka,
Regards,
Lochan | Community Moderator | Pegasystems Inc.
Related Posts
Requirement is to Log the entire REST (JSON) requests that come into a Mock REST service in SoapUI (/community/product-support/question/requirement-log-entire-
rest-json-requests-come-mock-rest-service)
Rest JSON attributes (Starting with @) not being mapped to corresponding properties generated by the REST integration wizard. (/community/product-
support/question/rest-json-attributes-starting-not-being-mapped-corresponding)
https://pdn.pega.com/community/product-support/question/use-data-transform-map-properties-integration-service-json 3/4
12/28/2017 Use Data-Transform to Map Properties of an Integration Service (JSON) | PDN
File attachments
Add a new le
POST
Moderators
Featured Member
harisankarm9655
(/user/575406)
https://pdn.pega.com/community/product-support/question/use-data-transform-map-properties-integration-service-json 4/4