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 Automate
Unanswered

Get flow runs

(0) ShareShare
ReportReport
Posted on by 185

Hey all,

 

I have been trying to find a way to get the status of a flow run (and possibly the last 3).

 

Has anyone got this working? I came across this article and it works for some things. I couldn't get the custom connector to work (I even imported the example from github). What did work was getting the flow run details under the heading "Authorization code flow for token generation" but it relies on getting a code from your browser address to then get the access token (its a one-time code)

 

Has anyone got a working solution?

 

Thanks,
David

 

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @da1vea,

     

    Personally I prefer a command line tool (PowerShell or CLI) for this because they have out of the box commands for this type of things. 

     

    For example the CLI for Microsoft 365 module has a flow run list command. Below is an example how you could retrieve the last flow runs of a single flow in a specific environment and output the results to a csv file.

     

    m365 login
    m365 flow run list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --flowName 5923cb07-ce1a-4a5c-ab81-257ce820109a --output csv --asAdmin 

     

  • da1vea Profile Picture
    185 on at

    Hi @Expiscornovus ,

     

    Thanks for your reply but I am wanting to run this in Power Automate so I can feed the results back to Power Apps. I was thinking Azure runbook but would prefer to keep the actions in Power Automate unless I am completely missing your suggestion as I noticed this requires node.js?

     

    With the custom connector I keep getting authorization failed

  • Steve79 Profile Picture
    4 on at

    As far as I'm aware, you can't run Microsoft 365 CLI from an Azure Runbook. But, you can do it from an Azure Function which is what I've done as I have a whole host of Power Automate reporting setup using a Function which outputs to a Blob file and is ingested into a BI dashboard.

    This great article from Martin Lingstuyl explains how you can set it up: Blimped | Configuring the CLI for Microsoft 365 in Azure Functions


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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard