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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 481

#2
11manish Profile Picture

11manish 278

#3
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

Last 30 days Overall leaderboard