cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Sam12
Level: Powered On

Copy SharePoint List attachments to a SharePoint Document Library

I have quite a large SharePoint list where each list item has an attachment. Is it possible to create a Flow that will copy all of these list item attachments over to a SharePoint Document library? I would also need a link back to the original list item from each attachment. Is this possible? If not, I would at least need some reference to the original list item (e.g. Created By, Created Date, ID, etc).

Once this has been set up I will also need to set up a Flow which automatically copies list item attachments into a document library but I should be able to set this up using the above logic and using the "When an item is created" trigger.

Any help would be much appreciated!

2 REPLIES 2
dbro
Level 8

Re: Copy SharePoint List attachments to a SharePoint Document Library

@Sam12,

 

Do you have access to run SharePoint Online Management Shell?  If so, I have a script that I developed on premise to do this same thing. It could be modified for use in SPO by leveraging CSOM.  If interested, let me know and I can send you the script.

 

I have not tried this in Flow, though I think it might be possible by invoking an HTTP action to sharepoint…??

Community Support Team
Community Support Team

Re: Copy SharePoint List attachments to a SharePoint Document Library

Hi @Sam12 ,

 

Have your problem been solved?  If yes, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,453)