Skip to main content
July 24, 2023
Solved

How to retrieve request body from Integration?

  • July 24, 2023
  • 5 replies
  • 0 views

Hi Team,

I have an integration with Drupal. We send the outcomes from Appian to Drupal. I wanted to retrieve the request body (we are sending a json body) which is sent to Drupal. Is there any way to extract the same? There is some issue with the json that is being sent over to Drupal which we cannot figure out. Any help would be appreciated.

Kindly revert back if you need any more information. 

Thank you! 

Best answer by mathieud0001

If you call the integration via a Smart Service, you can convert your Record/CDT to json (with toJson) in a pv and send that to the integration. You'll be able to see the json being sent.

5 replies

July 24, 2023

Hi Ritika, Can you please check the data you are sending and try to use the function a!toJson() to see the json you are sending and try to see what is the issue in Json you are sending.

mathieud0001
July 24, 2023

If you call the integration via a Smart Service, you can convert your Record/CDT to json (with toJson) in a pv and send that to the integration. You'll be able to see the json being sent.

July 27, 2023

Thank you [mention:f5e81b8502fa4e77ad12697686a4fc56:e9ed411860ed4f2ba0265705b8793d05].

stefanhelzle0001
July 24, 2023

You can enable the extended HTTP logging

docs.appian.com/.../Integration_Object.html

July 27, 2023

Thank you [mention:126a676c85024855948336691b0a7b92:e9ed411860ed4f2ba0265705b8793d05]