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 / PowerShell Get-FlowRun...
Power Automate
Answered

PowerShell Get-FlowRun does not return any results

(0) ShareShare
ReportReport
Posted on by 61

Hi everyone, 

 

I am trying to export all the flow runs from my tenant (there are several environments and several solutions). I am a global admistrator. 

When I run the following script, I just get the Flow Names, but not the Flow Runs. 

Install-Module -Name Microsoft.PowerApps.Administration.PowerShell
Install-Module -Name Microsoft.PowerApps.PowerShell


Add-PowerAppsAccount
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force

$ListFlows = Get-AdminFlow

Foreach ($ListFlow in $ListFlows){
    Write-Host "FlowID " $ListFlow.DisplayName $ListFlow.FlowName -ForegroundColor Red
    $ListRuns = Get-FlowRun -FlowName $ListFlow.FlowName
    Foreach ($FlowRun in $ListRuns) {
        Write-Host $FlowRun -ForegroundColor Yellow
     }
}

 

I have tried:

Get-FlowRun -FlowName $ListFlow.FlowName

Get-FlowRun $ListFlow.FlowName

Get-FlowRun -FlowName $ListFlow.DisplayName

 

I tried this script on several tenants, but I get the same result. I would be grateful to get some tipps.  

 

Categories:
  • Verified answer
    Natali-WinOn365 Profile Picture
    61 on at

    So, I did solve the problem now - if I give the EnvironmentName, I get the desired results.
    Get-FlowRun -FlowName $ListFlow.FlowName -EnvironmentName $ListFlow.EnvironmentName

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#2
Henil Profile Picture

Henil 128

#3
anirudhev Profile Picture

anirudhev 124

Last 30 days Overall leaderboard