Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Process Mining
Answered

Run flow for each file

(0) ShareShare
ReportReport
Posted on by 22

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.

 

 

Categories:
  • JimmyJambers Profile Picture
    2 on at
    Re: Run flow for each file, for each loop not working

    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

     

  • Verified answer
    Henrik_M Profile Picture
    2,006 Super User 2024 Season 1 on at
    Re: Run flow for each file

    Read about the for each loop.

  • Scenox Profile Picture
    22 on at
    Re: Run flow for each file

    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.

  • Verified answer
    vtse Profile Picture
    on at
    Re: Run flow for each file

    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. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Automate - Process Mining

Overall leaderboard