cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Scenox
Frequent Visitor

Run flow for each file

Good day power automate friends,

 

I have a finished flow that works with the browser.
This flow is built to open an excel instance and draw data from there. I would like this same flow to run for another file in the same folder after the flow is over. Until there is a flow for all the files in the folder.

Any advice on how this could be achieved?

Thank you in advance for your answer.

 

Sincerely,
Robert.

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
vtse
Frequent Visitor

hi,

the general logic to do this is the below

get the files in the folder with the appropriate action, then use a for each loop and within the loop include the actions that you want to be executed for all these files. 

View solution in original post

Read about the for each loop.

View solution in original post

4 REPLIES 4
vtse
Frequent Visitor

hi,

the general logic to do this is the below

get the files in the folder with the appropriate action, then use a for each loop and within the loop include the actions that you want to be executed for all these files. 

Scenox
Frequent Visitor

Hello,

Yes, it occurred to me to use get files in folder. The problem is that I can't create the appropriate action.

Scenox_0-1612964850475.png

I don't know how work with this variable Files. Please do you have any example of notation.

 

Thank you a lot.

Read about the for each loop.

JimmyJambers
New Member

Could someone please point out what I'm doing wrong in my "for each" loop? I feel like I'm missing something.

@vtse @Henrik_M

 

I have a folder of .pdf files. My flow retrieves a list of .pdf files in the folder and then I want it to iterate the "Loop condition" for each of the files in the folder. My loop condition successfully splits each .pdf file into single page pdf files and places them all in a new folder. Great! But... it will not move on to the 2nd, 3rd, and so on files in the folder. Do I need another set variable to help my for each loop increment?

Thank you in advance.

JimmyJambers_0-1659652674771.png

 

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Top Kudoed Authors
Users online (3,379)