Quantcast
Channel: Sam's Activities
Viewing all articles
Browse latest Browse all 3363

Providing XML as an input to your Custom Connector Actions

$
0
0

One of the projects we were working on was to integrate with a third-party API that accepted input in the XML format. This is a quick tip on how to pass XML in the action body when it expects JSON.

Providing XML as an input to your Custom Connector Actions

When you try to create a request and add XML string to the body, you receive the following error.

Providing XML as an input to your Custom Connector Actions

The workaround is to pass an empty string in the body when creating the action as shown below

Providing XML as an input to your Custom Connector Actions

Now once the action has been created, you are free to pass the XML content as the input and it will work just fine

Providing XML as an input to your Custom Connector Actions


Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>