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 / Add Attachment to Shar...
Power Automate
Answered

Add Attachment to SharePoint List?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am trying to Send an HTTP Request to SharePoint, and add an attachment I have in OneDrive to a SharePoint List.

In my flow:

  • I list all files in OneDrive folder
  • I loop through each File
  • I get SharePoint List items
  • I loop through each SharePoint item
  • I then have a condition that checks if the OneDrive file name matches the SharePoint List name
  • If it does, then I have the POST method of 
    • _api/web/lists('@{variables('ListId')}')/items('@{items('Apply_to_each_2')?['ID']}')/AttachmentFiles/Add

 

I am stuck after this part. What do I need to add to the Uri and what Headers and Body do I enter? 

 

Snag_1468c1e7.png

Snag_14690345.png

Categories:
I have the same question (0)
  • Verified answer
    Mira Ghaly Profile Picture
    11,415 Moderator on at

    @Anonymous

    I Suggest you use the Add Attachment action instead of the Send HTTP Request

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard