CIO Playbook / salesforce

Salesforce Development & Sandbox Strategy (CIO Playbook)

Salesforce Development & Sandbox Strategy (CIO Playbook)

Salesforce Development & Sandbox Strategy

Salesforce sandboxes are critical for safe development and testing, but they also carry licensing implications that CIOs must manage strategically.

This playbook section provides a comprehensive guide to sandbox types, licensing considerations, and best practices for environment strategies. It offers a framework for optimizing sandbox usage (and associated licenses) while ensuring robust development, QA, and UAT processes.

The goal is to help CIOs balance test coverage and cost efficiency, leveraging independent best practices, as advocated by licensing experts like Redress Compliance, to inform their decisions.

Sandbox Types and Licensing Implications

Salesforce offers multiple sandbox types, each with different capabilities and licensing entitlements. Understanding these differences is key to planning a cost-effective sandbox strategy:

  • Developer Sandbox: Includes all production metadata but no data. It has a small storage limit (e.g., ~200ย MB data, 200ย MB files) and can be refreshed daily. Licensing: Typically included (even in lower editions) for development use.
  • Developer Pro Sandbox: Metadata-only like Developer, but with larger storage (e.g,. ~1ย GB data/files). Useful for integration testing or larger dev tasks. Licensing: Included with higher editions (or available as an add-on).
  • Partial Copy Sandbox: Contains all metadata plus a subset of production data. You define a Sandbox Template to include sample records, up to a limit such as 5 GB or 10,000 records per object. Refreshable every 5 days, it strikes a balance between realism and storage. Licensing: Typically included with Enterprise, Unlimited, and higher-tier licenses (one Partial Copy is often provided) and can be purchased separately if more are needed.
  • Full Copy Sandbox: A complete replica of production (all data and metadata). It is refreshable less frequently (e.g., every 29 days) due to its size. This sandbox is ideal for final UAT and performance testing because it mirrors production exactly. Licensing: Usually only included with top-tier (Unlimited) agreements; Enterprise and lower editions must purchase Full Copy sandboxes as an add-on. Full sandboxes can carry significant cost, often as a percentage of production license spend.

Edition Differences: Sandbox availability depends on your Salesforce edition. Lower editions (e.g., Starter/Professional) include few or no sandboxes by default (sometimes requiring add-ons for any sandbox use). Enterprise Edition generally includes a limited number of Developer sandboxes and at least one Partial Copy sandbox, but no Full Copy by default.

The Unlimited Edition typically includes a Full Copy sandbox, plus more Developer and Developer Pro sandboxes, out of the box. Always verify your contract entitlementsโ€”Salesforce will lock sandboxes that exceed your licensed quota. If additional sandboxes are needed beyond what is included, plan for them in contract negotiations or renewals.

User Licensing in Sandboxes:

A key clarification is thatย sandboxes utilize your existing user licenses for access. Users log into a sandbox with cloned accounts from production; no separate user license fees apply for sandbox logins.

In practice, this means if you have 100 users with Salesforce licenses in production, those 100 user accounts (when copied into a sandbox) can all log in without additional cost However, each sandbox is an isolated copy of your org โ€“ user accounts (and their licenses) exist within that sandboxโ€™s limits.

You can activate or deactivate users in a sandbox independently of production to control who uses it. No new Salesforce license is consumed when a user accesses a sandbox, as itโ€™s included in your orgโ€™s sandbox feature โ€“ but managing which users have sandbox access is a strategic decision (discussed below).

Leveraging Developer Edition Orgs

In addition to sandboxes, Salesforce provides Developer Edition (DE) orgs โ€“ free, standalone orgs that are useful for initial development and experimentation:

  • Capabilities: Developer Edition environments offer many of the features of Enterprise Edition (custom objects, Apex, etc.), but withย strict limitsย (e.g., a very small data andย storage allowance, typically a few MBs, and usually only 1-2 user accounts). They are not connected to your production org and cannot be โ€œrefreshedโ€ from production data.
  • Use Cases: DE orgs are ideal for proof-of-concept development, training, or building AppExchange packages. A developer can try new configurations or code in a development environment (DE) org without affecting any corporate environments. Theyโ€™re also useful when sandbox capacity is constrained โ€“ for example, a new developer can start building in a personal DE org if no official sandbox is immediately available.
  • Limitations: Since they donโ€™t link to production, moving components from a Developer Edition to a real organization requires manual deployment (using the Metadata API, packages, or reconfiguration). Data in DE orgs is entirely separate โ€“ you cannot easily mirror production data. Thereโ€™s also no enterprise user management: you wouldnโ€™t give business users access to a development org (DE org) for UAT. Essentially, DE orgs supplement (but do not replace) sandbox usage in a controlled Salesforce environment.
  • Strategy Tip: CIOs can encourage early-stage development and innovation in Developer Edition orgs without consuming sandbox resources. For instance, an R&D team prototyping a new feature might use DE orgs until the concept is validated, then migrate the configuration into a proper sandbox for integration testing. This approach leverages free Salesforce-provided environments while preserving your sandbox licenses for later stages of the SDLC (Software Development Lifecycle).

