cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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.

 

Here's how the structure needs to work: DESIGN>COMPANY>CITY>VARIOUS SUBFOLDERS BASED ON GROUPINGS.

 

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.

1 REPLY 1
Highlighted
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

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

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

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!

Top Solution Authors
Users online (8,837)