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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,599)