SharePoint Online – Power Automate: How to Export and Import Microsoft Team Flows across environment

No comments

Introduction: 

Exporting and Importing is a vital aspect we need to have in software development life cycle when it comes to re-usability of the package or deployment to an environment to another environment here I recommend to callas from one tenant to another tenant as we are working on in SharePoint online.

In this process, I will explain how we can export and import the Microsoft flow.

Prerequisites:

1. Developer should know how to create MS flow and run it from SharePint Online.

2. Create “Customers” custom list in your your site.

3. Need to create the below columns:

3.1. Title – rename to “Customer ID”

3.2. Customer Name

3.3. Customer City

3.4. Phone Number

3.5. Email ID

Note: All columns “Single line of text” type.

Export Process: 

Step1:

Go the below link:

https://india.flow.microsoft.com/manage/environments/Default-7511d6ab-7647-42e4-b650-ee6650d0d27f/flows 

Note: In the above url is a dynamic, as I have registered my tenant using Indian time zone and accessing from India, it displays as India.  

You will be rendered the below page, select your flow as per the below navigation which you want export.

Step2:

Give the name of the package.

This will be downloaded to your local “Downloads” folder:

Import Process:

Step1:

Navigate to the below page:

https://india.flow.microsoft.com/manage/environments/Default-7511d6ab-7647-42e4-b650-ee6650d0d27f/flows

Click on the “Import” button as highlighted below.

Step2:

Click on the “Upload” button.

Step3:

Select your downloaded flow zip file and wait for sometimes, you will see the status message at the bottom of the page.

After sometimes 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 value of “IMPORT SETUP” column as highlighted above:

For an example, click on the “Update” from “IMPORT SETUP” column, then click on “Save” button as below and follow the same for all other “IMPORT SETUP” value.

Now the “Import” button is enabled:

Wait for sometimes – 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.

1. Select your site and “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.

Finally we need to test the imported flow, the way we test other normal flow.