Data Migration Between Environments
Moving records between orgs is harder than moving metadata. Salesforce record IDs differ in every org, so a naive export/import breaks every lookup and relationship. mtdt.io migrates data while keeping those relationships intact.
Why data migration is hard
- IDs aren't portable. The same record has a different ID in each org, so lookups and master-detail relationships can't be copied verbatim.
- Order matters. Parents must exist before children, or the insert fails.
- Re-running should be safe. A second run shouldn't create duplicates of records that already moved.
mtdt.io addresses all three: it understands the object schema and relationships, loads records in dependency order, and remaps lookups from source IDs to the matching target records. Re-running a migration uses its record pairings to update matched target records; records without a target pair may be inserted.
A record that already exists in the target independently is paired with its source counterpart by the template's matching rules — fields that identify the same record in both orgs, such as a product code — or by hand with Match. An object without a matching rule is matched by its Salesforce ID, so it pairs only records that have the same ID in both orgs — in practice, records a sandbox copied from its production org.
How a migration runs
- Select source and target orgs.
- Retrieve the records and their schema from the source.
- Validate (dry run) — preview the planned inserts, updates, deletions and pairing issues without writing records. It does not submit the writes to Salesforce, so a successful dry run does not prove that Salesforce will accept the records.
- Deploy — records are written to the target in the correct order, with relationships remapped.
Every migration is scoped and tracked, so you can see exactly what moved and what matched.

Supported scenarios
The flagship, packaged scenario is Salesforce CPQ, where the configuration lives in records (product rules, price rules, and the rest of the SBQQ model) rather than metadata. See Migrating Salesforce CPQ Data for the step-by-step.
CPQ is the curated, built-in template — but the same engine moves any objects you choose. From the Templates button on the Migrations page you can define your own: pick the objects to migrate, set the matching rules that pair records across orgs, and optionally narrow to a subset with scope filters. A new template has no matching rules: until you add them, its records are matched by Salesforce ID. A template can also deploy the custom fields the target is missing, so the records have somewhere to land. Every migration starts by choosing a template, and yours goes through the same steps as CPQ. Unlike CPQ, a custom template defaults to a retrieve cap of 20,000 root records, after its scope filters; related records can add to the final volume. Change Max records (safety cap) in the template to raise the cap, set it to 0 for no cap, or choose Retrieve anyway on the migration. Leaving the field blank keeps the global default.
Best practices
- Run a dry run first and review the planned changes and skipped records before deploying. Whether target-only records can be deleted depends on the template and scope; review any planned deletions too.
- Migrate into a sandbox to rehearse before touching production.
- Mind volume. Large object sets take time and are subject to Salesforce API limits — migrate in sensible batches.