web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to get an email if...
Power Automate
Unanswered

How to get an email if flow fails

(0) ShareShare
ReportReport
Posted on by 25

I have a simple flow, it works most of the time but when something goes wrong, there's no notification. In the example below, what's the best way to get a failure email if something goes wrong at Create Item step? Failure could be for any reason, occasionally i've seen Bad Request error 400

 

mdopro1_0-1644969634679.png

 

I tried adding Send email step right after Create Item (screenshot below) and configured run after option, it works but it also send the normal email in last step.

 

mdopro1_0-1644970727118.png

 

Categories:
I have the same question (2)
  • takolota1 Profile Picture
    4,974 Moderator on at

    Hello Mdopro,

    This is the set-up I have on all my flows to send me an email with the exact flow run link any time anything fails in the flow.
    flow error handling.png


    The left of the parallel branch fails or skips just like any other action after a failed step. This makes it so the flow logs still show a failure for that run.


    The right side of the parallel branch runs if the previous action fails, times out, or skips.

     

    The expression for the flow run link is concat('https://us.flow.microsoft.com/manage/environments/', workflow()?['tags']?['environmentName'], '/flows/', workflow()?['name'], '/runs/', workflow()?['run']['name'])

    The Send Email action is in code view so I can insert the flow run link from the compose action into the body as shown below.


    <p>Check your flow.<br></p>
    <br>
    <a href="@{outputs('Compose_Flow_run_link')}">Flow Run Link</a>&nbsp;</p>

  • JanTHE Profile Picture
    20 on at

    Hi mdopro1

     

    You can consider for "Send an email(V2) to manager and HR" configure run after option to "is skipped".

     

    Cheers

    JanTHE

  • mdopro1 Profile Picture
    25 on at

    I did that, but after reading @takolota response i think my flow will not record Failed in 28-day run history. Do you think that's the case? Example below

     

    mdopro1_0-1645054400232.png

     

  • takolota1 Profile Picture
    4,974 Moderator on at

    @mdopro1, Yes it won't record failed runs as failures in the logs if the last action ran successfully. That is why I create a parallel branch with a type of placeholder action that will be skipped like in any other case where a flow fails and it will then log it as a failure and send the email if you have the email action in the other branch.

  • takolota1 Profile Picture
    4,974 Moderator on at

    Hello,

    I've made a template you can add to the end of any of your flows to email you with a link to the failed run if any of the actions in your flow fail.
    https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Flow-Failure-Notifications/td-p/1494079

  • BenConway Profile Picture
    38 on at

    Further to this topic, if there is an apply to each section which fails, how would you send an email with the failed attachment from the apply to each section? Is it possible to group all the failed apply to each into one email?

     

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard