Salesforce Sandbox Strategy: Choosing the Right Sandbox Type for Every Change
Every Salesforce change starts in a sandbox — or it should. But pick the wrong sandbox type and you either waste weeks waiting for a refresh or test against data that looks nothing like production. Here is a practical way to choose.
The four types, in plain terms
Developer Sandbox — a metadata-only copy, no production data, 200 MB storage. Fast to spin up and refresh daily. Perfect for a single developer building a flow or an Apex class. The catch: you test against empty objects, so anything data-dependent needs manual setup.
Developer Pro Sandbox — same idea, but 1 GB of storage. The extra room matters when your change touches lots of metadata or you need a bigger set of sample records. Still no production data, still fast to refresh.
Partial Copy Sandbox — a 5 GB sandbox that includes a sample of your production data based on a template you define. This is the sweet spot for UAT: real-ish data, reasonable refresh time (usually a day or so). Choose your template carefully — a bad template means testing against the wrong records.
Full Sandbox — a complete copy of production: all metadata, all data. The gold standard for final testing, training, and major releases. The price is refresh time (days for large orgs) and the fact that you can only refresh every 29 days.
A simple decision rule
- Building something new alone? Developer Sandbox.
- Testing a change with a small team? Developer Pro.
- UAT with business users? Partial Copy, with a template that mirrors the records they actually work with.
- Release rehearsal, training, or a major deployment? Full Sandbox.
Three mistakes teams keep making
1. Testing in production because the sandbox is "too slow." A Full Sandbox refresh takes days; a Developer Sandbox refresh takes minutes. Match the sandbox to the job instead of skipping testing altogether. Bad data is the root cause of most automation failures — and clean data starts with a plan. Our guide on why every AI strategy needs data cleaning first applies just as much to sandbox testing as it does to AI.
2. Refreshing without telling anyone. A refresh wipes the sandbox. Someone's in-progress work disappears. Announce refreshes, freeze changes before them, and keep anything worth saving in version control.
3. Skipping regression tests on "small" changes. A one-line Apex change can break a trigger. Keep a lightweight regression pack — the test-coverage discipline in our Salesforce test classes guide is a good starting point — and run it in the sandbox before every deployment.
A workflow that works
Keep one Developer Sandbox per developer, one Partial Copy for UAT, and one Full Sandbox for release rehearsal. Refresh the Partial Copy on a schedule (monthly is a good default) and the Full Sandbox before every major release. Use change sets or a DevOps tool to move metadata between them, and never edit directly in production.
The sandbox is not overhead. It is the cheapest insurance your org will ever buy.
Originally published at Way2Force — practical guides on Salesforce Flow, automation, and CRM.
Top comments (0)