Export and import resources
If you've created multiple environments to support the development of your database and apps, you must move changes from one environment to another environment. You can use Export resources and Import resources to move resources between environments.
Each environment contains resources, such as entities, flows, and apps, that you create or modify during the development process.
Typically, development is done in the same environment that is used by the organization's end users. This environment is known as the default environment. It's relatively easy to manage resource changes in the same environment. You validate the changes to make sure that all critical business processes and applications are functional, and then you release the app.
Sometimes, development and testing are done in separate environments, and changes are moved to the default environment when they are ready to be used by end users. There are several reasons why you might use separate environments. For example, you might have used a separate environment when you initially evaluated the system. Alternatively, you might want to minimize the risk that is involved when changes are made to the default environment. Separate environments provide isolation, because you make your changes in an environment that isn't the default environment. Depending on the extent of the risks, you might create an additional staging environment. In this case, you have a development environment, a staging environment, and a default environment.
You move resources through separate export and import processes, by using a package (.zip) file. The package file is exported, saved to local storage, sent to the administrator of the target environment, and then imported into the target environment. The import process is often followed by validation testing to help guarantee that no critical business processes have been adversely affected.
The functionality for both resource import and resource export is available in the Environments section of the admin center. Both export and import occur in the context of a selected environment.
The export package will contain all changes to entities, and picklists. We are working to enable the export of more resource types such as apps, flows, connectors, roles and others. This option lets you move contents of one environment to another environment.
- In the admin center, in the left navigation pane, click Environments.
- Select the source environment.
- In the upper right, click Export resources.
- Choose the resources you want to start with:
- Select the tab corresponding to a resource type you want to select, such as Entities.
- Select all resources under the type by clicking the header checkbox, or select resources individually.
- Click Next.
- Include related resources if appropriate:
- If we discover any related resources, we will show you a pre-selected list.
- Exclude all related resources by clicking the header checkbox, or unselect resources individually.
- Click Next.
- Add a Name for the exported package.
- Optionally, you can customize setup actions to be performed upon import of resources:
- For each resource, click the Import setup to see a dialog.
- Select the setup action you want performed by default when this package is imported
- Click Save.
- Click Export.
- When export is completed, save the package file in local storage.
Alternatively, you can click Select all resources in the resource selection page to include all resources of all supported types in the final package, and go directly to the final export page.
The first step is to select a package file that was exported from the source environment. The import process validates, analyzes, and tries to import the package.
- In the admin center, in the navigation pane, click Environments.
- Select the target environment.
- In the upper right, click Import resources.
- Click Upload, and browse to a package file in local storage.
- Click Next to go to the final import page.
- Resolve import validation errors and warnings:
- Look for warnings or errors, as indicated by the icon to the left of a resource Name.
- Click the Import setup field or the icon under Action for more information.
- Select an appropriate import setup action.
- The package being imported is automatically validated again.
- Proceed to Import if there are no errors.
If the package is only partially applied, you receive an error message that describes what was imported and what wasn't imported.
The development process can involve changes to many types of resources. For example, if you update an app, you might add, remove, or update several entities or connections. Changes to some, and not all, resource types can be moved across environments. The following sections describe the types of resources that you can move.
You can export and import entities, and picklists as follows:
- Standard entities – Only customizations are moved across environments. (You can't modify the out-of-box fields of standard entities.)
- Custom entities – Custom entities are moved across environments.
- Custom picklists – Custom picklists are moved across environments.
You can't move database data as part of the export and import of resources. To move data, you can use Microsoft Excel. For more information, see Import or export data.