How to Synchronize SharePoint Document Libraries Between Two Sites
Question details
The user needs to automatically keep files and folders synchronized across document libraries located on two different SharePoint sites.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Managing documents across multiple SharePoint sites and ensuring that updates in one library are reflected in another.
- Observed behavior
- SharePoint Online lacks a native two-way synchronization feature, requiring a custom automated workflow to handle additions, changes, and deletions.
Ensure you have permission to create Power Automate flows and verify that you possess edit or owner access to both SharePoint sites you intend to synchronize.
Use Power Automate for SharePoint Library Synchronization
Since SharePoint lacks built-in two-way synchronization, Microsoft Power Automate is the recommended tool to sync file additions and modifications between sites.
Power Automate can detect when a file is added or changed in one SharePoint site and automatically replicate that action in another site.
Setting up a basic one-way sync is straightforward, but achieving a true two-way sync requires careful workflow design to prevent infinite loops (e.g., Site A updates Site B, which triggers an update back to Site A).
Log into Microsoft Power Automate, click on 'Create' from the left menu, and select 'Automated cloud flow'.
Search for and select the trigger named 'When a file is created or modified (properties only)'. Enter the Site Address and Library Name of your primary SharePoint site.
Add a new step and search for the 'Get file content' SharePoint action. Use the 'Identifier' dynamic content from the trigger to specify which file's content to retrieve.
Add a 'Create file' action. Enter the Site Address and Folder Path of your second SharePoint site. Use dynamic content to map the File Name and File Content from the previous steps.

Streamline Your Document Workflows with WPS Office
While setting up multi-site synchronization in SharePoint can be complex, handling daily document tasks shouldn't be. WPS Office is a free, lightweight alternative to Microsoft Office that offers a familiar interface, high compatibility, and built-in cloud sharing options to make collaboration simple.

Frequently Asked Questions
Does SharePoint Online have a native two-way sync tool?
No, SharePoint Online does not offer a built-in, out-of-the-box two-way synchronization feature for linking document libraries on different sites. You must use Microsoft Power Automate or third-party synchronization tools.
Can I use OneDrive to sync two distinct SharePoint libraries together?
OneDrive allows you to sync SharePoint libraries down to your local computer's file explorer. However, it does not automatically sync files between two distinct SharePoint cloud sites directly.
How do I prevent infinite loops when setting up a two-way sync in Power Automate?
To prevent infinite loops, add a 'Condition' check in your flow to verify the 'Modified By' property. If the modifier is the designated service account running the flow, configure the flow to terminate without making further updates.




