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.

Report
All responses (
Answers (