Skip to main content

How to Export a Solution in Power Apps (Managed or Unmanaged)

· 9 min read
Jagdish Kumawat
Founder @ Dewiride

Exporting turns a solution into a zip file that another environment can import: managed to install it, unmanaged to keep developing it. This guide exports the same solution both ways, with the same version number, and then does it with the Power Platform CLI.

Managed or Unmanaged?​

Microsoft's Solution concepts puts it in four words: unmanaged solutions are developed, managed solutions are deployed.

ManagedUnmanaged
ForTest and production environments, and anyone who should use it as it isAnother development environment, and source control
Can it be changed where it's installed?Not directly: its components can't be editedYes
When it's deletedIts components go too, with the data in its own tables and columnsOnly the container goes; the components stay

Two rules from the same article and from Export solutions:

  • You export an unmanaged solution, as either type. A managed solution, or the Default Solution, can't be exported.
  • You can't import a managed solution into the environment that holds its unmanaged original. Test it in another environment.

So export both: the managed zip is what gets installed, and the unmanaged zip is your copy of the source.

Before You Export​

Prerequisites​

Step 1: Start the Export​

In Power Apps, select Solutions. Next to your solution, select ... (More actions) → Export solution. The same command is in the command bar when the row is selected.

Step 2: Publish All Changes​

The Before you export pane opens:

The Before you export pane: Publish all changes, If you made changes to this solution that you'd like to export, publish them now, a Publish button, a box suggesting a deployment pipeline with Start the deployment process, and the Next and Cancel buttons

Only published components are exported, so Microsoft recommends publishing first. Select Publish. A status message said Publishing all customizations...: it publishes everything in the environment, not only this solution. After about 20 seconds the button became Published:

The Publish all changes section with a green check and Published where the Publish button was

The box below it suggests pipelines, Microsoft's automated way to move solutions between environments. This guide exports a file, so skip it and select Next.

Step 3: Set the Version and Choose Managed​

The Export this solution pane shows the Current version and proposes the next one; here it showed 0.1.0.0 and proposed 0.1.0.1. Versions have four numbers, major.minor.build.revision. Type the version you want, here 1.0.0.0 for the first release, and keep Managed (recommended):

The Export this solution pane with Current version 0.1.0.0, Version number 1.0.0.0, and Export as Managed (recommended) selected, described as The solution is moving to a test or production environment, above Unmanaged

The version you type becomes the solution's version in your environment too: the next export showed Current version 1.0.0.0.

At the bottom, Run solution checker on export checks the solution as part of the export. Leave it off if you've just run the checker.

Step 4: Export and Download​

Select Export:

The bottom of the pane with the Run solution checker on export checkbox unticked, and the Export and Cancel buttons

A message said Currently exporting solution "Career Development Plan 1.0.0.0". About 18 seconds later, a green bar replaced it:

A green bar: Solution "Career Development Plan 1.0.0.0" exported successfully, with a Download button

Select Download. The file goes to your browser's downloads folder, named after the solution's unique name and version:

File
CareerDevelopmentPlan_1_0_0_0_managed.zip

After the download, the button reads Downloaded.

Step 5: Export the Unmanaged Zip with the Same Version​

Repeat steps 1 to 4. Publish isn't needed again if nothing changed. The pane now shows Current version 1.0.0.0 and proposes 1.0.0.1: type 1.0.0.0 again so both files have the same version, and select Unmanaged:

The Export this solution pane with Current version 1.0.0.0, Version number 1.0.0.0, and Unmanaged selected, described as The solution is moving to another development environment or source control

The unmanaged file has no _managed at the end:

File
CareerDevelopmentPlan_1_0_0_0.zip

In the example, each export took between 18 and 49 seconds. If an earlier green bar is still showing, use the Download button on the new one.

Check the Files​

Look inside before you share them: How to See What's Inside a Power Platform Solution Zip File reads the version and Managed from each zip's solution.xml. The two files in the example:

FileSizeManaged
CareerDevelopmentPlan_1_0_0_0_managed.zip149,378 bytes1
CareerDevelopmentPlan_1_0_0_0.zip149,378 bytes0

Do It with the CLI​

The Power Platform CLI exports without a browser. Sign it in first (How to Sign In to the Power Platform CLI with pac auth create).

Check or set the version​

Terminal
pac solution online-version --solution-name CareerDevelopmentPlan
Output
Connected as admin@example.com
Connected to... Default Environment

Listing all Solutions from the current Dataverse organization...
Unique Name: CareerDevelopmentPlan
Solution Display Name: Career Development Plan
Solution Version: 1.0.0.0

--solution-name is the solution's unique name, the Name column in Power Apps. Microsoft's reference sets the version when you add --solution-version.

Export​

Terminal
pac solution export --name CareerDevelopmentPlanSetup --path cli/CareerDevelopmentPlanSetup_1_0_0_0_managed.zip --managed
Output
Connected as admin@example.com
Connected to... Default Environment

Starting Solution Export...
Solution export succeeded.
  • --name is the solution's unique name, here the series' Setup solution.
  • --path is where the zip is written.
  • --managed exports it as managed; leave it out for unmanaged.

The CLI exports the solution at its current version and doesn't change it. Its managed zip was 6,095 bytes, the same size as the one the portal exported. The portal's Publish step has its own command, pac solution publish; I published in the portal, so I didn't run it.

Common Mistakes​

MistakeWhat happensDo this instead
Accepting the proposed version on the second exportThe two zips have different versionsType the same version both times
Exporting only the managed zipYou have nothing to keep developing fromKeep the unmanaged zip as your source
Skipping Publish after changesUnpublished changes aren't in the zipPublish first
Sharing the zip without checking itYour environment variable values go with itCheck the zip first

Troubleshooting​

SymptomLikely causeFix
Export isn't availableThe solution is managed, or it's the Default SolutionExport the unmanaged solution
The list still shows the old versionThe page hasn't refreshedReload Solutions
Two green bars are showingEach export adds its own bar; the older one reads DownloadedSelect Download on the newest bar

FAQ​

Which file do I give to someone installing the app?​

The managed zip. Keep the unmanaged one for yourself, or for someone who will develop the solution further in their own development environment.

Why does Power Apps propose a higher version?​

Microsoft's article says Power Apps increments the version automatically, and that you can accept it or enter your own. For a matching pair of files, use the same version for both, and raise it for the next release.

Can I export from Power Automate instead?​

Yes. Microsoft's Export a solution article describes the same panes in Power Automate's Solutions.

Conclusion​

... → Export solution, Publish, Next, type the version, choose Managed or Unmanaged, Export, then Download. Export twice with the same version to get both files, check them, and keep the unmanaged one as your source.

Additional Resources​

Stay Updated

Subscribe to our newsletter for the latest tutorials, tech insights, and developer news.

By subscribing, you agree to our privacy policy. Unsubscribe at any time.