cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Mirroring two sharepoint libraries

I have an existing SharePoint library with files and nested folder structure , that needs to sync with the another SharePoint library as same as source library. And also, I need to apply the rules to stop in syncing in some cases, where the files have certain format of text prefix to the file names. 

 

Can someone help in achieving this as I'm new to flows? Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Mirroring two sharepoint libraries

Hi @roshini ,

 

You could refer to screenshot below to sync files from library1 to library2:

1.png2.png

substring(replace(outputs('Compose'),'library1','/library2'),0,sub(length(replace(outputs('Compose'),'library1','/library2')),1))

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
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
Highlighted
Community Support
Community Support

Re: Mirroring two sharepoint libraries

Hi @roshini ,

 

You could refer to screenshot below to sync files from library1 to library2:

1.png2.png

substring(replace(outputs('Compose'),'library1','/library2'),0,sub(length(replace(outputs('Compose'),'library1','/library2')),1))

 

Best Regards,

Alice

 

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

Highlighted
Frequent Visitor

Re: Mirroring two sharepoint libraries

Hi @v-alzhan-msft 

It' worked like a charm and thank you for the help. Is there a way to sync only when a file or folder with the prefix "ABC_"?

Highlighted
Frequent Visitor

Re: Mirroring two sharepoint libraries

Hi @v-alzhan-msft 

I tried it by adding condition (Filename starts with ABC_) but the condition not working. Below is my flow, could you pls help?

pic1.PNGpic2.PNGpic3.PNG

 

Helpful resources

Announcements
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (5,022)