Tuesday, 30 July 2024

How to handle errors in Microsoft Flow(Try/Catch)

 

How to handle errors in Microsoft Flow(Try/Catch)


rampprakash_0-1636977733384.png

When we are developing Code in Visual studio, we will use TRY/Catch Block to handle errors. if Try Errored Out it will come to Catch Block. Lets see how to implement this in Microsoft flow

 

Implementation Steps:

 

1. Navigate to https://flow.microsoft.com

 

2. Create a New App or Open an Existing app which is already available

 

3. Search for Scope and add the Scope

 

rampprakash_1-1636977898138.png

 

4. Rename the Scope to TRY

 

5. Add another Scope and Rename it to Catch

 

6. In the Catch Block Click three dots and Select Configure Run After

 

rampprakash_2-1636977971718.png

 

7. Once Clicked you will see multiple options to choose when Catch Block should trigger

 

rampprakash_3-1636978009817.png

a. is successful --> If Try gets Success then Catch should trigger

b. has failed--> If Try gets Failed then Catch should trigger

c. is skipped--> If Try gets Skipped then Catch should trigger

d. has timed out --> If Try gets Timed Out then Catch should trigger

 

Select your respective Options and Click Done and save your flow.

 

That's it ðŸ™‚

 

Video for your reference: https://www.youtube.com/watch?v=0sU3yyQ7PWQ

 

 

 

No comments:

Post a Comment

Introduction to Dynamics 365 CE Data Migration using ADF

Dynamics 365 CE Data Migration using ADF can be necessary for various reasons, such as archiving historical data, integrating with other sys...