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

Sync two folders in different Sharepoints

Hi there,

i have a folder (lets call this folder folder 1) (with subfolders) in one sharepoint that i want to sync to another folder (folder 2) in another sharepoint. I want to sync in both ways so if i add/edit/remove any file or subfolder in folder 1 it will be synced with folder 2 and if i add/edit/remove any file or subfolder on folder 2 it syncs with folder 1. This is possible? how can i do it? i'm new to flow... 🙂

thank you very much.

regards.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Sync two folders in different Sharepoints

Hi @absint0o ,

 

The Site address is selected according to your own actual situation, which is the Site address where the Library you specify is located.

84.PNG

 

Best Regards,

Community Support Team _ Barry
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

4 REPLIES 4
Community Support Team
Community Support Team

Re: Sync two folders in different Sharepoints

Hi @absint0o ,

 

Please try the following method to configure Flow.

You may need to create ItemID field in each of the two libraries, the type is Number, which is used to record the ID of the file in the source list.

32.PNG

31.PNG

Besides, you need to configure the corresponding Flow for each source list.

 

Here is an example of synchronizing the files in Folder 1 to folder 2.

For example, I will synchronize the files in TestEtag to TestGroup and judge whether it needs to create new files or update files according to Created and Modified.

  • If it is a newly created file, copy the file into folder 2 and update the ItemID field.
  • If the file is updated, use Filter Query to filter out the corresponding file in folder 2 and update the file contents.

When a file is created or modified:

28.PNG29.PNG

When a file is deleted:

30.PNG

 

If you want to synchronize the files in folder 2 to folder 1, you only need to switch the Library Name in the two Flows. Hope it makes sense.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
absint0o
Level: Powered On

Re: Sync two folders in different Sharepoints

WOW! @v-bacao-msft thanks alot for your help, what a great explanation! many thanks!!!

i have some questions:

in the first trigger i have to fill all this boxes like this:

Sem Título.png

but in the conditions i get this when searching for created or modified condition:Sem Título1.png

Also, i think i didn't undestand what do you mean with:


 

Besides, you need to configure the corresponding Flow for each source list.

 

sorry, i'm new to all this new world of flow.

Once again thank you for your help!

Regards,

João

 

absint0o
Level: Powered On

Re: Sync two folders in different Sharepoints

So, i've managed to create all triggers and conditions you've showed in your reply but i'm a little confused with the site addresses. i don't know which address to put in each trigger and condition.

Can you show me what you have inside the get file content action?

Community Support Team
Community Support Team

Re: Sync two folders in different Sharepoints

Hi @absint0o ,

 

The Site address is selected according to your own actual situation, which is the Site address where the Library you specify is located.

84.PNG

 

Best Regards,

Community Support Team _ Barry
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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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

Top Kudoed Authors (Last 30 Days)
Users online (5,460)