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 flows in on...
Power Automate
Answered

Export all flows in one go - is this possible?

(0) ShareShare
ReportReport
Posted on by

We have a number of flows setup and we are moving to a new Office 365 tenant. We would like to be able to export all the flows in one go and then have the ability to import them all in one go on the new tenant (which will be the same domain).

 

Rather than having to export them one by one which seems is possible now - anyone know how to export them all in one go and import them all in one go?

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,485 Most Valuable Professional on at

    Each Exported flow has settings that must be made.  The same is true of importing flows.  So I'm not aware of any tool that will export/import all your flows automatically.  You can use PowerShell to create a CSV file that lists all your flows.  You could use this as a checklist to manage the export/import process.  But at this point its still a manual process.  If you had built the flows as part of solution packages then a bit more could be automated.

  • Verified answer
    Rei0116 Profile Picture
    Microsoft Employee on at

    Hi, as Pstork1 said, we don't have a feature to export/import all your flows automatically.  You can also create a CSV file that lists all your flows in Power Platform > Analytics >Power Automate. You could use this as a checklist to manage the export/import process. 

  • ADch Profile Picture
    2 on at

    Hi,

     

    Yes, it is possible to export all the power automate flows at once. I used the below PowerShell script to do that. Make sure you use the command "m365 login" in PowerShell before you run this script. I hope it helps.

     

    #Step 1 - Get the default environment
    Write-Host "Querying for default Flow environment..."
    $environment = m365 flow environment list --output json | ConvertFrom-JSON
    Write-Host "Found $($environment.Count) environments"
    Write-Host "flowEnvironments: $($environment | Out-String)"
    #Make sure which environment you want to export flows form "$environment[1]"
    $defaultEnvironment = $environment[1].name
    Write-Host "Found default environment $defaultEnvironment, querying Flows..."

    # Step 2 - Get the flows info
    Write-Host "Getting flows info..."
    $flows = m365 flow list --environment $defaultEnvironment --asAdmin --output json | ConvertFrom-JSON

    Write-Host "Found $($flows.Count) Flows to export..."

    # Step 3 - Export the flows
    $flows | ForEach-Object {
        Write-Host "Exporting as ZIP & JSON... $($_.displayName)"
        $filename = $_.displayName.Replace(" ","")
        $timestamp = Get-Date -Format "yyyymmddhhmmss"
        $exportPath = "$($filename)_$($timestamp)"
        $flowId = $_.Name

        m365 flow export --id $flowId --environment $defaultEnvironment --packageDisplayName $_.displayName --path "$exportPath.zip"
        m365 flow export --id $flowId --environment $defaultEnvironment --format json --path "$exportPath.json"
    }

    Write-Host "Complete"
     
     
  • Santhosh Balakrishnan Profile Picture
    169 on at

    Export / Import Flows process can be automated using third-party tools such as Apps4.Pro Migration Manager. This tool automate this process completely and export all flows. To import, users can select the required flows and fix connection. The flows will import automatically. 

  • Florisz Profile Picture
    19 on at

    @Rei0116, could you point where this option is found?

  • Florisz Profile Picture
    19 on at

    I think I found something.
    There is an actual(template) flow that will do this directly to Excel.

    It is called: Click a button to create list of flows in Excel Online(Business)

    Florisz_0-1687523876856.png

     

  • PA-14101859-0 Profile Picture
    Microsoft Employee on at

    Thank you for this, it worked for exporting all the flows and their created time in a environment but not the flow steps

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 582

#3
Haque Profile Picture

Haque 529

Last 30 days Overall leaderboard