Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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.

  • NickWarner Profile Picture
    113 on at
    Re: Send SharePoint attachment to a Post API Call

    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.

  • SN9 Profile Picture
    4 on at
    Re: Send SharePoint attachment to a Post API Call

    @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

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492