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 / Export all the flow ru...
Power Automate
Suggested Answer

Export all the flow runs under one specific flow

(1) ShareShare
ReportReport
Posted on by 6
I am using the "Get .csv file" button on my flows run history. However, I'm not able to get all the flow runs, it just shows me 100 runs. I've been trying to get ALL the flow runs but Im stuck here... please help. I want a quick and easy way to just be able to see ALL flow runs - just how im getting data in the "Get .csv file" button, but for ALL runs.
Screenshot 2025-11-19 142636.png
Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,716 Super User 2026 Season 1 on at
     
    "There are two important limitations to be aware of. First, this feature will only download the first 100 runs returned by your filter. Second, there is a limit on the size of content that is included in each cell of the CSV. For example, if you download 10 MB file, you don’t want that file’s contents in a single cell in a CSV. Instead, the CSV includes a hyperlink to the file, so it is just one click away."
  • Suggested answer
    rzaneti Profile Picture
    4,476 Super User 2026 Season 1 on at
     
    I just ran a test with PowerShell, and it is possible to achieve what you want. 
     
    From the Portal, we get the CSV file with 100 entries as limit:
     
     
    But when we access it from PowerShell, we get all runs, bypassing this limit:
     
     
    Here is the script that I used (Copilot helped me to craft/adapt it): 
     
    $flow = Get-AdminFlow -EnvironmentName "<Your environment ID>" -FlowName "<Your flow ID>"
     $runs = Get-FlowRun -EnvironmentName "<Your environment ID>" -FlowName "<Your flow ID>"
    
      $allRuns =      foreach ($r in $runs) {
                [PSCustomObject]@{
                    FlowDisplayName = $flow.DisplayName
                    FlowName       = $flow.FlowName
                    RunName        = $r.Name
                    Status         = $r.Status
                    StartTime      = $r.StartTime
                    EndTime        = $r.EndTime
                    TriggerName    = $r.TriggerName
                                }
            }
    
    $allRuns | Export-Csv -Path ".\all-flow-runs.csv" -NoTypeInformation
    Write-Output "Saved .\all-flow-runs.csv"
     
     
    I'm also sharing the docs for the PowerApps PowerShell, in case you want to explore it further: https://learn.microsoft.com/en-us/powershell/module/microsoft.powerapps.administration.powershell/?view=pa-ps-latest
     
    Let me know if it works for you or if you need any additional help!
     
    If this solved your issue, please mark it as Accepted Answer.
    👍 If it helped, feel free to give it a like!

    🌐 Explore more Power Platform content on my Website or on my ▶️ YouTube
    💼 Find me on LinkedIn
     
     
  • ZS-19111013-0 Profile Picture
    6 on at
    Hey!
     
    This code is not working for me as i am not the environment admin... I am only the owner of the flow.
  • rzaneti Profile Picture
    4,476 Super User 2026 Season 1 on at
     
    In this case, you can replace the Get-AdminFlow for Get-Flow :)
     
    Let me know if it works!
  • ZS-19111013-0 Profile Picture
    6 on at
    Hey!
     
    This is not working, apparently Get-Flow is not a function that exists.. 

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 389

#2
Vish WR Profile Picture

Vish WR 331

#3
David_MA Profile Picture

David_MA 298 Super User 2026 Season 1

Last 30 days Overall leaderboard