cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to copy OneDrive for Business files from multiple folders to multiple SharePoint sites

I have a folder strucure in OneDrive for Business that looks like the following:

 

FolderA - file1

FolderB - file2

FolderC - file3

and so on for ~50 folders

 

I want to create (ideally) a single Flow that would copy the new file dropped in FolderA to sharepoint/sites/FolderA and FolderB to sharepoint/sites/FolderB and so on.

 

Anyone have a quick and efficient way of doing this rather than create a flow for each folder?

1 REPLY 1
Community Support Team
Community Support Team

Re: How to copy OneDrive for Business files from multiple folders to multiple SharePoint sites

Hi @Anonymous,

 

Your scenario will not work in Microsoft Flow, at least currently.

For a new file created in different folders in OneDrive for business, there is no proper trigger available which could be used to get the newly added file from different folders.

 

In addition, OneDrive for Business folder input box will not accept the dynamic content:

Reference

 

A possible workaround would be, run flow on a schedule, then list each folder, and each files in each folder (nested) to see if there are any newly added files (compared with the destination folder).

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

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 Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (6,101)