web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send SharePoint attach...
Power Automate
Unanswered

Send SharePoint attachment to a Post API Call

(1) ShareShare
ReportReport
Posted on by 4

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: 

SN9_0-1721050537677.png

SN9_1-1721050594800.png

 

Here is the error:

SN9_2-1721050756005.png

 

This works as expected in Postman though.

Categories:
I have the same question (0)
  • SN9 Profile Picture
    4 on at

    @NickWarner : I tried referring your solution but I am struggling with the body.

     

    https://powerusers.microsoft.com/t5/Building-Flows/HTTP-POST-an-xlsx-file-to-API-endpoint/td-p/830027

  • NickWarner Profile Picture
    113 on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard