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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get notified for flow ...
Power Automate
Suggested Answer

Get notified for flow failures due to connection authentication issues

(0) ShareShare
ReportReport
Posted on by
I have a flow that uses Teams, Outlook and Office 365 connections.
In addition to the flow logic, it also sends a notification to the flow owner if the flow fails, however if the failure is due to connection authentication issues (for example when connections requires re-authentication due to a password change), also the notification action fails since it's using the same Teams connection. Is there any other way of notifying the user that would not have this kind of problems?
Categories:
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    14,956 Super User 2026 Season 1 on at
    Because of how unreliable the e-mails from Microsoft are to send flow failure notifications, I created a workflow to run daily to get a list of all failed flow runs and send it to the team that manages our flows. I am not sure why you would want to notify an end user unless they are the owner of the flow. If you need to notify the end users, you'll need to figure out how to adapt this to do so.
     
    This is the basics of the flow:
    1. At a scheduled time each day, the flow runs to get the failed runs from the prior day,
    2. It queries the Dataverse table that stores the flow run history.
    3. The condition checks to see if there were any failures.
    4. If yes, a Select action pulls relevant information from the failed run.
    5. Formats it into an HTML table.
    6. The compose action formats the body of the e-mail (this would not be needed if Microsoft would fix the issues in the new designer that mess up HTML e-mails).
    7. Finally, send the notification.
    This is the configuration of the Dataverse action:
    • Select columns: duration,endtime,errorcode,errormessage,flowrunid,name,starttime,status,triggertype,_workflow_value,_ownerid_value,workflowid,ownerid
    • Filter Rows: (Microsoft.Dynamics.CRM.Yesterday(PropertyName='createdon') and status eq 'Failed')
    • Sort by: createdon desc
    This is the configuration of the Select action:
    • Flow (opens the failed flow run): <a href="https://make.powerautomate.com/environments/@{workflow()['tags']['environmentName']}/flows/@{item()?['workflowid']}/runs/@{item()?['name']}">@{item()?['_workflow_value@OData.Community.Display.V1.FormattedValue']}</a>
    • Date: formatDateTime(item()?['starttime'], 'MM-dd-yyyy hh:mm tt')
    • Duration: if(less(item()?['duration'], 1000), concat(item()?['duration'], ' ms'), formatDateTime(addSeconds('1970-01-01T00:00:00Z', div(item()?['duration'], 1000)), 'HH:mm:ss'))
    The rest should be self-explanatory. Format the message you want to send and insert the HTML table into the body of the e-mail, and send it.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard