This page provides instructions and best practices for exporting campaigns from one Project and importing them to another.
When you export a Campaign using the process described here the Campaign artifacts are saved to a zip-file with can then be imported back into Fabric.
To export Fabric artifacts to an external repository for CI/CD integration or version control use the commands and process described here.
Only Administrators can import and export campaigns.
Campaigns must be in a DEPLOYABLE state to be exported. This means that they have been configured completely and have undergone simulation and refinement processes.
Export a Campaign
- Authenticate to Cortex Fabric Console, select the Project that has the campaign you want to export, and click Campaigns.
- Make note of the name of the campaign you wish to export.
- Open a terminal and set your context to wherever you want the exported file saved.
- Authenticate to the CLI
- Run the following CLI commandcortex campaigns export <campaignName> --o <name-to-give-export-file>
An .amp file (a zip file with all campaign assets) is saved to the location specified.
Import a Campaign
Open a terminal, authenticate to Cortex and set your context to the project or another Cortex environment you want the campaign to be imported into.
Import the campaign to that project or another environment using Fabric CLI:cortex campaigns import <campaignExportFilepath> --project <projectName>
Create secrets required by the Campaign connections. (Secrets are not exported as part of this feature, so they must be added separately.)
Authenticate to Fabric Console and select the Project you imported the Campaign to
Verify that imported connections are updated with the Secrets created in step 3 above.
From the Data Sources list page, for each data source imported for this campaign, open the kebab menu and select Refresh Data Source.
From the Profile Schemas list page, for each profile schema imported for this campaign, open the kebab menu and select Rebuild Profiles.
Make sure there are no errors in re-ingesting Data Sources and profiles. The status is displayed on the list card.
Run simulation using the imported campaign using the Mission intervention
Other import Campaign CLI options
Add the following options to the import command to achieve the described results.
|displays a list of campaigns for the project|
|displays the details of the campaign named in the command parameters|