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

Announcements

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 581

#3
Haque Profile Picture

Haque 545

Last 30 days Overall leaderboard