Skip to main content

Notifications

Receive an alert email when Power Automate Flow fails

Introduction

If you rely on Power Automate (now called Microsoft Flow) to automate your business processes, you understand how important it is for your flows to run smoothly. When things don't go as planned, it's crucial to be aware of issues so you can quickly address them and prevent potential disruptions.

Fortunately, we can set up an alert email notification that automatically lets you know when a Microsoft Flow fails.

Here's how:

1, Create an Instant cloud Flow for testing.

2273.pastedimage1684897730464v1.png

2, Plan to create a Contact and trigger an Error.

The maximum length of the field Last Name is 50 characters. If we pass a string greater than 50, then it will generate the following error:  

8666.pastedimage1684898331701v2.png

3, Next, let's add an alert email when it fails.

a, Add New Step

0020.pastedimage1684898903123v7.png

b, Select the Mail action

4812.pastedimage1684898863868v6.png

2620.pastedimage1684898945497v8.png

c, Fill in the Email content

5444.pastedimage1684899020145v9.png

4, Configure Run after

6835.pastedimage1684904834249v1.png

Select has failed and has timed out

This will check if the status of the flow run was "Failed".

0412.pastedimage1684899133588v11.png

Then you can see the note in the main process diagram.

7220.pastedimage1684899172943v12.png

Test Flow

Scenario 1: If the Add a new row Action  fails, then send an email notification

1300.pastedimage1684899665945v13.png

Scenario 2: If the Add a new row succeeds, then don't send an email notification

4478.pastedimage1684900064127v14.png

    The "Send an email notification" action won't be triggered if the "Add a new row" action is successful.&type=information

4278.pastedimage1684900106921v15.png

In conclusion, 

With this setup, you will receive an email notification with a specific error message when a flow fails. This will allow you to quickly identify and resolve any issues. Additionally, you can customize the content of the email, including the subject line and message body, to best suit your needs.

Setting up email alerts for failed flows is a valuable way to monitor your flows and ensure that they are performing as expected. By being aware of issues as soon as they occur, you can take action quickly and minimize any impacts on your business processes.

The End

Comments

*This post is locked for comments