I have a flow which has the when a new item is created to a SharePoint list trigger. The problem statement is to send the excel attachment from the SharePoint list item to a POST API call. I have researched the community and documentations however I am always getting the unsupported media type error. It will be really helpful if someone can help me with where I am going wrong.
This my current workflow design:
Here is the error:
This works as expected in Postman though.
Hi @SN9
It's been quite a while since I did that flow and it looks like I might not even have it in use anymore. the key difference I can see is that mine used a library as a source rather than a list so the get files by path connector that I used that provided the right value wouldn't work for you. looking at your body code my suggestion would be to change your hardcoded $content-type value to
type=application/vnd.ms-excel
assuming it is always going to be an excel file.
@NickWarner : I tried referring your solution but I am struggling with the body.
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492