# Power Automate: Move a Flow to Another Environment

> For the full documentation index, see https://250highstreet.com/llms.txt

> Move a Power Automate flow to another environment: export it in a solution and import it, or use a package .zip for a flow outside a solution. Steps inside.

Put the flow in a solution, export the solution from the source environment, then import the zip into the target environment. For a flow that is not in a solution, Microsoft also supports a package .zip, though it says to use solutions for application lifecycle management.

## Which method fits your flow?

|  | Solution | Package (.zip) |
|---|---|---|
| Best for | Several flows, or flows you move again and again | One flow that is not in a solution |
| Where you start | Solutions in Power Automate | My flows, then Cloud flows |
| Permissions | Import goes to an environment that meets the prerequisites | Export: only the owner or a co-owner. Import: Environment Maker role on the destination |
| Watch out for | Managed solutions cannot be exported | Does not work if admin turned on Create in Dataverse solutions |

## How do you move a flow with a solution?

Microsoft says that when you export an unmanaged solution, only published components are exported, which is why it recommends Publish all changes. Inside the zip, each flow sits in the Workflows folder as a JSON file.

1. Sign in to Power Automate and select Solutions in the left navigation.
2. Select the unmanaged solution to export, then select Export in the top menu.
3. In the Before you export pane, choose Publish all changes and optionally Check for issues, then select Next.
4. On the Export this solution pane, keep or change the Version number, choose Export as Managed or Unmanaged, then select Export.
5. Wait for the success notice. Microsoft says the export can take several minutes. Select Download to get the solution zip file.
6. In the target environment, select Solutions, then Import, then Browse, pick the zip, select Open, then select Next.

## What should the solution contain?

Microsoft says the solution should hold every component the flow uses, such as connection references, environment variables and tables. If the flow sits only in the default solution, add it to an existing solution or create a new one first. Microsoft also advises considering removing environment variable values before you export.

A solution-aware cloud flow cannot be exported from its details page; the solution export steps are required. You cannot export managed solutions, and you cannot import a solution into an environment in which the solution already exists.

## What happens to the flow after import?

The import tries to restore each flow to the state it had when exported. If the flows were on and any connection references get connections, they should be turned on. If the importing user lacks permission to a connection, the connection must be shared with that user so they can turn the flow on. The importing user owns every component in the imported solution.

If the flow already exists in the target, importing an update does not change its on or off state. Flows in a solution are turned off and on again during import, and Microsoft says smaller solutions reduce that impact. For one that stays off, see [why a flow turns off automatically](/guides/power-automate-flow-turned-off-automatically/).

## How do you move a flow that is not in a solution?

Create as new makes a new flow in the target. Update changes a flow that already exists there. Microsoft also says flow packages cannot be used with Dataverse solution packages, and that you cannot import packages with non-solution flows if your admin turns on Create in Dataverse solutions.

1. Check you are the owner or a co-owner of the flow, and that third party cookies are enabled in your browser.
2. In Power Automate, select My flows, then Cloud flows, then the flow.
3. On the menu, select the arrow next to Export and choose Package (.zip).
4. Enter a name and description. Under Review Package Content, optionally select Configure in the ACTION field and choose Update (default) or Create as new, then Save.
5. Select Export. If the download does not start, select Download.
6. On the destination, select My flows, then Import, then Import Package (Legacy). Select Upload, pick the zip, and select Open.
7. In the IMPORT SETUP column of the first row, choose Create as New or Update from the Setup dropdown, then Save.
8. Under Related Resources, set up each required row and Save, then select Import.

## What can go wrong after import?

Microsoft advises service principal connections for production flows, since they do not expire when a user changes a password or leaves. If the person who made the connections has left, read [what to do when a flow owner leaves](/guides/power-automate-flow-owner-left-company/).

| Error Microsoft lists | Cause | Fix |
|---|---|---|
| ConnectionNotConfigured | Connection references were not mapped after a solution import | Open the flow, pick or create a connection. For solution flows go to Solutions, Default Solution, Connection References and set each one. |
| MissingRequiredProperty | Environment variables have no value in the target environment | Fill in each environment variable value. |
| InvalidConnection | The connection was deleted, expired or does not exist in the new environment | Select Change connection or Add new connection and sign in again. |

## Do you need a different plan for many flows?

For several flows Microsoft says to use solutions, or copy an environment. You can read the basics of building flows in [how to use Power Automate](/guides/how-to-use-power-automate/) first.

Al Davies builds tools that cut busywork and missed steps for teams. A first call is a plain way to sort which flows deserve a move. The first call is free and takes 45 minutes.

## FAQ

### Can I move several flows at once?

Microsoft says to use solutions for several flows, or copy an environment.

### Can a managed solution be exported?

No. Microsoft says you cannot export managed solutions.

### Do package .zip files work with solution packages?

No. Microsoft says flow packages cannot be used with Dataverse solution packages because of package incompatibility.

### Will my flow turn on by itself after import?

Microsoft says it should if it was on when exported and the connection references get connections.

### Who owns the flow after a solution import?

The user who performs the import owns all imported components.

## Sources

- [Export a solution (Microsoft Learn)](https://learn.microsoft.com/en-us/power-automate/export-flow-solution)
- [Import a solution (Microsoft Learn)](https://learn.microsoft.com/en-us/power-automate/import-flow-solution)
- [Export and import a non-solution flow (Microsoft Learn)](https://learn.microsoft.com/en-us/power-automate/export-import-flow-non-solution)
- [Cloud flow error code reference (Microsoft Learn)](https://learn.microsoft.com/en-us/power-automate/error-reference)

## Related guides

- [Power Automate Flow Owner Left the Company: What to Do](/guides/power-automate-flow-owner-left-company/)
- [Power Automate Flow Turned Off Automatically: How to Fix](/guides/power-automate-flow-turned-off-automatically/)
- [How do you use Power Automate?](/guides/how-to-use-power-automate/)
- [How to build a SharePoint timesheet](/guides/sharepoint-timesheet/)
- [How do you archive a SharePoint site?](/guides/how-to-archive-a-sharepoint-site/)

Source: https://250highstreet.com/guides/power-automate-move-flow-to-another-environment/
