Introduction
Exporting and importing is a vital aspect we need to have in the software development life cycle when it comes to the reusability of the package or deployment of an environment to another environment. Here, I recommend calling from one tenant to another tenant as we are working on SharePoint Online.
In this process, I will explain how we can export and import a Microsoft Flow.
Prerequisites
- Developer should know how to create a MS flow and run it from SharePoint Online.
- Create a "Customers" custom list in your site.
- Need to create the below columns,
- Title - rename to "Customer ID"
- Customer Name
- Customer City
- Phone Number
- Email ID
Note
All columns will be of "Single line of text" type.
Export Process
Step 1
Note
In the above URL, <country> is dynamic. I am accessing from India, it displays India.
You will be redirected to the below page; select your flow as per the below navigation whichever you want to export.
Step 2
Give the name of the package.
This will be downloaded to your local “Downloads” folder.
Import Process
Step 1
Click on the “Import” button as highlighted below.
Step 2
Click on the “Upload” button.
Step 3
Select your downloaded flow zip file and wait for some time. You will see the status message at the bottom of the page.
After some time, you will be landed to the below page.
Note
By default, the “Import” button will be in disabled mode – in order to enable it, we need to click on all the values of “IMPORT SETUP” column as highlighted above.
For example, click on the “Update” from “IMPORT SETUP” column, then click on the “Save” button as below and follow the same for all other “IMPORT SETUP” values.
Now, the “Import” button is enabled,
Wait for some time. You can see the import successful message and then, click on the “Open flow” link.
In the new window, you can see your flow as below.
- Select your site and the “Customers” list from the "When a new item is created" and "Get Items" action.
- Change to your email id in "Send an email action" and save the flow. That’s it.
Finally, test your imported flow the way we test other normal flows.
Output
Summary
Thus, we have learned in this tutorial how we can export and import a Microsoft Flow.
Download
The above flow can be downloaded from
here.
Read Also