Showing results for 
Search instead for 
Did you mean: 
Post Prodigy
Post Prodigy

Copy SharePoint Lists attachments to a SharePoint Library



I'm new to Flow and have just started to look at what it can do for me in my Job,


I'm looking for an option to take a SharePoint List attachment and move / copy it into a SharePoint Document Library.


Can this be done in Flow?


If anyone has any how to's that would be really helpful.


Thank you




You could try adding a switch control
The On value would be the Status Column, selected under the Dynamic Content

Then in the case equals - you would enter Cleared in your example, then add an action to copy or move them to the other document library.
Add another Case by selecting the + symbol the Euals for the second case would be Submitted/Waiting and you then define what happens to that if anything, and so on


Instead of a Switch control, you could even try a condition control


Choose the value as your column nameStatus is equal to Cleared, if Yes then add the action to copy/move the documents to another document library and if No, the workflow does not do anything if no actions are added, or in the No, you could add another condition and so on.

Hope this gives you some ideas/help



Perfect, thank you! I used the condition control and it worked smoothly. I didn't try switch control.

Hi @Audrie-MSFT 

I have tried to create the same flow, for getting all the attachment items from my SharePoint list, into a Document Library in SharePoint, but the flow ended up with an Error can you help?

I did done the same steps but the flow stopped after 4 minutes it moved like 30 items from the SharePoint list to the SharePoint Document Library I created (before).

I don't recall having a limits that I could only move certain amounts of items 

When I built my flow, I did the following
My Trigger was when an item is created in a SharePoint List

Get attachments from the SharePoint List, then add Get attachment Content

Get Attachment.jpg

I had a holding location to store my documents (Create File, then from there I moved the files as I wanted to capture Metadata and replace the file if the file was already there)

Create and Move.jpg


You can also add delete attachment to the end of the flow
See information Copy attachments from existing sharepoint list 



Hi @ClaireAllen 

Look at my screenshot,

The Flow Worked but it shows a Action Error:

It Says: 
An action failed. No dependent actions succeeded.
But it moved the attachments in the Document lIbrary, I have 64 Items and 45 had Attachments attached with it.. so 45 attachments were moved there but why the flow gave that error?

Hello @MH3 
In the Apply to Each action you will notice you have Next Failed


That means that the workflow has failed in some places, if you can click on that option to see where it did fail and look at the error message that you got, it would refer to the Previous Action Get Items where it could not get some of the items for a particular reason, and the error message that should display will tell us more.


Helpful resources

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (4,397)