Every row in the extract points at its parent by an ID Salesforce has never heard of. Store that ID on the parent as an External ID and the children find their way home on their own. No VLOOKUP between loads.
On this page
- The problem
- What the checkbox does
- 1 · Create the field
- 2 · Load parents
- 3 · Load children
- Troubleshooting
- Gotchas and FAQ
The old IDs are the bridge.
Every child record in the extract points at its parent by the old system’s ID. Keep that ID on the parent in Salesforce, mark it External ID, and children can find their parents with no VLOOKUP.
Without it, every load goes: insert parents, paste the success file into Excel, VLOOKUP the new IDs into the child file, insert children, repeat. With it you also get traceability (which old record became which new one), reconciliation (did everything make it?), and a way back to the source long after go-live.
Prefer to read? Everything in the video is written out below.
External ID vs a plain text field.
Same field type. Three differences that matter in a migration.
| Plain text field | External ID | |
|---|---|---|
| Lookup key in Data Loader | No | Yes: children can reference the parent by it, and upsert can match on it |
| Indexed | No | Yes, automatically: faster matching on big loads |
| Global search | Not always | Yes: paste an old ID, find the record |
Tick Unique too if the source guarantees one ID per record. It stops the same legacy ID landing on two records.
Create the Legacy ID field.
One per object you’re migrating, created before the first load.
- Object Manager → the object (e.g. Account) → Fields & Relationships → New → Text.
- Label it Legacy ID (API name
Legacy_ID__c). Use the same name on every object. - Make it long enough for the longest source ID. A Dynamics GUID is 36 characters.
- Tick External ID, and Unique if it applies.
- Set field-level security and add it to the layouts.

Load parents with their old IDs.
Map the source ID column to Legacy_ID__c on the parent load.
Example: a Dynamics migration. Insert Accounts and map the Dynamics account ID to Account.Legacy_ID__c. The Account load post has the rest of that load. The success file now pairs each new Salesforce ID with the legacy ID you gave it. Keep it.

Load children by the parent’s old ID.
The Contact file still has the Dynamics account ID. Point Data Loader at Account.Legacy_ID__c and it finds the right Account.
In the Data Loader mapping, map the child’s parent column to the parent’s external ID instead of its Salesforce ID. For Contacts that’s Account:Legacy_ID__c (on an upsert, Data Loader asks for it on its own screen). Data Loader looks up the Account by that value and fills in AccountId for you.
No VLOOKUP step between loads. Your child files keep the source system’s IDs all the way through, which means fewer hand-edited files and fewer contacts on the wrong account. Headers that are API names make the mapping quick.
When it doesn’t match.
| Symptom | Check |
|---|---|
| Children on the wrong parent, or none | The lookup is mapped to the parent’s External ID, not its Salesforce ID. Legacy IDs have no extra spaces |
| Lookup matches fail | Parents loaded first, with Legacy ID filled. Case, hyphens and leading zeros match the CSV |
| Duplicate errors | The source has repeated IDs. Remove them, or don’t tick Unique if repeats are legitimate |
| Field not in Data Loader | External ID is ticked, field-level security allows it, and you logged out and back into Data Loader |
| Slow loads | Split very large files into smaller batches |
The questions people ask.
Why keep legacy IDs at all?
How long should the field be?
Should I tick Unique?
Can I use it to upsert later?
Any naming advice?
Legacy_ID__c. Your mappings and formulas stay the same.This is how every load connects.
The Masterclass walks through the whole migration in load order, with legacy IDs carrying each relationship from Accounts down to activities.
Know someone still VLOOKUP-ing IDs between loads?
Share on LinkedInOne CSV is a tutorial. Forty objects, 15 years of history and a go-live date is a project. That’s the part I do for a living.
See how I run migrations →