OBLYTECH Logo
OBLYTECH Logo

Deployment Validation Steps Before a Production Release

Salesforce deployment validation before a release is a short sequence of checks. It confirms that the package matches the tested build, that the target holds what the package needs, and that the release owner has a written way back. Record each result, and make the go decision once each stage passes or its risk is written down.

What the validation run has to prove

The validation run exists to answer four questions before the deployment starts. Does the package contain exactly what was tested? Does the target hold each object, field, and integration the package depends on? Does the change behave with production-shaped data? If the release fails, can the team return to the last good state without guessing?

Step 1: Match the test run to the release scope

Start from the component list in the release package, not from the ticket list. Tickets describe intent, while the component list describes what will change in the target. Pull the test run that was executed against the sandbox and compare the two lists side by side. A component that appears in the package but in no test run is a gap, even when the ticket it came from was marked as tested.

Check dates as well as names. A test run from before a late fix proves the earlier version works, not the one being released. Re-run the affected tests, or write down why the earlier result still applies to code that has not changed. Platform release notes count too. If the notes for the version your org runs affect the scope, review them before you accept the test results. The process is covered in release notes review before sandbox testing.

Questions to settle in this step

  • Which build was tested, and is it the same build in the release package?
  • Does each changed component have at least one test case that exercised it?
  • Were any tests skipped, and who approved each skip?

Step 2: Review the component diff against production

Compare the release package with what currently runs in production. The diff shows additions, modifications, and removals. Give removals the closest read. A deleted field, a retired rule, or a removed step in an automation can break a process that the release notes do not mention. The people who depend on that process often learn about the change from a complaint.

Ask a second person who did not build the change to review the diff. The builder knows what was intended. A reviewer is more likely to notice what was included by accident, such as a debugging change, a setting copied from a sandbox, or a field exposed to users who should not see it.

Trace shared elements to their consumers. A change to a shared field, a permission setting, or a common automation can affect screens, reports, and integrations that are not in the package at all. If the change adds or alters trigger logic, use the checklist in bulk-safe trigger checklist as the review standard for that component.

Step 3: Check dependencies and production-shaped data

A package can be complete and still fail in production because something it depends on is missing or configured differently. Confirm that the target has the objects, fields, record types, and integration endpoints the release expects. Confirm that each required configuration value is set in the target itself, not just in the sandbox where the change was tested.

Data is the second source of surprises. A required field or validation rule that passes in a sandbox with a handful of test records can reject real records on the first day. Pick a sample of current production records that the change will touch, then run them through the new logic in a copy that holds realistic data. Record the sample size, how the sample was chosen, and the result. If the sandbox you test in does not hold current data, plan the refresh before the release window. The planning steps are covered in sandbox refresh planning.

Dependency checks

  1. List each external system the release calls or receives data from.
  2. Confirm that the credentials and endpoints for each system are valid in the target.
  3. Confirm that the owner of each integration has agreed to the release window.
  4. Estimate the record volume each integration sends on a normal day, and confirm the new logic handles that volume in the rehearsal.

Step 4: Rehearse the release and run a smoke pass

Rehearse the release in an environment that matches the target as closely as your process allows. If your deployment tooling can validate a package against the target without committing it, run that validation and record the result. A rehearsal that fails in a changed path stops the release until the cause is known and the fix has been tested again.

Once the rehearsal deploys cleanly, run a short smoke pass. Choose the few paths the business cannot do without: creating and closing the core record, the approval path, the integration handoff, and the reports that leadership reads. Run each path as a standard user as well as an administrator. A path that works for an administrator can fail for a user with narrower access, and the standard user is the one who will call the help desk on the first morning.

Limits can also show up at production volume. Changes that add automation or extra processing per record may run fine on a few test records and slow down under real load. Review the execution limits covered in governor limits for admins, then compare them with the volume from your data sample before you sign off.

Step 5: Write the rollback note before the go decision

The rollback note answers one question: what happens if the release goes wrong in the first hours or days? Write it before the release window opens, not during it. A workable note names the failure that starts a rollback, the person who makes that call, the steps to return to the previous state, and the data that needs checking afterward.

Be exact about what can and cannot be reversed. Removed or changed components only come back if the earlier version of each one is still on hand, so keep the previous package in the release record and redeploy it. Records that the new logic created or modified are a separate problem. List those changes with the cleanup query or manual fix for each one, and name the person who runs it.

Name a decision owner and a backup for the rollback call. The owner needs the authority to stop the window and reverse the change without waiting for a wider meeting. Confirm both names with the release owner before the window opens, and confirm how each person can be reached during the window.

Rollback note contents

  • Trigger: the specific failure that starts the rollback decision, such as a broken core path in the smoke pass.
  • Decision owner and backup, with the reach-out arrangements for the release window.
  • Restore steps: the previous package version and the order in which components return.
  • Data cleanup: each affected record set, the fix for it, and the person who runs the fix.
  • Communication: who informs users, support, and integration owners, and in what order.

The go or no-go record

The sign-off is the record that proves the checks ran. It should list the build version, the environment where each check ran, the result, any accepted risk, and the names of the people who approved the go decision. Store it where the release owner and the next person on the team can find it without asking.

Write each accepted risk on its own line. A line such as “one integration test skipped because the test account was unavailable, accepted by the release owner for this window” is far more valuable later than a general statement that testing was complete. When a risk is accepted, add a follow-up date and the name of the person who will close it.

For help planning this work, see Salesforce implementation.

Questions about the validation run

Who should sign off a Salesforce release?

Name one release owner for the go decision and, if your team has one, a separate technical reviewer who has read the diff. The release owner should not be the sole person who checked the components. Put both names in the sign-off record so the review trail is easy to follow later.

How much time should the validation run take?

Plan the time from the size of the diff and the number of paths that touch changed components, not from the calendar date of the release. A release that changes shared automation needs room for the rehearsal, the data sample, and a second round of checks if the rehearsal fails. Build that time into the release plan before the window is booked.

How many test cases should cover one changed component?

No fixed count makes a component safe. Aim for one case for the normal path, one for each condition that changes the outcome, and one for each edge case the reviewer raised. Check that the cases use data shaped like the production sample, because a case built on tidy test records can pass while the real data fails.

Does passing sandbox testing mean the release is ready?

Not by itself. Sandbox testing shows that the change works in one copy of the org under the conditions of that copy. The rehearsal, the data sample, and the dependency checks cover the differences between that copy and production, which is why the go decision needs all of them.

Can a small fix skip the validation run?

A small fix still changes the build, so the package still needs to match what was tested. Run a shorter version of the process: the scope match, the diff read, and the rollback note. Those three steps take little time, and they still give the release owner a record to sign.