web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Run flow for each file
Power Automate
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:
I have the same question (0)
  • Verified answer
    vtse Profile Picture
    on at

    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 Profile Picture
    22 on at

    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
    Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Read about the for each loop.

  • JimmyJambers Profile Picture
    2 on at

    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

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard