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.
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:
3, Next, let's add an alert email when it fails.
a, Add New Step
b, Select the Mail action
c, Fill in the Email content
4, Configure Run after
Select has failed and has timed out
This will check if the status of the flow run was "Failed".
Then you can see the note in the main process diagram.
Test Flow
Scenario 1: If the Add a new row Action fails, then send an email notification
Scenario 2: If the Add a new row succeeds, then don't send an email notification
The "Send an email notification" action won't be triggered if the "Add a new row" action is successful.&type=information
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
*This post is locked for comments