Brahmesh@ Member since 2013 147 posts
Posted: July 18, 2019
Last activity: July 19, 2019

How to capture payload of CONNECT API calls

As part of our requirement ,we want to capture the connector request and response into a table .We see that when a call is made from the Pega,the actual request is present in the parameter page in parameters "pyRequestHeaders","pyRequestData ,"pyRequestParameters" but we dont see the response captured in any parameter .How do we get the actual response that we are getting .Right now the only way i see we can do is to update the connector activity starting with name Invoke.Would also like to know what Pega recommends.

I see ,pyInvokeRESTConnector use below api function to make external connect call , Is there any parameter to capture actual JSON/XML response format that returns by external system ? . I think,read the value of pyObjName parameter(which holds data source page name) and convert the page into JSON .

tools.invokeConnector( primaryPage, stepPage, params );

Version :7.3.1

***Edited by Moderator Marissa to update platform capability tags****

Data Integration
Moderation Team has archived post
Share this page LinkedIn