Sorry if this is a super beginner question but I have the following scenario:
Our hosted application has a RESTful API that I am fully able to do GETS and a POST (using multipart/formdata) using our custom connector imported from a working Postman export. The API documentation shows all the responses coming in as xml but either PowerAutomate or the API itself is translating to JSON on the response because they all work. One of the POST calls (there are only 2 in the whole API), though, seems to expect the body to be formatted in xml and I'm not sure how to do that with the custom connector or if that's even possible.
The body that's currently working in Postman is below:
<documents>
<document _action="replace">
<title>THIS IS THE TITLE</title>
<file type="docx" size="29169" uploadGUID="f24acs37-7f5f-g6c4-8gda-agge0bfdcbfb6" />
<entities>
<entity globalID="7b550a55-8903-b87dd4a19ce3" _action="new" />
</entities>
<categories>
<category globalID="6492751f4104-92e7-a921002bf884" _action="new" />
</categories>
</document>
</documents>
Managed to get this one myself. On the Custom Connector where you add the Action by sample, use "" in the json part of the body and set the Content-Type to application/xml then save your connector.
In your workflow, you then have to build the XML request and pass that as a string into the connector. Works for my use-case.
Michael E. Gernaey
783
Super User 2025 Season 2
Tomac
515
Moderator
trice602
299
Super User 2025 Season 2