Optimizing Sandbox License Usage

A savvy CIO will ensure that sandbox environments are used efficiently to minimize unnecessary license costs and complexity. Key strategies include:

  • Right-Size Your Sandbox Allocation: Match sandbox types to their purpose. Avoid using a Full Copy sandbox for daily development or unit tests โ€“ that would be overkill in both data volume and cost. Instead, use cheaper or included sandboxes (Developer, Dev Pro) for development and unit testing, Partial Copy for data-intensive QA, and reserve the Full Copy for final UAT or staging. This alignment prevents โ€œsandbox sprawlโ€ and keeps costly environments limited to when theyโ€™re truly needed.
  • Avoid Blanket Sandbox Access for All Users: Sandboxes should not be accessible to every production user by default. While technically any copied user could log in, itโ€™s rarely necessary for all employees to have sandbox access. Limit active users in test environments to those involved in testing or development, such as developers, administrators, dedicated QA staff, and a subset of business user testers for UAT. By deactivating unnecessary user accounts in sandboxes (or not provisioning login info to all), you reduce risk and administrative overhead. This also protects sensitive data โ€“ fewer people with access means a lower chance of a leak from a sandbox with production data.
  • License Implications of User Allocation: Because sandbox logins reuse production licenses, you donโ€™t pay extra per user in a sandbox. However, each active user in a Full or Partial Copy sandbox consumes data storage and generates additional system usage, such as API calls. For example, suppose all 500 production users log into a Full sandbox for testing. In that case, they might generate a load that requires the sandbox to be larger or perform better, potentially prompting discussions about sandbox performance or additional sandboxes. Keeping the user count lean ensures you stay within comfortable limits of your sandbox resources.
  • Monitor and Recycle Sandbox Environments: Treat sandbox licenses as a capacity to be managed. If you have a limited number (say one Partial Copy allowed), plan the schedule of its usage (for a particular project or testing cycle) and then refresh or repurpose it for the next need. Donโ€™t leave sandboxes idle for long periods โ€“ an unused sandbox still counts against your license quota. Salesforce will notify you if you exceed your sandbox entitlement (e.g., creating more sandboxes than you are licensed for) and may lock sandboxes to enforce compliance. Regular audits of sandbox usage help avoid surprises. If projects are completed,ย delete or archive sandboxesย that areย no longer in use to free up slots.

Licensing Optimization Example: An independent licensing advisor (e.g., Redress Compliance) would suggest reviewing your sandbox usage before each Salesforce contract renewal. For instance, if youโ€™re not fully using a purchased Full Copy sandbox, you might negotiate to drop it (saving cost) or trade it for additional Partial sandboxes that better fit your testing needs.

Conversely, if your teams are struggling with no Full sandbox on Enterprise Edition, consider budgeting for a full copy add-on โ€“ but offset that cost by ensuring other sandbox environments are rightsized (no extraneous sandboxes sitting idle). The overarching principle is to align sandbox investments with actual development lifecycle needs.

QA, UAT, and Staging Environment Best Practices

