Implementing a Try, Catch, Finally in Logic Apps

On a regular basis I refer Microsoft Flow developers to my Try-Catch-Finally-patttern, but what if you need to use LogicApps. Can you use the same pattern?

Well, you could but …

There is a small catch.

 

When I use my Try Catch Finally template in Logic Apps, I found that it isn’t possible to include details about the runs in the email sent when there is a problem with my flow as I can build a URL to my flow run.

 

In LogicApps however you cannot generate a Url to a flow run as there isn’t any url to go to. Azure’s blades showing the Logic App run doesn’t have a Url to point the user to. There is however an Id:

This Run Id you can find using the following expression

workflow()?[‘run’]?[‘name’]

The user checking out the failure can now use this Id in the email to filter the LogicApps runs in Azure.

 

 

 

 

Advertisements

One thought on “Implementing a Try, Catch, Finally in Logic Apps

Please leave a comment or feedback

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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