Power Automate: send a notification by email when a flow fails
When a flow fails, I want to receive straight away an email to notify me so I can take appropriate actions immediately. Let’s say I have this flow:
So I want an email to be sent when “run script” or “run script 1” will fail, for that, I will have to use the “run after” option. First, I will add the “send an email” action:
In its “settings”, I will find the “run after” option:
By clicking on “select actions”, I will add the “run script” action:
![]() |
![]() |
I will configure them like that:
My final flow:
NOTE: just above the “send an email” action, there are some coloured dots corresponding to the “run after” configuration
I will explain the logic behind. The condition between the scripts is AND not OR meaning that in order to trigger the notification, I need that in the email, each script meets the correct result so:
- To send an email when the first script fails, the result of “run script” is “failed” AND “run script 1” is “skipped”
- To send an email when the second script fails, the result of “run script” is “successful” AND “run script 1” is “failed”
With this configuration, I will not know which script has failed. To remediate, put a “send an email” action after each script:
For each email, configure like that and for “run script 1” like that:
| email configuration | run script 1 configuration |
![]() |
![]() |
NOTE: don’t forget to put in the “title” and/or in the “description” of the email, the name of the script
The logic for this configuration is the following:
- To send an email when the first script fails, the result of “run script” is “failed”
- To send an email when the second script fails, the result of “send an email (V2)” is “skipped” and “run script 1” is “failed”
To know more about the “run after” option, read Power Automate: run the flow even if an action fails.
Interesting Topics
-
Be successfully certified ITIL 4 Managing Professional
Study, study and study, I couldn’t be successfully certified without studying it, if you are interested...
-
Be successfully certified ITIL 4 Strategic Leader
With my ITIL 4 Managing Professional certification (ITIL MP) in the pocket, it was time to go for the...
-
Hide visual and change background color based on selection
Some small tricks to customize the background colour of a text box...
-
Stacked and clustered column chart or double stacked column chart
In excel, I use a lot the combination of clustered and stacked chart...
-
Refresh Power BI
From the Power BI Service, I can set refresh but, for instance, there is no option to do it monthly or each time a change is made...
-
Power BI alerts to be sent by email from an excel file based on condition
I will explain how to send a list of emails from an excel file after creating alerts...