Designing a sandbox landscape for Quality Assurance (QA), User Acceptance Testing (UAT), and staging is a balancing act. CIOs must ensure robust testing while keeping within license and data constraints:

  • Multi-Tiered Environments: Implement a tiered approach to sandbox usage:
    • Development: Multiple Developer or Dev Pro sandboxes for each developer or team to build and unit test in isolation.
    • Integration Testing (QA): A shared sandbox (Developer Pro or Partial Copy) where code from different devs is integrated and tested with a broader dataset. If using a Partial Copy, populate it with critical sample data (such as accounts and contacts) to simulate real scenarios without the weight of full production data.
    • User Acceptance Testing (UAT): A Full Copy sandbox (or a well-prepared Partial Copy) for final validation. UAT is typically done by power users or key stakeholders, who need to see the system with realistic data volumes and configurations. The Full sandbox allows testers to experience the system exactly as it will behave in production.
    • Staging/Pre-Prod: In some organizations, the Full Copy sandbox serves as a staging environment for final performance tests or dry run deployments. In others, a separate โ€œStagingโ€ organization (with full data) is maintained. Given license costs, many Enterprise customers simply use one Full sandbox to serve both UAT and staging purposes, avoiding the need to buy multiple full copies.
  • Refresh Cadence and Data Management: Coordinate sandbox refreshes with testing cycles. For example, refresh the Full Copy sandbox from production just before the UAT cycle to ensure test data is up to date. For Partial Copies, update the template occasionally to include different data samples relevant to upcoming tests. Always factor in refresh limits (e.g., monthly for Full) when planning project timelines. Data masking is recommended on full or partial sandboxes containing production data, especially if they include sensitive customer informationโ€”this is a security best practice (though not directly a licensing concern, itโ€™s part of responsible sandbox management).
  • License Efficiency in Testing: Use the smallest sandbox that meets the needs of each testing stage. For instance, for a new feature test that only requires 1,000 records, a Partial Copy sandbox is more license-efficient than refreshing the Full org. Reserve the Full Copy for scenarios where lesser environments fall short, such as performance testing with the full data volume or integrated UAT involving many objects. This ensures youโ€™re not consuming the limited Full sandbox refresh for trivial reasons.
  • Collaboration and Training: Sandboxes arenโ€™t just for testing code; they are also useful for training users on new features. A Partial or Full sandbox can be used as a training environment before going live, as it provides realistic data without affecting production. However, limit training to specific users and timeframes to avoid occupying a full-data sandbox for an extended period. After training, you might refresh or scrub the sandbox data if it will be reused for UAT, to ensure test integrity. When planning training vs. testing, consider that using a Full sandbox for training may require an additional refresh before final UAT, which may or may not align with refresh availability. Plan accordingly or use a Partial Copy for training if the Full sandboxโ€™s schedule is critical.

Real-World Examples of Strategic Sandbox Use

To illustrate these principles, here are a couple of scenarios exemplifying an optimized sandbox strategy:

  • Global Retailer (Enterprise Edition): The company has ~200 Salesforce users and an aggressive development roadmap. They get one Partial Copy sandbox included with the Enterprise edition and purchase an extra Full sandbox for comprehensive testing. Their strategy:
    • Each developer works in an individual Developer sandbox (metadata-only, refreshed daily as needed).
    • Completed features are deployed to an Integration QA sandbox (a Developer Pro) where a QA team runs functional tests. This sandbox has no production data; instead, QA engineers created a small test dataset manually to verify functionality.
    • For broader testing with realistic data, the team leverages the Partial Copy sandbox. This sandbox is refreshed with a template (bringing over key objects like Accounts, Opportunities, and a sample of Orders up to the 5GB/10k record limit). Itโ€™s used for integration testing of processes that require data context (e.g. validation rules, cross-object workflows) and for training a select group of super-users on upcoming changes.
    • For UAT and performance testing, they use the Full Copy sandbox theyโ€™ve purchased. Before a major release, IT refreshes the Full sandbox (ensuring itโ€™s as close to production as possible), then a group of ~20 business users conducts UAT there. Only those UAT testers and necessary IT staff have login access to this sandbox โ€“ other production users are not activated, to maintain control. After UAT sign-off, this Full sandbox also serves as a final dress rehearsal environment: the deployment is staged here and smoke-tested with production-level data. Once everything passes, changes are deployed to Production.
      Outcome: By using Developer and Partial sandboxes for most of the dev/test cycle, the expensive Full Copy sandbox is only used when necessary. This minimizes refresh frequency and avoids additional Full sandboxes. The CIO keeps the sandbox licensing cost contained (just one Full sandbox add-on) and ensures itโ€™s fully utilized for critical testing.
  • Mid-Market Tech Firm (Professional Edition): A smaller company on Professional Edition (which has very limited included sandboxes) needs to test a new Sales Cloud implementation. They have no Full sandbox (not included in Professional) and only one Developer sandbox by default.
    • The CIO opts to use a combination of the single Developer sandbox and free Developer Edition orgs to support the project. The Salesforce admin does initial build-out and unit testing in the provided Developer sandbox. Meanwhile, two developers on the team each set up aย Developer Edition orgย to experiment with integrations and Lightning component development in parallel, since additional official sandboxes are not available.
    • As components mature, they are deployed into the lone Developer sandbox for integration testing. Because Professional Edition doesnโ€™t include Partial or Full data sandboxes, the team manually loads a small set of sample data into the Developer sandbox to simulate key use cases. This requires extra effort (scrubbing and importing data), but avoids the cost of upgrading licenses just for more sandbox capacity.
    • For UAT, the CIO makes a decision: rather than purchasing a Full Copy sandbox (which can be expensive), they conduct UAT in the production org during an off-hours pilot with a handful of test records. Given the tight budget, they trade the ideal of a dedicated Full sandbox for a controlled live pilot. (Alternatively, they could temporarily upgrade to Enterprise for a Partial sandbox, but in this scenario, they chose not to.)
      Outcome: This example highlights a constrained approach โ€“ itโ€™s not ideal, but sometimes necessary for cost reasons. The CIO managed to deliver a tested solution with minimal sandbox resources by using creative alternatives, such as Developer Editions and careful in-house testing. The lesson is that the sandbox strategy must align with both technical needs and financial reality. As the firm grows, the CIO plans to negotiate Enterprise Edition (with included sandboxes) and possibly engage a licensing advisor to optimize their Salesforce contract for better sandbox support.

