cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to apply a flow to each folder

Generaly the case is:

1. Robot puts X folders into sharepoint.

2. My flow uses that folders to run process.

3. I want to use my flow to each folder.

 

Any ideas? The amount of folder can be different.

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User
Super User

Hi @Anonymous 

 

 

If you are looking to iterate the folders please follow the below steps.

 

image.png

 

You can't iterate folders within subfolders.

 

To run the above flow you need to define the trigger according to your requirement.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

4 REPLIES 4
abm
Super User
Super User

Hi @Anonymous 

 

 

If you are looking to iterate the folders please follow the below steps.

 

image.png

 

You can't iterate folders within subfolders.

 

To run the above flow you need to define the trigger according to your requirement.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Hi abm, what is listed in the site address and file identifier in list folder 3? Without giving away the entire URL. I tried the same Flow but my last step is returning a message "The response is not in a JSON format". 

 

Also, is it true that you cannot iterate folders within subfolders? I'm currently trying to do this inside of the same Flow.

 

Thanks!

Hi @angelrodriguez 

 

Without seeing your flow its not easy to determine what the issue is? A screenshot may help.

 

Regarding subfolders what I meant is you can't iterate subfolders within subfolders recursively. 

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

I have a SharePoint folder named COPAS 2020 inside of my Shared Documents folder. Inside of the COPAS 2020 folder are department folders, 8 in all. Inside of each department folders is an employee folder with an Excel sheet inside of each.

 

What I'm ultimately trying to do is loop through the dept folders and get to each employee folder to grab that Excel file but I'm stuck at trying to get to each employee folder.

 

Here are some images of the folder structure:

flow1.JPGflow2_LI.jpgflow3_LI.jpg

 

Here's my Flow so far:

Flow 1_LI.jpgFlow 2.JPGFlow 3.JPGFlow 4.JPGFlow 5_LI.jpgFlow 6.JPG

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,200)