Paul George
Paul George

Reputation: 51

How to pass CSV or XML data as Body Parameters to API Post operation using API Management Action in Logic App?

This is in relation to the question : -

How can I pass Body Parameters to API Post operation using API Management Action in Logic App?

Now I am able to pass JSON through the body of my logic app.

I would like to pass CSV or XML data as Body Parameters to API Post operation using API Management Action in Logic App.

Currently, the APIM accepts JSON sample only.

I am able to pass CSV or XML data using postman without any issues. Please find the attached pictures for details of this issue.

Thanks, Paul

enter image description here enter image description here enter image description here

enter image description here

Upvotes: 0

Views: 757

Answers (1)

Hury Shen
Hury Shen

Reputation: 15734

As I mentioned in comments, the solution is:

Add representation with "CONTENT TYPE" as text/csv and leave the "SAMPLE" and "DEFINITION" box empty like below screenshot: enter image description here

And then in your logic app, request the api like this: enter image description here

Upvotes: 1

Related Questions