If you’ve jumped onto the Microsoft Flow bandwagon, you know already how easy it is to create them. Did you know that you can also export them from one environment, and import them into another? The process is straightforward (As it should be!) but there are a few things you need to keep in mind to make the export and import successful.
First, let’s look at the two environments. In the environment below (let’s call it Environment A), I want to export the first Flow into a different environment, where it doesn’t exist yet.
The second environment (let’s call it Environment B), where it needs to be imported, looks like this (sans the RSS/LinkedIn Flow).
Now, in order to export from A, we will click on the three ellipses on the desired Flow, click Export, and choose Package (.zip).
You would think that selecting that option just downloads a .zip file for you. Instead, it brings you to a different screen where you give the package a name, and an optional description. At the bottom, notice the “Import Setup” column.
The Import Setup for the Flow defaults to Update. What it means is that it assumes this Flow exists in Environment B already, and that it will just update it with any changes it may have. Click Update, and choose “Create as new” so that a new Flow is created in B. Click Save to exit the screen. Finally click Export to download the .zip package file.
Export DONE.
Now, go to Environment B. Go to My Flows, and click “Import”, and upload the .zip package.
Here, notice the red ! next to the Flow and connectors required. Even though in our Export process, we had setup the “Import Setup” to Create New, it still defaults to Update. Click Update, change this to “Create New”, and Save. Now notice the red ! disappear.
For the connectors, click on them one by one. If a Connector exists already, it will show it to you in a list from where you select it. If it doesn’t exist, it will ask you to create it (by clicking “Create new”).
After you click Save, and take care of the Red ! for the connectors, click Import. A successful import shows the following screen with green check marks.
After the import is done, you will see the new Flow in your new environment, already turned on!