Question

2
Replies
130
Views
X
DINESH Member since 2016 3 posts
TATA Consultancy Services Ltd
Posted: 10 months ago
Last activity: 10 months ago

Mapto and Mapfrom utility functions usage in Integration

Hello Experts,

I would like get clarified on below as nowhere I can get clear information although I can use the artifact which is the point of this post without understanding.

REST INTEGRATION ---> Service-REST:

Incoming Request --> JSON format

Outgoing Response --> JSON format

How to map incoming JSON request as part of POST method request tab?

[Same sort of question applies to response tab Map From and Map From Key]

Map to: ____

Map to key: _____

Below (at the bottom) is what has been explianed in Pega help documents where I feel contradiction between Clipboard and JSON usage for Map to field.

1. Why the label Map To is used in request tab when Map to Key is going to be a page/pagelist property on Clipboard?

The label can be Map From where we can get the incoming data format which is JSON.

2. If Map To label is justified as where to we need to map incoming data, then Clipboard will be the choice to opt given that we want to map incoming JSON data to Clipboard.

In this case, why should I give JSON as the selected option for Map To as per the explanation given below in pega help document?

Map ToSpecify the destination or the type of destination for the value in the Pega Platform :
  • Clipboard — Map to the page name or property on the clipboard specified by Map To Key field.
  • XML ParseRule — The incoming data is a stream of XML that must be parsed using the actions defined in a parse XML rule (an instance of the Rule-Parse-XML rule type).
  • JSON — The incoming data is a JSON formatted stream that must be mapped to a Page or a Page List property on the clipboard.
Data Integration
Share this page LinkedIn