CIO Action Plan

To establish a successful Salesforce development & sandbox strategy, CIOs and IT leaders should:

  1. Inventory Your Sandbox Entitlements: Document the number of sandboxes of each type your organization has, as well as your Salesforce edition and associated contracts. Ensure you are aware of the refresh limits and storage constraints for each sandbox.
  2. Align Sandbox Types with SDLC Stages:ย Define a development lifecycle and assign sandbox types accordingly โ€“ e.g., ‘Developer’ for development, ‘Partial’ for QA, and ‘Full’ for UAT. Use the smallest sandbox necessary at each stage to conserve resources.
  3. Optimize License Usage: Avoid over-provisioning sandboxes or users. Only purchase additional sandboxes (e.g., Full copies) if the testing requirements clearly demand it. Conversely, utilize free Developer Edition orgs or share sandboxes among team members when the budget is tight and the risk is low.
  4. Control Sandbox Access: Implement governance on who can access each sandbox. For each environment, activate accounts only for the testers/developers who need it. This not only protects data but also reduces the chance of configuration drift or accidental changes by unauthorized users.
  5. Refresh and Data Strategy: Plan sandbox refresh schedules in tandem with release cycles. Before major tests, refresh relevant sandboxes to mirror production. Use sandbox templates (for Partial Copy) to include necessary data, and consider data masking tools for sensitive information.
  6. Monitor and Review Costs: Treat sandbox licenses as part of your Salesforce cost structure. Monitor usage (Are all sandboxes being used effectively? Can any be eliminated or consolidated?). Ahead of renewals, review if your sandbox mix is still appropriate. For example, if a Full sandbox was rarely used, you might remove it to save cost or swap it for multiple Partial sandboxes that better support agile testing.
  7. Leverage Independent Expertise: Stay informed on Salesforce licensing changes and seek independent advice as needed. Firms like Redress Compliance can provide an unbiased review of your Salesforce license and sandbox usage, identifying opportunities to reduce cost or improve compliance. Such insight can be valuable before negotiating contracts or making edition upgrades for sandbox needs.

By following this action plan, CIOs can ensure their Salesforce environments support development and testing needs without incurring unnecessary licensing costs or management burdens. The result is a more efficient, compliant, and agile Salesforce operation.

Do you want to know more about our Salesforce Advisory Services?

Please enable JavaScript in your browser to complete this form.
Author
  • Fredrik Filipsson has 20 years of experience in Oracle license management, including nine years working at Oracle and 11 years as a consultant, assisting major global clients with complex Oracle licensing issues. Before his work in Oracle licensing, he gained valuable expertise in IBM, SAP, and Salesforce licensing through his time at IBM. In addition, Fredrik has played a leading role in AI initiatives and is a successful entrepreneur, co-founding Redress Compliance and several other companies.

    View all posts