0

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

2
  • Please have a try with add representation with "CONTENT TYPE" as text/csv and leave the "SAMPLE" and "DEFINITION" box empty like this. And then in your logic app, request the api like this. Commented Jan 14, 2021 at 5:47
  • I have post it below as the solution, could you please mark it as "accepted", thanks. Commented Jan 15, 2021 at 2:00

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.