Microsoft Flow is a very vast component of Microsoft which connects the Dataverse along with offering several other connectors also such as MailChimp, SQL Server, Twitter, Instagram, Facebook, DropBox, etc. These connectors help you to perform several tasks based on your requirements.
There could be a scenario where you would want to have a Try and Catch functionality to not let your flow fail. MS Flow offers you this functionality out-of-the-box.
To add Try, Catch and Finally into your flow, follow the given steps:
1. First create a trigger for your flow, when the flow will be fired.
2. Now, let’s add Try block in your MS Flow. To add a try block, you can search Scope in your actions.
3. Specify the actions that you want to achieve in the flow into that block. You can rename it “Try”, if you want.
4. Now, add another Scope in the Next Step, and add actions/steps into it that you want to perform if the Try fails.
5. Now, go to options of the Catch scope block and select Configure Run After. Here check the has failed and has timed-out and click Done.
6. At last, add another Scope block for Finally. And add the steps which will be performed after the execution of try or catch blocks.
7. Now, again go to options for Finally Scope block, and select Configure Run After. Check all the options.