Sub topic 4
Developer and Developer Pro sandboxes
This chapter assumes you know what a sandbox is and the difference between metadata (configuration and code) and data (records). The next chapter covers Partial Copy and Full sandboxes.
What they copy
Developer and Developer Pro sandboxes are the two smallest sandbox types. Both copy only metadata from the source org: custom objects, fields, Apex classes, flows, page layouts, and similar configuration. Neither copies any production records. A new Developer sandbox has the same schema and code as production, but its objects are empty.
That makes them quick to create. It also means any data you need for testing has to be created by hand, loaded, or generated by a script.
How the two differ
The only differences are storage limits. The refresh interval is the same.
| Row | Developer | Developer Pro |
|---|---|---|
| Data copied | Metadata only | Metadata only |
| Data storage | 200 MB | 1 GB |
| File storage | 200 MB | 1 GB |
| Refresh interval | 1 day | 1 day |
At roughly 2 KB per record, 200 MB holds about 100,000 typical records. Developer Pro holds about five times as much.
Typical uses
- Developer: one developer's coding and unit testing. Each person on a team can have their own, so work stays isolated.
- Developer Pro: work that needs more records or files, such as quality assurance, integration testing, and user training on a small data set.
Because the refresh interval is one day, you can reset either type often. This suits short-lived feature work.
Loading test data
Since no records arrive, many teams keep a seed script. This anonymous Apex creates a few accounts and stays within sandbox storage:
List<Account> accounts = new List<Account>();
for (Integer i = 1; i <= 50; i++) {
accounts.add(new Account(Name = 'Test Account ' + i));
}
insert accounts;
System.debug('Created ' + accounts.size() + ' accounts');For larger or related data sets, use Data Loader or the Salesforce CLI data commands instead.
Common errors
- Expecting production data. If a report or test returns nothing, the sandbox is probably empty because only metadata was copied.
- Hitting the storage limit. A bulk load can fill 200 MB quickly. Salesforce then blocks inserts, and you must delete records or move to Developer Pro.
- Forgetting unsaved work. A refresh replaces the sandbox with a fresh copy of production metadata. Anything not deployed elsewhere is lost. Later chapters cover preparation.
Exercise
A tester says their new Developer sandbox has no Opportunity records, although production has thousands. Is something wrong, and what are two ways to fix it for testing?
Show answer
Nothing is wrong. Developer sandboxes copy metadata only, so no production records are copied. You can load test data with Data Loader or the CLI, or run a seed script such as an anonymous Apex insert. If the test needs a much larger data set than 200 MB, use a Developer Pro sandbox (1 GB) or a larger sandbox type.