Short answer
Release management on Salesforce is harder than on ordinary software because the org is both the codebase and the configuration, and admins change it through a browser. This guide covers environment strategy, branching, how to handle declarative change alongside code, what the tools actually solve, and the practices worth adopting first.
Why Salesforce Release Management Is Genuinely Harder
Teams arriving from conventional software delivery often assume Salesforce release management is the same problem with different tooling. It is not, and understanding why saves a great deal of frustration.
In conventional development, the source code is the truth and the running system is built from it. On Salesforce, the org is a live, editable system where an administrator can change a validation rule in a browser at four in the afternoon. There may be no commit, no reviewer, and no record beyond the setup audit trail.
That creates problems that version control alone does not solve. Your repository can be perfectly maintained and still not reflect the org. Two people can change the same page layout with no merge conflict to warn them. And a sandbox refresh can quietly discard work that was never committed anywhere.
| Challenge | Why it happens on Salesforce | What it means for your process |
|---|---|---|
| Config drift | Admins change production directly through setup | You need detection, not just prevention |
| Metadata granularity | Some metadata deploys as whole files, not individual elements | Two people editing one object can overwrite each other |
| Sandbox freshness | Sandboxes diverge from production the moment they are created | Refresh cadence is a release management decision |
| Data dependency | Some config depends on records, not just metadata | Deployments may need data as well as metadata |
| Mixed audience | Admins and developers change the same org by different means | A process only developers can follow will be bypassed |
| Destructive change | Deleting metadata requires a separate, explicit step | Removals are routinely forgotten and accumulate |
Environment Strategy Comes First
Before branching models or tooling, decide what environments you have, what each is for, and how changes move between them. Most release problems trace back to an environment strategy that was never designed — sandboxes were created as needed and acquired purposes by accident.
A workable minimum for a team of any size is a development environment per developer or per work item, a shared integration environment where changes come together, a user acceptance environment that resembles production, and production itself. Larger programmes add a staging or hotfix environment.
| Environment | Purpose | Refresh cadence | Who may change it directly |
|---|---|---|---|
| Developer sandbox or scratch org | Individual work in isolation | Per work item | The owner |
| Integration | Where concurrent changes meet before testing | Monthly | Nobody — deploy only |
| UAT or QA | Business testing against realistic data | Each release cycle | Nobody — deploy only |
| Staging | Final rehearsal, production-like config and volume | Before each release | Nobody — deploy only |
| Production | The live org | n/a | Emergency only, with a documented back-port |
| Hotfix | Urgent fixes branched from production state | As needed | Deploy only |
The fourth column is the one that matters most and the one most often left implicit. If anyone can change UAT directly, your test results stop meaning anything, because you are no longer testing what you will deploy.
The rule that prevents most incidents
Nothing reaches production except through the pipeline. Where an emergency change is genuinely unavoidable, it must be back-ported to source control the same day, by a named person, before anything else deploys. Orgs without this rule accumulate undocumented production changes that eventually make deployments unpredictable.
Version Control and a Branching Model That Works
Salesforce metadata belongs in Git, including declarative configuration. That is now uncontroversial, but the branching model deserves thought, because models borrowed from conventional development can fit Salesforce poorly.
Long-lived feature branches are riskier on Salesforce than elsewhere, because metadata merges are crude. A page layout or a profile that two branches have both edited will merge badly, and the conflict may not be obvious. Shorter branches with frequent integration reduce the exposure.
01
Branch per work item
A branch maps to one user story or ticket, lives days rather than weeks, and merges to the integration branch when complete.
02
Integration branch
Represents everything intended for the next release. Deploys automatically to the integration environment on merge.
03
Release branch
Cut from integration when the release is scoped. Only fixes merge in after that point.
04
Main reflects production
The main branch should always match what is live, so a hotfix can be branched from a known state.
05
Back-merge after release
Merge the release branch back to integration so fixes are not lost in the next cycle.
Two practical points. First, exclude the metadata you should not deploy — org-specific settings, named credentials holding real endpoints, and profiles if you are managing access through permission sets instead. Second, manage profiles with care; full profile metadata is large, differs per environment, and causes more deployment failures than any other single component. Most teams move access to permission sets and keep profile deployment minimal.
Handling Admin Changes Without Blocking Admins
The hardest part of Salesforce release management is not technical. It is that a significant share of changes are made by administrators who do not work in branches, and a process that requires them to is a process that will be worked around.
There are three broad approaches, and the right one depends on the size and maturity of the team.
| Approach | How it works | Suits |
|---|---|---|
| Admins work in a sandbox, specialist commits | Admins build in a shared dev sandbox; a release engineer retrieves and commits the metadata | Small teams; low ceremony; depends on one person |
| Admins use a DevOps tool UI | A commercial tool lets admins select changes and commit them without Git knowledge | Mid-sized teams; the most common successful pattern |
| Admins learn the Git workflow | Admins use the CLI or a desktop Git client directly | Smaller mature teams with appetite; rarely scales across a large admin group |
Whichever you choose, pair it with drift detection. Compare production metadata to your source control on a schedule — nightly is typical — and report differences. This finds the emergency change nobody back-ported, and it finds it in days rather than when the next deployment mysteriously fails.
Treat drift reports as information rather than as an accusation. The point is to recover the change into source control, not to establish who made it.
Testing: Beyond the Coverage Requirement
Salesforce requires 75 per cent Apex code coverage to deploy to production. That requirement is widely treated as the testing strategy, which it is not — it is a deployment gate that says nothing about whether your configuration works.
Most of what breaks in a Salesforce org is declarative: a validation rule that blocks a legitimate record, a flow that fails on a null, a sharing rule change that hides data from a team, a required field added to a page layout that an integration does not populate. None of that is covered by Apex tests.
- Write Apex tests that assert behaviour. A test that runs code without checking the result produces coverage and no confidence. Coverage is a by-product of testing, not its purpose.
- Automate a regression suite for critical user journeys. Quote creation, case escalation, order submission — whatever your business cannot do without.
- Test integrations against a stub you control. Depending on a partner sandbox being available makes your pipeline as reliable as theirs.
- Include a permissions check. Deploy and then verify that each key persona can still do what they could before.
- Test with production-like data volume. Governor limits and query performance behave differently against ten records and ten million.
- Run destructive change tests. Removals are the deployments most likely to surprise you.
The regression suite is the highest-value investment of these. It takes real effort to build, but it converts releases from an event requiring a weekend into a routine operation, which is the entire point of the exercise.
What the Tools Actually Solve
The Salesforce DevOps tool market includes Salesforce's own DevOps Center, Copado, Gearset, Flosum, AutoRABIT and others. They differ in detail, but their value proposition is broadly the same, and it is worth being clear about what they do and do not fix.
| What tools do well | What they do not fix |
|---|---|
| Let admins commit changes without learning Git | A team that has not agreed an environment strategy |
| Compare orgs and generate deployment packages | Metadata that merges badly because two people edited one object |
| Detect drift between production and source control | The absence of anyone reviewing the drift report |
| Orchestrate pipelines with approval gates | Approvals nobody takes seriously |
| Handle destructive changes more gracefully | Deciding what should be deleted |
| Provide an audit trail of deployments | A culture of changing production directly |
The honest summary is that tooling removes friction from a process you already have. Buying one before agreeing your environment strategy, branching model, and change policy tends to produce an expensive way of doing the same ad-hoc thing.
For teams starting out, Salesforce DevOps Center is free and covers the basic pipeline. Commercial tools earn their cost at larger scale, with multiple concurrent streams, complex approval requirements, or a large admin population who need a supported path to commit changes.
Where to Start If You Have Nothing
Plenty of organisations run substantial Salesforce orgs with change sets and good intentions. Moving to a managed release process is worth doing, and it works best incrementally rather than as a transformation programme.
01
Get the metadata into Git
Even if nothing else changes, having a baseline you can diff against is immediately useful.
02
Turn on drift detection
A nightly comparison between production and the repository. Review it weekly at first; the findings will shape everything else.
03
Define the environments
What each is for and who may change it directly. Write it down and circulate it.
04
Automate one deployment path
Integration to UAT is a good first choice: low risk, frequent enough to be worth automating.
05
Add a release calendar
A predictable cadence reduces the pressure for emergency changes more than any technical control.
06
Build the regression suite
Start with the three journeys the business cannot operate without, and grow from there.
Expect this to take a couple of quarters alongside normal delivery. The measurable outcomes to watch are deployment failure rate, time from merge to production, and the number of production changes made outside the pipeline. If those three improve, the process is working, whatever tooling you chose.
Frequently Asked Questions
Want Releases That Stop Breaking Things?
RASPSYS can help you put a release process around an org that has grown organically — version control, environment strategy, a deployment pipeline, and a way of handling admin changes that does not require admins to become developers.