SOLVED

Flow: SharePoint Library sync

%3CLINGO-SUB%20id%3D%22lingo-sub-1013583%22%20slang%3D%22en-US%22%3EFlow%3A%20SharePoint%20Library%20sync%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1013583%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20been%20looking%20but%20can't%20find%20the%20answer%20to%20my%20exact%20question%20that%20has%20steps%20to%20resolution.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20two%20SharePoint%20sites%20both%20with%20their%20own%20Document%20Libraries.%20What%20I%20want%20to%20do%20is%20sync%20a%20folder%20from%20SharePoint%20Site%201%20Document%20Library%20to%20SharePoint%20Site%202%20Document%20Library.%20I%20can%20live%20with%20it%20being%20a%20one%20way%20sync%20but%20two%20way%20would%20be%20better.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20believe%20I%20should%20be%20able%20to%20do%20this%20with%20Flow%20but%20I%20can't%20seem%20to%20make%20it%20work.%20The%20best%20I've%20achieved%20is%20Flow%20syncing%20across%20filenames%20but%20the%20files%20created%20don't%20seem%20to%20have%20content%20and%20can't%20be%20opened.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20will%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3EBen%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1013583%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1015555%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%3A%20SharePoint%20Library%20sync%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1015555%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F460022%22%20target%3D%22_blank%22%3E%40simsbsims%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20%22kind%20of%22%20sync%20files%20between%20sites%20and%20document%20libraries%20but%20there%20are%20caveats.%20You%20will%20need%20a%20Flow%20to%20create%2Fupdate%20and%20another%20to%20delete.%20It's%20important%20to%20note%20that%20a%20manual%20initial%20sync%20will%20need%20to%20be%20completed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20an%20example%20create%2Fupdate%20Flow%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F157734i3B67176AD21AA808%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20an%20example%20delete%20Flow%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F157760i26305C75DCF3C853%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_1.png%22%20title%3D%22clipboard_image_1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20this%20helps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENorm%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1028134%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%3A%20SharePoint%20Library%20sync%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1028134%22%20slang%3D%22en-US%22%3EThanks%20Norman%3B%20just%20what%20I%20needed!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1408743%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%3A%20SharePoint%20Library%20sync%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1408743%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F111382%22%20target%3D%22_blank%22%3E%40Norman%20Young%3C%2FA%3E%26nbsp%3BI%20have%20been%20struggling%20with%20this%20one%20for%20way%20longer%20than%20I%20should%20have.%20I%20could%20only%20find%20somewhat%20complicated%20explanations%2C%20this%20is%20so%20simple%20I%20don't%20know%20why%20it%20was%20so%20hard%20to%20find%20this%20info.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOne%20thing%20I%20will%20add%20is%20the%20delete%20function%20in%20your%20explanation%20only%20works%20when%20you%20are%20using%20two%20seperate%20sites%20(I%20was%20using%20one%20test%20site%20and%20it%20didn't%20work%2C%20switched%20to%20two%20and%20it%20works%20great).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi all,

 

I've been looking but can't find the answer to my exact question that has steps to resolution.

 

I have two SharePoint sites both with their own Document Libraries. What I want to do is sync a folder from SharePoint Site 1 Document Library to SharePoint Site 2 Document Library. I can live with it being a one way sync but two way would be better.

 

I believe I should be able to do this with Flow but I can't seem to make it work. The best I've achieved is Flow syncing across filenames but the files created don't seem to have content and can't be opened. 

 

Any help will be greatly appreciated.

 

Thanks

Ben 

4 Replies
best response confirmed by simsbsims (New Contributor)
Solution

Hi @simsbsims,

 

You can "kind of" sync files between sites and document libraries but there are caveats. You will need a Flow to create/update and another to delete. It's important to note that a manual initial sync will need to be completed.

 

Here is an example create/update Flow:

clipboard_image_0.png

 

Here is an example delete Flow:

clipboard_image_1.png

 

I hope this helps.

 

Norm

 

 

 

Thanks Norman; just what I needed!

Thanks @Norman Young I have been struggling with this one for way longer than I should have. I could only find somewhat complicated explanations, this is so simple I don't know why it was so hard to find this info. 

 

One thing I will add is the delete function in your explanation only works when you are using two seperate sites (I was using one test site and it didn't work, switched to two and it works great).

 

 

@Norman Young 

 

hi there,

 

just wonder in the step 2 of the delete file flow,  how do we know the ID you get from the source document is same as the destination document ? 

 

Thanks

Nick