Skip to content

Insights · Admin & Best Practices

Salesforce DevOps Basics: Sandboxes, Source Control and Safe Releases

How to move from risky changes in production to a simple, reliable Salesforce release process with sandboxes, source control and automated checks.

Illustration for Salesforce DevOps Basics: Sandboxes, Source Control and Safe Releases

Key takeaways

  • Build and test changes in sandboxes, never directly in production.
  • Source control gives you history, review and rollback for metadata and code.
  • DevOps Center offers a guided, point-and-click pipeline; the Salesforce CLI with a CI tool offers full flexibility.
  • Start simple: one development sandbox, one testing sandbox, source control and a release checklist.

Many Salesforce orgs still change production directly: a new field here, an edited flow there. It works until a change breaks something important and nobody knows what changed or how to undo it. A basic DevOps process prevents that, and it does not have to be complicated.

Sandbox types

SandboxWhat it containsTypical use
DeveloperMetadata only, small storageIndividual development and configuration
Developer ProMetadata only, more storageDevelopment needing more test data
Partial CopyMetadata plus a sample of dataTesting with realistic data
FullMetadata plus a full copy of dataPerformance testing, staging and user acceptance

Which sandboxes you get, and how many, depends on your edition and licenses. Scratch orgs, short-lived orgs created from source, are another option for development teams.

Why source control matters

  • History: see what changed, when and by whom.
  • Review: changes can be reviewed before they reach production.
  • Rollback: return to a known good version if something breaks.
  • Collaboration: several people can work without overwriting each other.

Release tools

ToolStrengthsConsider
Change setsBuilt in, no extra toolsNo version history, manual and error-prone at scale
DevOps CenterSalesforce’s guided pipeline with source control integration, friendly for adminsBest for teams adopting a structured but simple process
Salesforce CLI with CI/CDFull automation, testing and flexibilityRequires developer skills to set up and maintain
Third-party DevOps platformsRich features, comparisons and rollbackAdditional licensing

A simple, reliable process

  1. Each change starts as a ticket with a clear description and acceptance criteria.
  2. Build in a development sandbox and commit to source control.
  3. Deploy to a testing sandbox; users test against the acceptance criteria.
  4. Run automated checks: Apex tests, validation deployment and code analysis where available.
  5. Deploy to production in a planned window, with release notes.
  6. Verify in production and close the ticket.

Testing essentials

  • Apex code needs at least 75% test coverage to deploy to production, but meaningful assertions matter more than coverage.
  • Test flows with realistic bulk data, not single records.
  • Validate deployments before the release window to catch errors early.
  • Refresh testing sandboxes regularly so they reflect production.

Common mistakes

  • Sandboxes that drift far from production because they are never refreshed.
  • Hot fixes in production that are never added to source control, so the next deployment overwrites them.
  • Deploying large bundles of unrelated changes at once.
  • No rollback plan for high-risk releases.

We help teams set up practical release processes as part of our administration and support services.

A release checklist

BeforeDuringAfter
Changes tested and approved in a sandboxDeploy in the agreed windowSmoke-test key processes
Validation deployment succeededRun Apex testsConfirm automation and integrations behave
Release notes writtenApply manual post-deployment stepsCommunicate changes to users
Rollback plan for risky changesMonitor errorsMerge hot fixes back into source control

Growing the process over time

Start with the basics and add automation as the team grows: automated validation on every change, code quality scanning, automated tests for key flows, and scheduled sandbox refreshes. The goal is not tooling for its own sake but fewer surprises in production and faster, safer delivery.

Frequently asked questions

Do admins need source control?

Admin changes are metadata too. Tools like DevOps Center make source control accessible to admins without command-line work.

What is the minimum setup for a small team?

A development sandbox, a testing sandbox or the same sandbox refreshed between releases, source control and a written release checklist.

Can we deploy flows with change sets?

Yes, but change sets lack version history and become hard to manage as change volume grows.

Saad Ahmad

Founder & Salesforce Application Architect, CodersRegion

Saad founded CodersRegion and has spent more than 13 years designing, building and rescuing Salesforce and custom software platforms for companies in the US, UK, Canada and Australia. Saad holds eight Salesforce certifications, including Application Architect.

Keep reading

More from Insights

Free discovery call

Have a Salesforce project in mind?

Talk to a certified Salesforce consultant about your goals. You get honest advice and a clear plan, with no obligation.