Showing results for 
Search instead for 
Did you mean: 
New Member

Creating/Modifying Files in OneDrive with Subfolders and Creating/Modifying said files in Sharepoint with Subfolders

Good day everyone,


I am very new to Flows and don't know a lot on how they work. I'm testing some stuff out and can't seem to figure out what I need to do to make what I'm looking for happen.




I am looking for the work that I do on my OneDrive (OD) for Business, to copy over into a specific SharePoint (SP) directory WITH THE SUBFOLDER and when I Modify the folder, it gets modified in SP as well.


I was able to cobble something together that when I created a file, even in a subfolder, it did copy over into SP, but it was in the top-most folder, not the subfolder it was made in. I guess my issues are all coming from not seeing a way to make dynamic folders in the flow so it knows where to look for the file name. The other Flow that I made had it always searching the top-most level of SP so it never even got to my section of SP to made the modification.


Could someone help me out and either let me know if this isn't possible at this time, or how I can accomplish this flow?


Thanks for the assistance.

Community Support
Community Support

Re: Creating/Modifying Files in OneDrive with Subfolders and Creating/Modifying said files in Sharepoint with Subfolders

Hi @itmeKCG ,


The screenshot below shows that when you create a file, even in a subfolder, it is copied to SP, but it is in the top-most folder, not in the subfolder where it was made.

Annotation 2019-07-19 150608.png

Your problem is to create a Flow, when you modify this file, the copied file in another folder will also be modified, right? And this folder is dynamic, right? 

You can create a flow, when a file is modified, get all the files in the folder, find the copied files hidden in the subfolder according to the name of the file, and then update the file. You can refer to the screenshot below:

Annotation 2019-07-19 152341.pngAnnotation 2019-07-19 152433.png

Please have a try, I hope it helps you.


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.

Helpful resources


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021


Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!


New & Improved Power Automate Community Cookbook

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


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (8,837)