cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Consolidating Nested Sub Folders

Right now my folder structure has a folder for each employee, and inside each employee folder is a few generic folders. Employee 1 has Folder 1, Folder 2, and Folder 3. Employee 2 will have the same named Folder 1, Folder 2, and Folder 3 with their own files to go in those folders. I am trying to consolidate everything from all Folder 1 to a folder for internal staff to have in one place. Same with folder 2 and folder 3.

My solution currently is to make an individual flow for each employee saying "When a file is created in Employee 1/Folder 1, Copy to Consolidated Folder 1" and one for Employee 2 saying "When a file is created in Employee 2/Folder 1, Copy to Consolidated Folder 1". This leaves for lots of changing if I change a folder name or if I want to add a new employee. Is there a way to make a more dynamic flow that will do this for all employees with a single flow?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @dbk54,

 

If these folders are located in the same library, you can refer to the following steps to create the Flow to achieve your goal:

  • When a file is created in a Library;
  • If its folder path contains Folder1 and it is not equal to Consolidated folder 1, copy the file to Consolidated folder 1;
  • Folder 2 and Folder 3 determination could refer to step 2.

Annotation 2020-01-16 110522.png

 

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

View solution in original post

2 REPLIES 2
Highlighted
Super User II
Super User II

You should be able to accomplish in one flow utilize a For each loop, Compose an array, and the Office 365 Users connector. If you could provide an expanded screenshot of your Flow and steps, and of any detailed error messages you're receiving we could likely better assist you. Also, for the best results, you may want to review How to write a good forum post.

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Highlighted
Community Support
Community Support

Hi @dbk54,

 

If these folders are located in the same library, you can refer to the following steps to create the Flow to achieve your goal:

  • When a file is created in a Library;
  • If its folder path contains Folder1 and it is not equal to Consolidated folder 1, copy the file to Consolidated folder 1;
  • Folder 2 and Folder 3 determination could refer to step 2.

Annotation 2020-01-16 110522.png

 

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

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (11,979)