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
v-micsh-msft
Community Support
Community Support

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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,611)