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

Community site session details

Session Id :
Power Automate - Using Connectors
Answered

Add Attachment to SharePoint List?

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Verified answer
    Mira Ghaly Profile Picture
    11,413 Moderator on at
    Re: Add Attachment to SharePoint List?

    @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

Coming soon: forum hierarchy changes

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

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 544 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 482 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 287

Last 30 days Overall leaderboard

Featured topics