You can export items from your Smart Flows project to a zip file and import that file into another project. For example, you can:
-
Move items between a development project and a production project.
-
Reuse a template that you prepared in your test environment in another project.
To copy your entire project at once, create a backup instead. For more information, see Backup & Restore.
Permissions
Administrators and designers can export items and import files. Only administrators can import from the Content Store.
Exporting Items
What You Can Export
You can export items from the following list views:
-
Flows
-
Templates
-
Data sets
-
Tags (Control panel > Tags)
-
Assets (Control panel > Assets)
-
Custom relations (Relations tab of a connector)
Connectors are not exported as separate items. When an exported item uses a connector, the export file contains only a reference to that connector, without its credentials. When you import the file, you link this reference to a connector in the target project.
Exporting Items
To export items:
-
Open the list view of the item type, select one or more items, and select Export. The Export window shows the Items to export and their Dependencies.
-
Keep Include all dependencies selected to add the dependencies of the selected items to the export file.
or
Clear Include all dependencies checkbox to export only the selected items.
|
Dependencies for Flows |
Dependencies for Templates |
Dependencies for Data sets |
|---|---|---|
|
|
Samples of a data set are not dependencies. To include them, use the Include samples option. |
The Dependencies list in the Export window shows exactly which items will be included.
Usually, you will want the dependencies as well. However, you can also link flows and templates to new dependencies in the target project if you don't include them in your export.
-
Keep Include samples selected to add the samples of the exported data sets to the export file, or clear the checkbox.
Decision Point
When deciding to include samples, the primary determining factor is whether the sample's records exist in the project you are importing into and if those record IDs in the target project are an exact match.
-
If the sample's records exist in the project you're planning to import the samples into, including samples may be advantageous. Exporting with samples is particularly advantageous if your samples are associated with a custom data set or schema data set, since the export copies the payload populating the sample. The payloads for the samples are not connected to a host system.
-
If the sample's records do not exist in the Smart Flows project you're planning to import into, we recommend clearing Include samples, unless the desired outcome is creating records that match the existing pointers in the sample.
-
(Optional) Select Include template history in export.
Decision Point Include template history when you need the previous versions of your templates in the target project, for example:
-
You're moving templates to a new project permanently and want to keep the ability to review or restore earlier versions.
-
You need the version history for auditing or troubleshooting.
We recommend leaving Include template history in export cleared in the following cases:
-
You regularly move templates from a development project to a production project. If you overwrite existing templates during import, the imported versions are added on top of the history that already exists in the target project, so each import adds all earlier versions again.
-
Your templates have many versions. Every version is a full copy of the template file, so the export file can become large and the export and import take longer.
-
You share the export file outside your organization, for example with the support team. Earlier versions can contain outdated or draft content.
When you import template history, the version descriptions are kept, but the versions get new revision numbers in the target project.
-
In the Export file name field, keep or change the file name. By default, the file name is the name of the selected item. If you select several items, the default file name is the item type.
-
Select Export.
The system downloads a zip file.
Importing Items
You import items in Control panel > Import. You can import:
-
A zip file that you exported from a Smart Flows project (Import file).
-
Ready-made templates and examples from the Content Store (Import from content store).
During import, you select which items from the file to import. If the file refers to items that are not in it, for example connectors, you map them to existing items in your project.
For step-by-step instructions, see Import.
About IDs
When importing items into a project, if you select the Overwrite existing items option, all IDs will be kept the same. This means that items you export from the project have identical IDs in the project you exported them from and the project you imported them into.
Overwriting existing behavior is desirable when working with Dynamics workflows in a multi-tenant environment where you use flow IDs in a workflow step. Maintaining your IDs ensures your workflows continue to function.