web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Synchronize two folder libraries in SharePoint

(0) ShareShare
ReportReport
Posted on by 2

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.

I have the same question (0)
  • Verified answer
    v-yamao-msft Profile Picture
    on at
    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 Power Platform Member Profile Picture
    on at
    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 Profile Picture
    4 on at
    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?

  • edl1 Profile Picture
    2 on at
    Re: Synchronize two folder libraries in SharePoint

    Hello 

    am I correct that this trigger can be set only at main share-point directory and not sub-folders?

     

    thanks

  • NG_Delhi Profile Picture
    2 on at
    Re: Synchronize two folder libraries in SharePoint

    Hi

     

    I tried this today but I couldn't figure out how to get the file-id right? When I sync the file does get synced (it doesn't open though). Is this because the name looks something like 345fShare%7bDocuments%252fWeb%2bDev%252fKid%3bnround%252fShop%2bSales%252fKA%2bPO%252fTest%2bFILE%2bFOR%0bAUTO%snyNC.xlsx

     

    How do I get it to just show as TestAutoSync.xlsx

     

    Thanks in advance,

    Neha

  • kcw118 Profile Picture
    2 on at
    Re: Synchronize two folder libraries in SharePoint

    Has there been a true sync feature implemented since this was posted back in 2018?  I tried using the copy and delete flows to copy files and delete files on the secondary sites, but when a file is copied, the creator of the file is the person who created the flow and the other file metadata is lost.  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 647 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 350 Moderator

#3
developerAJ Profile Picture

developerAJ 256

Last 30 days Overall leaderboard