Often times, There could be an issue where your HTTP request isn’t hitting well. So, to overcome this, you might want your Flow to Retry after a certain duration and for some number of times.
You want to setup a Retry policy for the same. Here’s how you do it!
Setting Retry Policy
Follow this to setup a Retry Policy of your Flow
- Locate your HTTP step and navigate to Settings
- Once you’re in Settings pane, scroll below and look for Retry Policy.
- Default type is set by default, if you expand it, you can select what should be the Retry Type. In this example, I’ve set to Fixed Interval for simplicity
Default is set to 4 retries at an exponential interval. (Exponential increment type is a little confusing to explain, you can check this post as users discuss how exponential time increments work – )
- In Fixed Interval type, I’ve set number of retry count to be 3 and duration between each retry should be 30 seconds (represented in ISO-8601 format)
- With that, the policy is set. And the HTTP request step will try for 3 times at the interval of 30 seconds each.
If you want to test using some HTTP request, you can sample HTTP requests from here – https://httpstat.us/
How it works
Look for Failed Runs to see the result –
- Open a Failed Run where you know HTTP request could have failed
- Now, look for your HTTP request where you set the policy on. Expand the same.
- Upon expanding, you can see that there were 3 retries and it failed due to a timeout i.e. 408
- You can also check on the right hand side of the page which says that the total duration of all these retries were 1 min 30 seconds
If you observe the Flow Runs, you can find the the Flow did consistently try to run at an interval for the number of times specified.
In case you’re looking for more Flow/Power Automate related posts, check below –
- Make HTTP request from Flow in Power Automate
- Using Parse JSON to read individual List Records in Flow|Power Automate
- Selecting (Current) in Environment in Power Automate CDS connector and why it matters
- Retrieve only active Dynamics 365 CE licensed Users in CDS connector in Power Automate
- Secure Input/Output in Power Automate Run History
- Approval Process using Power Automate
- Create a To-Do List Item of Important Outlook Emails using Power Automate
- RSS notifications to your phone using Power Automate
- Enable Flow button on D365 Ribbon
- Button Flow in Power Automate to replicate a Quick Create Form in D365 CE
Hope this helps!!