The Build Datasets dialog in Metazoa Snapshot downloads related Salesforce records as local XML files while preserving record relationships for later migration. Admins and developers use datasets to prepare sandbox test data, back up relational data, or stage records for an org merge.
When To Use This Dialog
- Prepare connected records for sandbox testing.
- Back up relational data or managed package configuration records on a recurring schedule.
- Extract records for an org merge, split, or clone.
Build Datasets downloads records; Migrate Datasets loads records into a destination org, while Manage Datasets compares or remaps datasets.
Open The Dialog
- Locate a deployment arrow between two connected org snapshots.
- Right-click the arrow, or select the arrow and open the Options Menu.
- Choose Build Datasets from the dataset commands.
A Developer Project contains metadata rather than live records and cannot serve as the source.
Select Dataset
Enter a name and click Create New Dataset, or select a saved dataset and click Replace Existing Dataset. Replacing a dataset overwrites the named download.
Choose Create New Template, Use Existing Template, or Select Prebuilt Template. The prebuilt menu includes relationship templates and managed packages installed in the source org. Selecting a package generates an object hierarchy that you can customize.
Loaded Fields
Choose the fields to download for each source object. Fields that cannot be created or updated, such as formula and system fields, are usually excluded by default. Default Values resets the available and loaded field selections.
Include fields needed for later destination matching. For example, matching Accounts by Name and BillingCity requires both fields in the dataset.
Objects above the dividing line supply records for migration. External references below the line represent related records to match in the destination; load fields that help identify those records.
Select Parents
Select parent objects and choose how Snapshot identifies the records to download:
- Select All: include every record for the selected object.
- Select By Name: choose individual records.
- Select With Filter: select records using filter criteria.
- Select With SOQL: supply a SOQL query.
- Select Random Set: choose a random subset.
Select Children
Add children when the download should include only records related to selected parents. Parentheses beside a child object identify the relationship field connecting the child to the parent. You can extend the hierarchy through additional child objects.
Select a child and click Child Record Limits to enter a record limit or child relationship filter. Click Test Filter; This SOQL Filter will work. means the filter passed the test.
Click Estimate Dataset Size to review approximate record counts and storage size before downloading. Adjust selections, filters, or limits when the estimate exceeds the intended scope.
Build Dataset
Review the source org and dataset name. Click Save Dataset to save settings without downloading, or Build Dataset to download records and save settings.
Source Objects shows the object hierarchy. Build Report shows results from the last build, including permission warnings and fields hidden from the API. Address reported access problems and rebuild before relying on the affected records or fields.
Schedule Build
Schedule a future download or a recurring rebuild of the selected dataset. Each run writes local XML files and replaces the named dataset; scheduled datasets do not form a time series. Scheduled result destinations include Email, Slack, Content, Chatter, and the Assistant, whose destination records the latest results as Org Intelligence.
What The Results Tell You
The hierarchy identifies selected objects, parent selection methods, and child relationship fields. The size estimate describes approximate extraction volume; Zero Bytes means the estimated size is zero or below, not proof that no source records exist.
Build warnings identify access problems, such as a missing Query All Files permission or a field hidden from the API. A completed download does not establish that destination matching, relationship restoration, or application testing will succeed; those checks follow migration.
Try The Dialog
- In a sandbox, create an Account named
Example_Accountwith a related Contact. - Create
Example_Previouswith Create New Template. Choose the Account using Select By Name, add Contact as a child, load the AccountNamefield, and build the dataset. - Create
Example_Currentusing Use Existing Template from the previous dataset. Configure a future run in Schedule Build. - Before the scheduled run, change the selected Account name in Salesforce to
Example_Account_Updated. - After the run, review Build Report and compare the datasets in Manage Datasets.
Expect a difference in the Account name while the parent selection remains Select By Name. Review the change before using the current dataset for a sandbox load, and retain the separate previous dataset when history matters.
Saved Files And Template Reuse
Dataset XML files reside in the datasets folder beside workspaces in the Snapshot file system. Saved datasets are available for later migration to another org.
Use Export Template and Import Template on Select Dataset to save and reuse a template as a text file across orgs or client projects.
Reference
Dataset Names
Use 4 to 50 characters: letters, numbers, and underscores. Begin the name with a letter.
Initialized Connections
The deployment arrow needs initialized source and destination snapshots. If Snapshot displays Please take a snapshot before continuing., take the required snapshot before returning to Build Datasets.
Keep The Hierarchy Simple
Prefer parent selections unless children are needed to restrict records to a related parent. Do not reproduce the entire conceptual data model: Snapshot determines record relationships automatically. Multiple hierarchy paths can include the same child more than once, although migration processes each record only once. A parent migration failure can also prevent descendants from migrating.
Common Questions
Does Build Datasets Copy Salesforce Metadata?
No. Build Datasets downloads records. Use a metadata snapshot and metadata deployment for objects, fields, and other configuration.
Does A Scheduled Build Keep Previous Backups?
No. Each scheduled build replaces the dataset with the same name. Keep a separate dataset when an earlier state must remain available.
How Do I Review Sensitive Fields Before Sandbox Seeding?
Review every object's selections in Loaded Fields and exclude unnecessary fields. Scrambling selected values belongs to Migrate Datasets, not Build Datasets.
How Can I Check Relationships Beyond Record Counts?
Review the selected hierarchy and relationship fields before building. After loading through Migrate Datasets, inspect representative destination records and their related lists rather than relying only on record totals.
Related Articles
- Migrate Datasets - load records and configure matching.
- Manage Datasets - compare datasets or remap fields and values.
- Take Snapshot - capture metadata rather than records.
Further Reading
- Relational Data Migration - matching, verification, and object-specific migration procedures.
- Salesforce Org Splits (also covers Org Clones) - planning selective data and metadata moves.
- Salesforce Org Merges - staging and validating org consolidation.