Export And Import Process In Microsoft Flow

In this tutorial, we will learn how we can export and import the Microsoft Flow.

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

  1. Developer should know how to create a MS flow and run it from SharePoint Online.
  2. Create a "Customers" custom list in your site.
  3. Need to create the below columns,

    1. Title - rename to "Customer ID"
    2. Customer Name
    3. Customer City
    4. Phone Number
    5. Email ID
Note
All columns will be of "Single line of text" type.
 

Export Process

 
Step 1
 
Go to this link,
 
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.
 
Export And Import Process In Microsoft Flow
 
Step 2
 
Give the name of the package.
 
Export And Import Process In Microsoft Flow
 
This will be downloaded to your local “Downloads” folder.
 

Import Process

 
Step 1
 
Navigate to this page.
 
Click on the “Import” button as highlighted below.
 
Export And Import Process In Microsoft Flow
 
Step 2
 
Click on the “Upload” button.
 
Export And Import Process In Microsoft Flow
 
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.
 
Export And Import Process In Microsoft Flow
 
After some time, you will be landed to the below page.
 
Export And Import Process In Microsoft Flow
 
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.
 
Export And Import Process In Microsoft Flow
 
Now, the “Import” button is enabled,
 
Export And Import Process In Microsoft Flow
 
Wait for some time. You can see the import successful message and then, click on the “Open flow” link.
 
Export And Import Process In Microsoft Flow
 
In the new window, you can see your flow as below.
 
Export And Import Process In Microsoft Flow
  1. Select your site and the “Customers” list from the "When a new item is created" and "Get Items" action.
  2. Change to your email id in "Send an email action" and save the flow. That’s it.
Export And Import Process In Microsoft Flow
 
Finally, test your imported flow the way we test other normal flows.
 
Output
 
Export And Import Process In Microsoft Flow
 

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