Skip to main content
New tool CRON Expression Builder — preview next run times before you schedule Apex. Open the builder →
Comparison chart illustrating the four different Salesforce sandbox types available for development projects
DevOps

Comparing the 4 Salesforce Sandbox Types for Developers

Picking the wrong environment for your Salesforce project can lead to broken flows or failed tests. Here is a simple breakdown of the four sandbox types and how to choose the right one for your next sprint.

The short answer

Salesforce provides four sandbox environments—Developer, Developer Pro, Partial Copy, and Full—each designed for specific testing phases based on data storage capacity and refresh intervals. Selecting the appropriate sandbox type ensures stable releases, protects production orgs, and optimizes development cycles.

Key takeaways Use Developer sandboxes (200MB) or Developer Pro sandboxes (1GB) for daily development, unit testing, and integration testing without copying production records. Configure sandbox templates in Partial Copy sandboxes to test up to 5GB of sample data capped at 10,000 records per object for QA and UAT. Reserve Full sandboxes for large data volume query validation, performance testing, and final regression testing before deployment. Mask sensitive data such as email addresses and phone numbers in data-containing sandboxes to avoid accidental customer outreach. Automate post-refresh environment updates for API endpoints and usernames by running Apex post-copy scripts.

Choosing the Right Salesforce Sandbox Types for Your Project

If you've ever accidentally broken a production org by pushing a "simple" flow change, you know why we need a safe place to play. Understanding the different Salesforce sandbox types is the first step toward a stable release cycle. I've spent years in various orgs, and honestly, the biggest mistake I see is teams using the wrong environment for the task at hand. It's either a developer trying to run a full performance test in a tiny sandbox, or a QA lead demanding a Full Copy for a basic UI check.

Basically, a sandbox is just a copy of your production environment. It lets you build, break, and fix things without your actual users ever knowing. But not all sandboxes are built the same. Some only copy your metadata (the "skeleton" of your org), while others copy every single record you've got. Let's break down which one you actually need for your next sprint.

Breaking Down the Four Salesforce Sandbox Types

Salesforce gives us four main options. Each one has a specific purpose, and picking the right one usually comes down to two things: how much data you need and how often you need to refresh it. If you're constantly switching between multiple orgs, you might even want to use a Salesforce environment switcher to keep things organized.

1. Developer Sandbox

This is the workhorse for individual devs. It's a copy of your production metadata, but it doesn't bring over any of your actual records. You get a tiny bit of storage (200MB), which is enough for some basic test data you create yourself. The best part? You can refresh it every day. I usually tell my teams to use these for "unit testing" - just making sure the code doesn't crash before it moves to a shared environment.

2. Developer Pro Sandbox

Think of this as the Developer Sandbox's older sibling. It still doesn't copy production data, but it gives you more storage (1GB). This is great for integration testing where you need to load in a larger set of mock data from an external system. It's also a solid choice for small team projects where multiple people are building in the same space. Like the standard version, you can refresh this one every 24 hours.

3. Partial Copy Sandbox

Now we're getting into the data. A Partial Copy sandbox includes your metadata and a sample of your production data. You use a "Sandbox Template" to tell Salesforce exactly which objects you want to copy. It's limited to 5GB and 10,000 records per object, but that's usually plenty for Quality Assurance (QA) or User Acceptance Testing (UAT). But here's the catch: you can only refresh it every 5 days. So, if you mess up the data on day one, you're stuck with it for a while. If things go south, you'll want to have a plan for Salesforce sandbox recovery to get back on track.

4. Full Sandbox

This is the "holy grail" - a 1-to-1 mirror of your production org, including all your data, attachments, and setup. It's perfect for performance testing or final regression testing. But it's expensive and slow to refresh. You have to wait 29 days between refreshes, so use it wisely. If you're managing large data volumes, this is the only place you can really see how your queries will perform at scale.

One thing that trips people up: just because you have a Full Sandbox doesn't mean you should use it for everything. It's like using a sledgehammer to hang a picture frame. Keep your daily dev work in the smaller boxes and save the Full Copy for the final stage before deployment.

Best Practices for Managing Salesforce Sandbox Types

So how do you actually use these without losing your mind? Here's the thing: most teams get the architecture wrong because they don't plan for the refresh cycles. If you refresh a sandbox while a developer is halfway through a feature, their work is gone. Always coordinate with the team before hitting that refresh button.

  • Use Sandbox Templates: Don't just grab everything for a Partial Copy. Be surgical. Pick the objects that actually matter for the test.
  • Mask your data: If you're copying production data into a sandbox, make sure sensitive info like emails or phone numbers are masked. You don't want a test script accidentally emailing real customers.
  • Automate the post-refresh setup: I've seen teams waste days manually updating API endpoints and usernames after a refresh. Use Apex post-copy scripts to handle this automatically.
  • Watch your limits: Each of the Salesforce sandbox types has its own storage ceiling. If you hit it, things start failing in weird ways that are hard to debug.

Key Takeaways

  • Developer/Pro: Best for building and unit testing. Metadata only. 1-day refresh.
  • Partial Copy: Best for QA and UAT. Uses templates for sample data. 5-day refresh.
  • Full Sandbox: Best for performance and final testing. Full data copy. 29-day refresh.
  • Strategy: Always use the smallest environment that fits the task to save time and money.

At the end of the day, picking between Salesforce sandbox types isn't just about what's available in your contract. It's about how your team works. If you're a solo admin, a few Developer sandboxes and a Partial Copy might be all you ever need. But for enterprise teams, having a clear "promotion path" from Developer to Partial to Full is the only way to keep production from breaking. Start small, test often, and don't be afraid to refresh when things get messy.

Frequently asked questions

What is the difference between Developer and Developer Pro sandboxes?

Developer sandboxes include 200MB of storage for individual unit testing, whereas Developer Pro sandboxes provide 1GB of storage for integration testing and larger mock datasets. Both environments copy metadata only and allow refreshes every 24 hours.

How often can you refresh a Salesforce sandbox?

Developer and Developer Pro sandboxes can be refreshed every day (24 hours), Partial Copy sandboxes can be refreshed every 5 days, and Full sandboxes can be refreshed every 29 days.

What are the limits of a Partial Copy sandbox?

A Partial Copy sandbox provides up to 5GB of storage and caps copied sample data at 10,000 records per object using a Sandbox Template. It can only be refreshed once every 5 days.

When should you use a Full Sandbox in Salesforce?

A Full sandbox is best reserved for performance testing, testing queries against large data volumes, and final regression testing prior to production deployment. Because it requires a 29-day wait between refreshes, day-to-day development should be conducted in smaller sandbox environments.

Newsletter

One email every Tuesday

New guides, tool updates, and the release-note changes that break things.

No spam. Unsubscribe in one click.

Comments

Loading comments...

Leave a Comment