Migrate a blueprint between environments
Move blueprints between ServiceNow CPQ environments to maintain consistent configuration management. Export, update, and import blueprint packages using the Matrix Loader to promote tested configurations from development to production.
Before you begin
Review ServiceNow CPQ upgrade windows, described in ServiceNow CPQ Upgrade Schedule. Schedule your migration to avoid published upgrade windows. If you have questions regarding this topic, contact your customer Support team.
Role required: admin
About this task
Understand the following terms:
- Source: The environment from which functionality is migrated.
- Destination: The environment to which functionality is migrated.
- Migration package: The file or files exported from the source environment to be imported to the destination environment.
Procedure
Export the blueprint from the source environment.
- In the source environment, select the blueprint to move.
Blueprints list with check box selection
2. Select **Export**.
Export blueprint button
The first notification indicates that the export process has started. After the export completes, a second notification indicates that the blueprint is ready for download. Watch for notifications on the bell icon in the lower-left corner.
3. In the bell icon menu, select the **Download** link.
Download blueprint link in notification menu
4. Save the blueprint to your local machine or a central repository such as Git.
If your environment is integrated with Salesforce and you are migrating the blueprint for the first time, verify the prerequisites. Then perform step 1 in [Migrate a blueprint to an SFDC-integrated destination](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown).
Modify the migration package.
Unzip the blueprint ZIP file you downloaded in step 1.
The file unzips to a blueprint.yaml file.
blueprint.yaml file selection
2. Open the blueprint.yaml file in a text editor.
When migrating a blueprint to a destination with an earlier version, add the following line to the bottom of the file to avoid conflicts:
```
fullBlueprintMigration: true
```
Sample edited blueprint.yaml file:
```
---
blueprints:
- variableName: someBlueprint
related Fields:
- field1
- field2
- field3
lastModifiedBy: dev5@dev.logik.io
name: someBlueprintName
description: BP description goes here
relatedSets: null
scripts: null
layouts: null
products: null
productPickers: /fields/productPickers.yaml
sets: null
fieldOptions: /fields/fieldOptions.csv
rules: /rules/rules.csv
fields: /fields/fields.csv
fullBlueprintMigration: true
```
For a description of how this parameter affects the blueprint migration, see [The fullBlueprintMigration parameter](cpq-fullblueprintmigration-param.md). If your environment is integrated with Salesforce and you are migrating the blueprint for the first time, perform step 2 in [Migrate a blueprint to an SFDC-integrated destination](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown).
3. Save your edits and close the blueprint.yaml file.
Compress all components of the migration package to a new ZIP file.
Include blueprint.yaml, the blueprints folder, the fields folder, the rules folder, and any other artifacts from the migration package. Do not include the parent folder.
Migration package contents for compression
**Warning:** When compressing, select only the contents of the unzipped blueprint export, not the parent folder itself. If the parent folder is selected, you receive an error when uploading to the ServiceNow CPQ Admin.
Import error message
Migrate components related to the blueprint to the production tenant.
For example, migrate managed tables and external connections used by the blueprint.
Import the blueprint to the destination environment.
Log in to the administration area of the ServiceNow CPQ destination environment.
Open the Matrix Loader.
Drag the edited migration package ZIP file into the Matrix Loader drop area.
Select Next, then select Import.
If you encounter errors after the import, follow the on-screen instructions to review the error logs.
Test the migration.
If your environment is integrated with Salesforce and you are migrating the blueprint for the first time, perform steps 3 and 4 in Migrate a blueprint to an SFDC-integrated destination.
Review your migrated blueprint from the end-user UI in the destination ServiceNow CPQ environment.
Related topics