Timeout in Power Automate
All articles from this blog can ONLY be redistributed on an Attribution-NonCommercial-NoDerivs basis. Please credit the source, thank you.
Twitter:@kelvinshen
Blog:Kelvin Shen's Blog
Continue with my previous post Implementing Approval Processes in Power Automate, what if no one responds to the approval request? Will the Power Automate flow waiting indefinitely? Can we set a timeout for the approval request?
The answer is yes. We can set a timeout for the approval request. The timeout is set in the approval action. If the approval request is not responded within the timeout period, the flow will continue to the next action.
Step 1: Set Up a Timeout
-
In your Power Automate flow, select the Settings of your approval action.
-
In the settings panel, you will find the
Timeout
field. Here, you can define the duration after which the action should timeout. The duration is specified in ISO 8601 format. For 6 months, the format would beP6M
. -
Save your changes and close the settings panel.
Step 2: Configure an Action Post Timeout
After setting up the timeout, you should configure actions that need to be undertaken once the timeout period is reached.
-
After the approval action in your flow, add a
Condition
action to check the outcome of the approval. -
In the
Condition
action, check whether the approval status is equal toApprove
,Reject
, or if it is null (which will be the case if it has timed out). -
In the
If Yes
andIf No
branches, configure the necessary actions that should happen for approval and rejection, respectively. -
In the branch that is for the timeout scenario (where the outcome is null), you should configure actions that should happen if there is a timeout (like sending a notification, updating a record to reflect the timeout status, etc.).