How to use Try, Catch and Finally Scopes in Power Automate

Fredrik Engseth
6 min readNov 16, 2021

An example on how you can use the scope action in Power Automate to handle errors if the flow fails during a run.

Short about the scope action. The scope consists of multiple actions and if all action within the scope is passed the scope passes otherwise it fails. By using scope it allows you to handle errors by having multiple scopes. So if the first scope fails the next scope runs. This is set up by using the Configure Run After setting on the action. We are going through this later in the post.

An example of using scope for error handling can be; if any action fails you can email the initiator or service desk and inform the requester the result or error in the catch scope, and in the finally scope you can send either way if it succeeded or failed.

In the post we look at how you can set up an example usage of mainly Try/Catch and short about what finally can be used for.

Step 1: Create a new Cloud Flow. In this example we just use the “Manually trigger a flow”.

In the demo environment I have a solution containing all the Cloud Flows in the environment. The image below is taken when the solution is open and the steps below show how to add a new instant cloud flow to the solution.

--

--

Fredrik Engseth

Developer | Dynamics 365 | Power Platform | Azure | Personal development | Investments | ☕ https://www.buymeacoffee.com/fredrikengseth