
Types of Sandboxes in Salesforce
A Salesforce Sandbox is a replica of your production environment, used for development, testing, training, and other non-production tasks. These environments are isolated, meaning changes made in a sandbox do not impact the live production org. Explore the different Types of Sandboxes in Salesforce: Developer, Developer Pro, Partial Copy, and Full Sandbox. Learn their uses, features, and key benefits.
Sandboxes help maintain data integrity, enable innovation, and provide the flexibility to build and test before going live. Salesforce offers multiple types of sandboxes, each suited for specific needs and varying in terms of data access, refresh limits, and storage capacity.
Types of Salesforce Sandboxes
Salesforce provides four primary types of sandboxes:
1. Developer Sandbox
2. Developer Pro Sandbox
3. Partial Copy Sandbox
4. Full Sandbox
Let’s dive into the unique features and ideal use cases for each.
1. Developer Sandbox
Purpose: Ideal for coding and testing in isolation.
Key Features:
- Contains only metadata, not actual data from production.
- Very limited data storage (200MB).
- Refresh interval: once per day.
Use Cases:
- Unit testing.
- Developing new features or Apex code.
- Configuration changes that do not need real data for validation.
Limitations:
- No production data is copied.
- Limited storage.
Best Practices:
- Use for individual development tasks.
- Combine with scratch orgs for agile development workflows.
2. Developer Pro Sandbox
Purpose: Enhanced version of the Developer Sandbox with greater storage capacity.
Key Features:
- Also includes only metadata.
- Higher data storage (1GB).
- Refresh interval: once per day.
Use Cases:
- More complex configurations.
- Larger development teams.
- Data-driven development using test data.
Limitations:
- No actual production data.
Best Practices:
- Use for medium-sized development efforts.
3. Partial Copy Sandbox
Purpose: Mid-tier environment with both metadata and a sample of production data.
Key Features:
- Includes metadata and a subset of production data.
- Storage limit: 5GB for data, 1GB for files.
- Refresh interval: every 5 days.
Use Cases:
- QA and UAT testing.
- Training with familiar data.
- Testing integrations with real data patterns.
Limitations:
- Only selected objects and records are copied.
Best Practices:
- Create Sandbox Templates.
- Ideal for user training and app functionality testing.
Explore Other Demanding Courses
No courses available for the selected domain.
4. Full Sandbox
Purpose: Complete replica of production, including both metadata and full data.
Key Features:
- Identical to production.
- Data storage equals your production org's storage.
- Refresh interval: every 29 days.
Use Cases:
- Full regression testing.
- Load and performance testing.
- Pre-deployment staging.
Limitations:
- Long refresh time.
- May require data masking.
Best Practices:
- Use data anonymization tools.
- Align refreshes with release cycles.
- Validate major releases here before production deployment.
Sandbox Type Comparison
| Feature | Developer Sandbox | Developer Pro | Partial Copy | Full Sandbox |
| Metadata Copy | Yes | Yes | Yes | Yes |
| Data Copy | No | No | Sample data | Full production |
| Storage | 200MB | 1GB | 5GB (data) | Same as production |
| Refresh Interval | 1 day | 1 day | 5 days | 29 days |
| Ideal Use | Coding, testing | Larger dev | QA, UAT | Pre-prod testing |
When to Use Each Sandbox Type
- Early-stage development: Use Developer or Developer Pro.
- Feature testing with realistic data: Go for Partial Copy.
- Comprehensive testing and deployment: Rely on the Full Sandbox.
Tips For Managing Salesforce Sandboxes
1. Name sandboxes clearly (e.g., QA_PartialCopy).
2. Automate refresh schedules.
3. Maintain sandbox templates.
4. Enable data masking.
5. Establish sandbox usage policies.
Salesforce Sandbox vs Scratch Org
Scratch Orgs are ephemeral orgs used for agile, source-driven development in Salesforce DX. They are ideal for CI/CD but do not replicate production data.
Sandboxes, by contrast, are persistent and integrate closely with production, making them suitable for broader testing and staging environments.
Final Thoughts
Understanding and leveraging the right type of Salesforce Sandbox is critical for successful implementation and testing. Each sandbox type serves a unique purpose, and using them strategically can significantly improve development cycles, reduce errors, and ensure smoother deployments.
Do visit our channel to learn more: Click Here