Providing XML as an input to your Custom Connector Actions

Sending
User Review
0 (0 votes)

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