cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mespeter
Regular Visitor

Syncing files and folders from Sharepoint document library TO OneDrive for Business

Dear all,

 

please be patient with me as I am new to Microsoft Flow and taking my first steps. 🙂

 

With the help of this forum thread (https://powerusers.microsoft.com/t5/Building-Flows/Copy-files-from-SharePoint-document-library-to-On...) and @v-yamao-msft , I created a flow that is supposed to be syncing (one direction) files, folders and subfolders from a folder in our document library to a folder in my OneDrive for Business account.

 

Actually placing a file in Sharepoint works pretty well but how about creating folders, subfolders and subfiles?

 

I see there is the trigger of "When an item is created or modified" but I am missing the option of pointing to a folder (I can only add a list) and I am not sure if it includes subfolders and files.

 

Here's a screenshot of the flow with the second action only being inserted for tests:

Screenshot 2019-10-24 13.01.27.png

Would really appreciate some help / hints here where I can follow up and what to do.

 

Thank you guys in advance!

 

5 REPLIES 5
v-bacao-msft
Community Support
Community Support

 

Hi @mespeter ,

 

Please try using When a file is created or modified (properties only) as the trigger, and you don't need to set the Folder so that Flow will be triggered regardless of which folder in the Library has a new file.

 

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.

Dear @v-bacao-msft ,

thank you for your reply!

 

I implemented the new trigger but unfortunately it does not solve the problem. Syncing files works fine in the main folder. But as soon as I create a folder and then a file in the folder, I get an error "Action 'Get_file_metadata' failed". It states that the file (which is a folder) is not found. Additionally the file which I created in the subfolder is just placed in the mainfolder of OneDrive.

 

Just to let you know. We would need just a specific folder to sync as the rest of the Sharepoint Document Library is used by other colleagues as well (which also contribute with some documents to the specific folder).

 

You might ask "Why all this":

We have shared folders on a wordpress site for our members. We use a plugin called 'Share OneDrive' (https://codecanyon.net/item/shareonedrive-onedrive-plugin-for-wordpress/11453104) which only works with OneDrive for Business and not Sharepoint (the developer states that there is a problem with the Sharepoint API).

 

Do you have any idea how I get the information from folders to trigger the action in the flow?

Would really appreciate some more help here.

 

Thank you in advance!

And again a screenshot of the flow:

Screenshot 2019-10-28 11.09.16.png

PS: I just realized that the Dynamic Content tag for the file identifier is German. Could that be a problem too? I cannot change it to English.

Any idea @v-bacao-msft @v-yamao-msft ?

 

Thanks in advance for your help! 🤘

pedronac
New Member

Hello,

I'm alson intereste about this flow 🙂 

nicolepabon
New Member

I am interested in this flow but the opposite way. I want a specific folder in my one drive to syn onto a sharepoint site in a specific folder. 

 

I have used this flow but it does not work for what I need. I can not select the folder I wish to automate. 

Screenshot 2022-05-19 121132.png

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,384)