Sandbox seeding fills a sandbox with realistic, related test data so developers, testers, and trainers can work with records that behave like production. Developer and Developer Pro sandboxes copy metadata but no data, and Partial Copy sandboxes copy only a sample. Teams therefore need a repeatable way to load the right records into sandboxes, with relationships intact and sensitive information protected.
What Good Seed Data Looks Like
- Related. Accounts arrive with their contacts, opportunities, cases, and custom child records.
- Targeted. The data covers the scenarios being built or tested, not a random slice.
- Safe. Names, emails, phone numbers, and other personal or sensitive values are scrambled or replaced.
- Repeatable. The same seed can be loaded again after every sandbox refresh without creating duplicates.
How to Approach Sandbox Seeding
- Define the dataset by choosing parent records and the child objects to include.
- Estimate the size so the seed fits the sandbox's storage.
- Protect sensitive fields by scrambling or transforming values during the load.
- Pause automation that would send emails or create unwanted records.
- Save the template and rerun the seed after each refresh, matching existing records instead of duplicating them.
How Snapshot Helps
- Build Datasets: selects parent records and related children from production, with Child Record Limits and Estimate Dataset Size, and saves the selection as a reusable template. Schedule Build supports recurring downloads that replace the named dataset.
- Migrate Datasets: loads the dataset into the sandbox with relationships preserved. Scramble Fields changes sensitive values during migration, Data Transforms remaps or replaces values, Deactivate Assets pauses selected automation, and matching fields with VirtualId mappings let repeat loads update instead of duplicating.
- Manage Datasets: remaps fields and values when the sandbox schema differs, and compares datasets.
Successful loads do not establish complete anonymization. Check scrambled fields in the sandbox before giving testers access.
Metadata Types Involved
-
CustomObject: the objects in the seed dataset. -
CustomField: fields to load, match on, or scramble.
Common Questions
Which sandboxes include production data?
Full Copy sandboxes copy all data, and Partial Copy sandboxes copy a sample defined by a sandbox template. Developer and Developer Pro sandboxes copy metadata only.
How do I keep personal data out of sandboxes?
Scramble or replace sensitive field values as records are loaded, and verify the results before granting access to the sandbox.
Do I have to reseed after every refresh?
Yes, a refresh replaces the sandbox's contents. Saving the dataset definition makes reseeding a repeatable step.