
Announcements
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.
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.
The request passes the current version of the url.
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.
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.
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.
I hope this can help someone!
Hi @HenrikHargedahl ,