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 / Retriving flow run inf...
Power Automate
Answered

Retriving flow run information for failure monitoring

(1) ShareShare
ReportReport
Posted on by 26

Hi,

I had an idea of building generic flow for alerting failed flow-runs.

I identified that the definition of a flow is kept in CDS as a "Process" entity (name: workflow) but I was unable to find out where information about flow execution is stored.

Is it possible to get failed flow-runs with the date and flow name in Power Automate?

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @bdomzalski ,

     

    There doesn't seem to be any properties in this entity so that we can distinguish whether Flow fails and obtain the time of failure.

    As far as I know, we will receive a notification every week that Flow fails or cancels. It will display the name of the flow and the number of failures, we can directly click the link to access the corresponding Flow.

    Image reference:

    Spoiler (Highlight to read)
    155.PNG

     

    Best Regards,

  • Verified answer
    bdomzalski Profile Picture
    26 on at

    I know about the weekly emails but wanted to do something more proactive and with shorter response time 🙂

    I found an endpoint to retrieve flow-runs. The Get-FlowRun cmdlet from PowerApps.PowerShell package uses it and we can call it using Invoke an HTTP request from HTTP with Azure AD connector.

    The biggest problem I had were with the connection - it should be configured as follows:

    Base Resource URL
    https://api.flow.microsoft.com/
    Azure AD Resource URI (Application ID URI)
    https://service.flow.microsoft.com/

     

    The endpoint url:

    https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments/@{triggerBody()['environmentId']}/flows/@{triggerBody()['flowId']}/runs?api-version=2020-05-20

     

    Spoiler (Highlight to read)
    Request action for flow-runsRequest action for flow-runs
    Flow API connection configurationFlow API connection configuration 
    Request action for flow-runsFlow API connection configuration 

     

     

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @bdomzalski ,

     

    It seems that the existing connectors cannot meet this requirement at present. I am afraid I am not very good at using HTTP with Azure AD. Please consider contacting Microsoft Support for better assistance.

    176.PNG

    In addition, there is a thread mentioned that we can use Flow studio to monitor the status of Flow, please check if it helps:

    https://powerusers.microsoft.com/t5/General-Power-Automate/Monitoring-Flows/m-p/271867

     

    Best Regards,

  • Linn Zaw Win Profile Picture
    2,996 on at

    @bdomzalski 

    I have posted a blog post that may be of interest to you.

    Get Flow Run by Using Dynamics 365/CDS Record ID as Parameter in Power Automate 

  • SimonNie Profile Picture
    65 on at

    @bdomzalski thanks for the great preparation of the solution. Very helpful!

  • SimonNie Profile Picture
    65 on at

    PS: The list of flow runs somehow is limited to 50?!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard