Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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?

  • PPUser5 Profile Picture
    Microsoft Employee on at
    Re: Export all flows in one go - is this possible?

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

  • Florisz Profile Picture
    19 on at
    Re: Export all flows in one go - is this possible?

    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

     

  • Florisz Profile Picture
    19 on at
    Re: Export all flows in one go - is this possible?

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

  • Santhosh Balakrishnan Profile Picture
    169 on at
    Re: Export all flows in one go - is this possible?

    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. 

  • ADch Profile Picture
    2 on at
    Re: Export all flows in one go - is this possible?

    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"
     
     
  • Verified answer
    Rei0116 Profile Picture
    on at
    Re: Export all flows in one go - is this possible?

    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. 

  • Verified answer
    Pstork1 Profile Picture
    66,004 Most Valuable Professional on at
    Re: Export all flows in one go - is this possible?

    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.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow