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

Synchronize two folder libraries in SharePoint

I want to build a flow that synchronizes two SharePoint libraries.  When a file is added, modified or deleted in one SharePoint library the same update needs to happen in a different SharePoint library.  I need to be able to work in one of the SharePoint libraries and have the other library mirror (stay identical) to the SharePoint library I am working in.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Synchronize two folder libraries in SharePoint

Hi @LeeHumphrey,

 

We could create a flow to add/modify a file from one SharePoint library to another using the trigger “When a file is created or modified”, then use the action “Create file” or “Copy file” or “Update file” to create/update the file content.

 

However, currently flow doesn’t have a trigger for “When a file is deleted”. There is a similar request at Flow Ideas Forum, please vote and comment the idea at here:
https://powerusers.microsoft.com/t5/Flow-Ideas/Trigger-to-delete-a-share-point-file/idi-p/70563

 

Please try it on your side and feel free reply if you need more help.

 

Best regards,
Mabel Mao

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

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Synchronize two folder libraries in SharePoint

Hi @LeeHumphrey,

 

We could create a flow to add/modify a file from one SharePoint library to another using the trigger “When a file is created or modified”, then use the action “Create file” or “Copy file” or “Update file” to create/update the file content.

 

However, currently flow doesn’t have a trigger for “When a file is deleted”. There is a similar request at Flow Ideas Forum, please vote and comment the idea at here:
https://powerusers.microsoft.com/t5/Flow-Ideas/Trigger-to-delete-a-share-point-file/idi-p/70563

 

Please try it on your side and feel free reply if you need more help.

 

Best regards,
Mabel Mao

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

View solution in original post

neades
Level: Power Up

Re: Synchronize two folder libraries in SharePoint

For the record you can certainly delete based on a trigger.

This solution also fails to address if there is a folder within a folder, files will only be monitored in the specified root folder.
apn
Level: Power Up

Re: Synchronize two folder libraries in SharePoint

That flow works great, but we have added 2 colums in the SP library. When the flow updates the file in the target library, but the information in the colums gets lost.  Also when I add the same colums in the original SP library.  How can we avoid this?   Anyone has a solution?

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 71 members 2,988 guests
Please welcome our newest community members: