Migrating Salesforce CPQ Data
Salesforce CPQ (the SBQQ package) stores its configuration as records, not metadata — product rules, price rules, discount schedules, configuration attributes, and the web of lookups between them. That makes moving a CPQ setup between orgs notoriously error-prone. mtdt.io packages it into a guided migration.
What makes CPQ special
CPQ configuration spans many related SBQQ objects with deep parent-child and lookup relationships. Move them in the wrong order, or without remapping IDs, and the target org ends up with broken rules. mtdt.io uses a CPQ template to retrieve related configuration and deploy selected records in dependency order.
Running a CPQ migration
- Open Migrations and start a CPQ migration.
- Select source and target orgs (for example, a configuration sandbox → production).
- Retrieve the CPQ configuration from the source.
- Validate (dry run) — review planned inserts, updates, deletions and records that will be skipped. This writes no records and does not test whether Salesforce will accept the actual writes.
- Deploy — mtdt.io writes the configuration to the target in dependency order, remapping lookups so every rule points at the right related record.

Bringing the fields along
CPQ records can only land if the target org has the fields to hold them. When mtdt.io compares the two orgs and finds an object whose custom fields differ — a field that's missing on the target, or configured differently — it shows an Add to Deployment checkbox on that object.
Tick it, and before writing any data mtdt deploys those missing or changed custom fields to the target, then adds missing profile field-permission entries where a source profile has a matching target profile name. Existing target field-permission entries are left as they are. The records then have somewhere to go — no separate metadata deployment to run first. For CPQ this is on by default, so the option appears whenever there's a gap.
It's a targeted shim, not a full schema migration: mtdt brings custom fields and their FLS, not whole objects, layouts, record types, or validation rules. The object itself must already exist on the target — mtdt fills in the fields it's missing.
Matching and re-runs
Re-running the same migration uses its saved record pairings to update matched target records. Review the plan before each run: an unpaired record may be inserted, and selected target-only records may be deleted.
Records that already exist in the target independently — created by hand, or by an earlier load mtdt didn't run — are paired by their values. The CPQ template matches products by Product Code, and child records by their parent plus the fields that tell them apart: a product option by its bundle, feature and optional product; a price tier by its price schedule and name. A paired record is updated, so the deploy creates no second copy of it.
For records with usable matching fields, mtdt.io also checks the target before inserting for a record with the same identifying values. If it finds one that isn't paired yet, it skips the insert and lists the record on the migration page after Validate or Deploy, so you can refresh the target or pair the two with Match.
Some records can't be paired by their values: two records in one org with the same identifying values (for example, two products with one Product Code), records missing those values, and objects without a matching rule. The migration page lists them; they are matched by Salesforce ID until you pair them with Match.
Target-only records
A CPQ migration can also delete selected records that exist only in the target. Review the planned deletions during the dry run. The Deploy dialog requires a separate confirmation when the selection includes deletions.
Best practices
- Rehearse in a sandbox before migrating into production.
- Run a dry run and review the plan every time, including updates, deletions and skipped records. It is a preview, not Salesforce validation of the writes.
- Keep source and target on compatible CPQ package versions to avoid field-level mismatches.
- Confirm field-level security landed when you let mtdt.io deploy fields. mtdt migrates profile field permissions (not permission-set ones), matched by profile name; if a profile exists in the source but not the target, the field still deploys but that profile's permission is skipped.
- Migrate during a quiet window for large configurations, since the process is subject to Salesforce API limits.
For the general concepts behind record migration, see Data Migration Between Environments.