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 / How to rerun a huge am...
Power Automate
Unanswered

How to rerun a huge amount of flow runs

(1) ShareShare
ReportReport
Posted on by 2

I found out I had hundreds of failed flow runs during a month and realized I have a problem. Using the GUI to click rerun was not an option and the documentation on doing this automatically was almost non existing. So after some thinking and trial/error I managed to create a flow that runs failed flows and also logs them so it doesn't rerun again. Perhaps some of you have the same problem and can get help from this.

 

I was inspired by the great work of https://www.youtube.com/watch?v=1oX5DcJrXPs and Solved: Re: Link to Cloud Flow Run History - Power Platform Community (microsoft.com).

 

First I initilize some variables. The most important one being the location of the runs.

 

HenrikHargedahl_1-1713276606485.png

Then I simply iterate through the response I get. Each response is made up of max 50 runs and therefore I iterate through different pages of data each having a unique URL.

 

HenrikHargedahl_2-1713276664165.png

The request passes the current version of the url.

 

HenrikHargedahl_3-1713276702228.png

In the apply to each I take the result and parse name and date of the specific run. This is just to limit the runs I want to work with.

 

HenrikHargedahl_4-1713276799934.png

I store each rerun in an Excel-file so first I look if this has already been run and if not I rerun it. After the rerun I store what happened.

HenrikHargedahl_5-1713276949432.png

 

At the end of the response you get the actual link to the next page of run-data. So if I'm not ready to end the loop I pass the next URL onwards and let the loop to a new iteration.

HenrikHargedahl_6-1713277049286.png

I hope this can help someone!

 

 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi  @HenrikHargedahl , 

    Thank you very much for sharing, it is very helpful for users who need to check a large amount of running history.
     
    Best Regards,
    Bof
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard