OBLYTECH Logo
OBLYTECH Logo

Coordinating Parallel Releases Across Two Salesforce Orgs

Coordinate two Salesforce orgs by agreeing on one release order before any change ships. Name the org that goes first for each change, usually the one that owns the data. Deploy there, check the result, then move the same change to the second org. Keep the sequence in writing, and give one person the final call on timing.

Why two orgs need one release order

Two orgs drift apart when each team ships on its own schedule. A field added in one org, a value changed in the other, and a report that reads both can end up disagreeing about what a record means. The trouble is often not the change itself. It is the gap between the moment one org takes it and the moment the other org learns about it.

A shared release order closes that gap. It does not need a large process. It needs a written sequence, a rule for ownership, and a short list of checks that both teams accept before a change moves. The sections below cover each piece and the places where teams usually get stuck.

Decide which org goes first

Each change falls into one of two groups. Changes that stay inside one org can follow that org’s normal schedule. Changes that touch data both orgs read or write need an agreed order, because the second org receives the first org’s result as its input.

Changes that touch shared data

Start from the record. Ask which org creates it, which org edits it, and which org reports on it. The org that owns the record normally goes first, because the other org needs the final shape of the data before it can adapt. If ownership is split, assign the record to one org for this change and write that down, even if the split is permanent.

Ownership decisions get harder when an integration writes to a record that a person edits in the other org. In that case, decide which side wins on conflicting values before the change window, not during it. A written rule takes a few minutes. Settling the same question during a release usually takes far longer.

Changes that stay inside one org

A change that adds a label, adjusts a page layout, or updates an internal automation in one org can usually go out on that org’s own cycle. Record it in the shared log anyway. The other team then knows the change exists and can flag it if it affects their work later.

Write each decision as one sentence that names the object, the owning org, and the reason. A sentence like that takes a minute to write and gives the team a quick answer when a conflict comes up later.

Build the release sequence step by step

The sequence below works for a change that must reach both orgs. Run each step in order, and do not start the next one until the previous step has a written result.

  1. List the change and tag each object, field, and integration it touches.
  2. Mark the owning org for each shared element, and record the decision with the date.
  3. Confirm that the test copy of the second org matches the state you plan to test against. Teams often plan this step around the refresh schedule, so read sandbox refresh planning before you set the dates.
  4. Deploy the change to the first org, run its checks, and record the result.
  5. Leave a deliberate gap, then deploy the same change to the second org after the first org’s result has passed its checks.
  6. Run the second org’s checks, and record the outcome against the same change entry.

Keep the sequence to two stops. In practice, a third stop usually means the record and the test copy fall out of step, so split the work into two smaller changes instead of adding a third org to one change.

Checks before the second org accepts a change

The second org needs its own checks. It should not rely on a replay of the first org’s results, because the two orgs may hold different records, users, and automation. Before it accepts the change, confirm four things.

  • The first org’s result matches what the change record says it should do.
  • Each field, record type, and picklist value the second org depends on still exists under the name it expects.
  • The people who will run the change in the second org have the access they need. Review the access model with the approach in permission set design for small teams, so access is granted by the same logic in both orgs.
  • Each integration that reads or writes the changed data has been tested against the new state.

Validation changes deserve extra care. A rule that is safe in the first org can reject records that a sync from the second org sends in. That failure often appears later as a queue of errors rather than during testing. Plan the change with validation rules without breaking integrations in mind, and test with a sample of records the second org actually sends.

Automation is the other common surprise. A flow or trigger that runs cleanly in one org can behave differently in the other, because the second org holds different data volumes and its own automations act on the same objects. Review the change against governor limits for admins using the second org’s data, and confirm the result with a realistic batch rather than a single test record.

Where two-org releases usually go wrong

Many failures in this process come from a small set of habits. Each one looks harmless at planning time and costs time when the second org finds the problem.

  • Two deployments at once. Changing both orgs before either has been checked removes the clean point where a fault in the data shape can be traced.
  • A fix made in the wrong org. Patching the second org by hand to match the first leaves the change record describing a state that no longer exists.
  • Two change logs. Separate logs show the same change at different stages with no link between them, so nobody can answer whether the second org has the change yet.
  • Unwritten ownership. When the owner of a shared object is assumed rather than recorded, each team assumes the other has handled the conflict.

Each of these comes down to the same thing: the sequence lives in someone’s head rather than in the record. Write it down before the window opens.

Handle a change that must land on both orgs the same day

Some changes cannot wait. A compliance fix or a shared field rename may need both orgs live on the same day. In that case, keep the order but shorten the gap. The first org goes out in the morning, its checks run in the afternoon, and the second org receives the change once the first org’s result has passed.

Set a rollback owner for each org before the window opens. Write down who decides to roll back if the second org’s checks fail after the first org has already changed. That decision belongs to a named person with the authority to make it, not to whoever is on call that evening.

For help planning this work, see Salesforce implementation.

Questions about running releases across two orgs

How long should the gap between the two deployments be?

The right interval depends on the change, not the calendar. Set the gap from the time the first org’s checks need, plus a margin for a result that comes back unclear. A simple change with clear checks needs far less time than one that touches integrations. Write the expected gap into the change record so the second org’s team knows when the change will arrive.

What happens when the second org rejects a change?

Stop the sequence at that org. Do not patch the first org to make the second org accept the change, because that creates two different targets. Record the rejection, decide whether the change needs revising or just a corrected setup in the second org, and then run the full sequence again from the first org.

How often should the two orgs be compared?

Compare them at the start of each release cycle and again after any urgent change. A short comparison of the objects, fields, and integrations listed in the change log is often enough to catch drift early. A fuller comparison matters more when a team adds a new integration or runs a large data migration, because those are the points where the orgs tend to diverge without anyone noticing.

Do the two orgs need separate change logs?

A single shared log usually works better, as long as each entry names the org that acts on it and the date it reached each org. Separate logs tend to hold the same change at different stages with no connection between them. A shared log lets anyone answer a question that causes confusion in many teams: has the second org received this yet.

Can a change skip the second org if it affects just one org’s users?

It can, but confirm the scope before you rely on it. Fields, reports, and integrations that read the same objects often depend on each other in ways the change author did not expect. Check the scope with the people who own the integrations, then log the decision in the shared record with your reasons. If the scope changes later, the record tells you when the second org needs to be brought in.