cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JGandor235
New Member

Need a flow to copy certain folders from one document library to another document library

The recurrence can be daily but I want to make sure that all Adds, Edits and deletes will populate to the other document library.  A few flows I have found seem to miss something because they are not catching all of the documents.  

 

Thanks in advance.

John

1 REPLY 1
AKRogers
Helper V
Helper V

Hi @JGandor235,

 

What have you tried, were they templates?  It sounds like you don't just need to copy folders and documents from one library to another, but instead, you need to keep the two in sync (with adds, edits, and deletes of documents).

 

Usually, edits and deletes get missed because a simple "copy to" relies solely on the document title.  Instead, you need to create a new column in the destination document library where your flow can copy in the ID of the document from the source library.  This will help keep the two libraries in sync when documents are deleted because Power Automate can check to see where those IDs match.  Where there's an orphaned document in the destination library, delete that document.

 

Next, you create another new column that your flow will fill with the Modified date column from the destination library.  Have Power Automate routinely check whether or not the Modified column in the source library is the same as this new column in the destination library.  When they do not match, re-copy the document from the source library and replace the existing document.  

 

Keep us posted!

 

Ashley

 

If this response provided an answer to your question please mark it as a solution so that others can find it.

If you found this helpful, consider giving it a thumbs up!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,146)