Migrate a blueprint between environments
On this page
Migrate a blueprint between environments
Move blueprints between 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 CPQ upgrade windows, described in 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.
[Omitted image "cpq-blueprints-export-1.png"] Alt text: Blueprints list with check box selection
-
Select Export.
[Omitted image "cpq-blueprints-export-2.png"] Alt text: 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.
-
In the bell icon menu, select the Download link.
[Omitted image "cpq-blueprints-export-download.png"] Alt text: Download blueprint link in notification menu
-
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.
-
-
Modify the migration package.
-
Unzip the blueprint ZIP file you downloaded in step 1.
The file unzips to a blueprint.yaml file.
[Omitted image "cpq-blueprints-blueprint-yaml-file.png"] Alt text: blueprint.yaml file selection
-
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: [email protected] 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. 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.
-
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. [Omitted image "cpq-blueprints-migration-package.png"] Alt text: 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 CPQ Admin.
[Omitted image "cpq-blueprints-upload-error.png"] Alt text: 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 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 CPQ environment.
-
Related topics
Keep exploring.
Find another answer, or bring this documentation into your own tools.