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 / Adding an attachment t...
Power Automate
Unanswered

Adding an attachment to new list item using SharePoint document URL

(0) ShareShare
ReportReport
Posted on by 7

I have an excel with few columns and last column is the URL of the SharePoint document, i am able to populate data from Excel to list but also need to add the document as an attachment to the list item which I have in the form of URL.

 

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Hey @Kuldeep0595 

     

    Please clarify, " but also need to add the document as an attachment to the list item which I have in the form of URL." 

     

    You can use the HTTP action to "Get" the file content and then "Add Attachment" .

     

    For details see - https://parserr.com/support/integrations/ms/download-a-file-from-a-link/ 

     

    CFernandes_0-1673330110600.png

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

  • kuldeeps0595 Profile Picture
    14 on at

    Hi @CFernandes 

    Thanks for the reply!!

    I have added the snapshot of the excel and flow. The second column in excel is document url that i need to add as an attachment.

    could you please check.

    Excel Snapshot - in this excel there is a column Doc URL which i want add as an attachment to new list itemExcel Snapshot - in this excel there is a column Doc URL which i want add as an attachment to new list itemStep1Step1

    Step2Step2

    Step3Step3

    Step4Step4

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Hey @kuldeeps0595 

     

    You can use the Solution below. However, we need to pass the LibraryNAme\filename.xlsx to the "Get file Content" action-

     

    CFernandes_2-1673336453958.png

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

  • Verified answer
    kuldeeps0595 Profile Picture
    14 on at

    Thanks @CFernandes !!

     

    I already tried this, and attachment is getting saved but not able to open the file. error attached

    kuldeeps0595_1-1673337045352.png

     

    kuldeeps0595_0-1673337000769.png

     

  • Verified answer
    CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    @kuldeeps0595 Can you please share the screenshot of your Power Automate - Also try to HardCode and see if it works - Note -need to pass the "/LibraryNAme/filename.xlsx" in the "FilePath" in your Excel you have Server Relative URL.

  • kuldeeps0595 Profile Picture
    14 on at

    Hi @CFernandes,

    Get content using path resolved the issue, Thanks for your help.

     

    Thanks!! 🙂

  • Verified answer
    CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    @Kuldeep0595 -Perfect - I had requested you to use "Get File Content as Path action" - https://powerusers.microsoft.com/t5/Building-Flows/Adding-an-attachment-to-new-list-item-using-SharePoint-document/m-p/1960465/highlight/true#M216040

     

     

    Please mark this as resolved - Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard