Advertisements

Microsoft Flow – Implementing a Try, Catch , Finally in a flow

Try, Catch and Finally

For most developers the Try, Catch, Finally  construction is a very common way of handling errors. Within Microosft flow this is also possible.

Today I setup a flow with a manual start and 3 Scopes. I renamed the scopes to Try, Catch and Finally.

Catch

Then for the Catch I set the run after to has failed

Finally

and for the finally scope I ticked all the boxes in the the run after configuration

The only limitation to this solutions that I have found so far it that you can’t collect any exceptions that may be generated. Hopefully soon Microsoft Flow will give the option to collect exceptions.

 

See also, Microsoft Flow – You only need one template to get started

 

Advertisements

11 thoughts on “Microsoft Flow – Implementing a Try, Catch , Finally in a flow

  1. commented on November 7, 2018 by Denis Molodtsov

    Thank you, Peter! I was wondering about the best way to do try catch. I really like your approach because Scope clearly show what is inside Try, Catch and Finally. Without scopes – it was a total mess.

  2. commented on December 6, 2018 by magnetmaninc

    It’s to bad the try scope will trigger the “Flow run failed.” message instead of showing success due to the catch scope.

  3. commented on March 29, 2019 by Klaas Huizenga

    This is excellent stuff ! Thank you very much Pieter

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: