Sunteți pe pagina 1din 4

12/28/2017 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

WRITE A POST (/NODE/ADD/COMMUNITY-QUESTION/1074016)

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.

(/users/smithar1) SmithaR1 (/users/smithar1) November 8, 2016 - 11:34pm

Hi ,

We have an Integration Service con gured in Pega to accept JSON requests.

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

Application development (/category/product-topic-category/application-development) Integration (/category/product-topic-category/integration)

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.

View correct answer in context

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

0 users liked this.


Reply(/community/product-support/question/use-data-transform-map-properties-integration-service-json?rate=04PE-Gsskx-xN2Wve5xlm9m72Q_h0k4ntMiQtt7xDdI)
Like (/Community/Product-Support/Question/Use-Data-Transform-Map-Properties-Integration-Service-Json#Comment-Form) 708 Views
Subscribe To Comments (/Flag/Flag/Subscribe_community_comments/1235631?Destination=Node/1235631&Token=SfN54xo6b1aw7JtnibKW44Raf852Me7a8MZUb2Kn5x4) 

Replies
(/users/chandrasekharbk) ChandraSekharBk (/user/21461) Pega November 9, 2016 - 10:22am

(/vote/comment/401076/1/vote/upanddown/cL9MaHtkWvwWrmeWj_Ndp7Lc8rQuXm2v5Ko9BSz7Kms/nojs)Which version of PRPC you are using ?


From 7.1.8, you can address this using
0
pzExternalName property quali er.
(/vote/comment/401076/-1/vote/upanddown/BHoGhEkmilS4hYMlLDCYZzT5s04CSlLlWAK4PZM-t-E/nojs)
Please check-out below for more details
0on this : 

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)

(/users/narasimha522) Narasimha522 (/user/424686) Pega November 9, 2016 - 11:28am

(/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)

(/users/habeebbaig) HabeebBaig (/user/157431) Pega November 9, 2016 - 3:04pm

(/vote/comment/401226/1/vote/upanddown/JGdtNOBaUw85lrBMbfX4ZpMHGZGJJPVl0NCKlBveVGA/nojs) You should be able to map request to


JSON type on clipboard from Service-REST
0
rule itself as in request tab you set 'map
(/vote/comment/401226/-1/vote/upanddown/FBMNXl1MW6UDwihR88m64e1TrjY37pYfHB2nXpUycxA/nojs)
to' as 'JSON' and 'map to key' as a pagelist
0property 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.

Reply (/Comment/Reply/1235631/401226)

(/users/janakaperera-0) JANAKA..PERERA (/user/994) January 29, 2017 - 7:45am

(/vote/comment/439916/1/vote/upanddown/ptEwosBXfqybkr-hSWiZRpd5NlU9LPzj79_bRDWF2r8/nojs) Response to HabeebBaig

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 getting the same Error;


Map Inbound Data    Failure
 

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)

(/users/janakaperera-0) JANAKA..PERERA (/user/994) January 29, 2017 - 7:59am

(/vote/comment/439921/1/vote/upanddown/OeV5VDvwlD8lK-8ZZ-3QcGxsMOyAj DUNkaXXngHTo/nojs) Response to JANAKA..PERERA

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)

(/users/lochandv) Lochan_DV (/user/234341) Mod January 30, 2017 - 9:55am

(/vote/comment/440046/1/vote/upanddown/K8FaxuJhO72FF7mLJMVeNsWTtujrovH0aBXaanR0nbY/nojs) Response to JANAKA..PERERA

0
(/vote/comment/440046/-1/vote/upanddown/vrPvtGbr4SauXlCKz0vjDpuVLwNlVgtZvbN4OLVbETo/nojs)

0
Hello Janaka,

Thank you for updating the post with the solution!

Regards,
Lochan  |  Community Moderator  |  Pegasystems Inc.

Lochana | Community Moderator | Pegasystems Inc.


Reply (/Comment/Reply/1235631/440046)

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

Integration- Data Mapping and transformation (/integration-data-mapping-and-transformation)


REST services is not mapping properties to JSON (/community/pega-product-support/question/rest-services-not-mapping-properties-json)
How do we loop through a ValueList in a Data Transform and map it to a property in a PageList? (/community/product-support/question/how-do-we-loop-through-
valuelist-data-transform-and-map-it)

Add new reply

File attachments

Add a new le

Choose File No le chosen UPLOAD

Files must be less than 256 MB.


Allowed le types: txt pdf doc docx ppt pptx xls xlsx jpg png gif zip.

POST

Subscribe to Group Content (/pdn_message_stack/nojs/subscribe/1074016)


Be noti ed when members post on topics you care about.

Important PSC Information!

Welcome to the PSC! (https://pdn.pega.com/community/pega-product-support/question/welcome-psc)

Product Support Community FAQs (https://pdn.pega.com/community/pega-product-support/question/product-support-community-frequently-asked-questions)

Need a Moderator? (https://pdn.pega.com/community/product-support/question/need-moderator)

Community Mission Statement (https://pdn.pega.com/community/pega-product-support/question/community-mission-statement)

Community Rules of Engagement (https://pdn.pega.com/community/pega-product-support/question/community-rules-engagement)

Community Tips and Tricks (https://pdn.pega.com/community/pega-product-support/question/community-tips-and-tricks)

How to Report PDN Issues (https://pdn.pega.com/community/pega-product-support/question/how-report-pdn-issues)

How to Submit Product Enhancements (https://pdn.pega.com/community/product-support/question/do-you-have-product-enhancement-ideas-learn-how-share-them-


here)

Moderators

(/user/308161) (/user/4751) (/user/11911) (/user/303306) (/user/49)


(/user/234341)

Featured Member
harisankarm9655
(/user/575406)

https://pdn.pega.com/community/product-support/question/use-data-transform-map-properties-integration-service-json 4/4

S-ar putea să vă placă și