GTM Systems Academy
Write an account-owner data contract
Keep Salesforce account transfers and inbound routing in sync, even when updates arrive late or a rep leaves.
- SalesforceSales Ops moves the account from Sam to Lee, then to Ari
- RouterAn old notification triggers a fresh lookup. Salesforce still says Ari.
- Inbound triageHold new requests when the owner is inactive or cannot be verified
During a territory change, a Salesforce account moves from Sam to Lee at 10:00. The router still shows Sam when a demo request arrives at 10:01. At 10:02, Sales Ops corrects the transfer and assigns the account to Ari. A delayed update arrives a minute later with Lee’s ID. Which owner should get the next request, and what should the router do when it can’t look the account up?
This example covers new requests for matched accounts. It leaves decisions about existing opportunities and accounts that fail matching with the teams already responsible for them.
Agree on the routing decision
| Decision | Rule | Who owns it |
|---|---|---|
| Match key | Use the Salesforce Account ID after matching. Where a tool uses its own ID, keep a map to Salesforce. Ambiguous matches go to triage. | RevOps owns the match rule and ID map. |
| Who can change an owner | Salesforce Account.OwnerId supplies the account owner. Approved transfer processes update it. The router reads it and stores a copy if needed. | Sales Ops approves transfers. The CRM admin owns the write path. |
| Who gets new requests | Route to the current owner if the user is active and has a valid routing destination. Send unreadable, ambiguous, or unmapped records to the inbound triage queue. | Inbound Sales owns the queue. RevOps fixes routing and mapping exceptions. |
| What happens to existing work | Apply the transfer policy to open opportunities, contacts, and account-team access. Keep any already assigned demo request with its current rep unless a manager approves reassignment. | The sales manager owns reassignment. The CRM admin tests the transfer options. |
Test the Salesforce transfer method your admins will actually use. The Change Owner dialog can transfer related records under its selected options, and child records can have different owners. Check open opportunities and account-team access in the test run so the downstream router doesn’t become responsible for repairing a CRM transfer.
Use a live lookup where the router supports it
At assignment time, look up the matched Account ID in Salesforce and resolve OwnerId to an active rep in the routing tool. If the account or user can’t be read before the routing timeout, create a triage item with the request ID, Account ID if known, and failure reason. The queue owner can assign it after the lookup is repaired.
For a router that needs a local copy, keep the routing rule and add a sync. If Salesforce automation owns the notification, use the existing record-triggered automation entry point and scope it to changes in OwnerId. If external consumers need a change stream, enable Account Change Data Capture and subscribe through Pub/Sub API. On update events, decode changedFields and look for OwnerId. Process every ID in recordIds. Handle account creation, deletion, and restoration separately if they affect routing.
Treat each change event as a request to refresh the Salesforce account. Serialize refreshes by Account ID and read the current account before writing the routing copy. If a retry reads an owner that’s already stored, leave the copy alone. Keep a checkpoint only after the refresh is complete or the job is durably queued. The replay ID tells Salesforce where to resume delivery. It’s opaque and can’t tell your router which owner is current.
Follow the request through a delayed update
| When | What changed | Routing decision |
|---|---|---|
| 10:01 | A demo request arrives. The routing copy says Sam and a live CRM read returns Lee. | Route the request to Lee. If the live read times out, queue the request for triage. |
| 10:02 | Sales Ops updates the account to Ari. The sync reads Salesforce and stores Ari. | Use Ari for subsequent requests. The request Lee already received stays assigned. |
| 10:03 | The earlier notification for Lee reaches the worker after Ari’s update. | The worker refreshes the account and reads Ari again. It leaves the routing copy as-is. |
| 10:05 | Ari is deactivated. The account still points to Ari. | Send new requests to triage. Ask Sales Ops for a replacement owner and transfer the account in Salesforce. |
Owner eligibility can change without an Account event. Check whether the rep is active when assigning a request or refresh the eligibility map separately. For a cached router, track how long it takes a Salesforce change to reach the routing copy and how many requests went to triage because the copy couldn’t be trusted. Set the freshness limit against your inbound response target. For example, a team with a five-minute first-response target could send requests to triage when the last successful owner check was over two minutes ago and a fresh lookup fails.
Decide when cached routing can resume
At 09:00 on Monday the subscriber reconnects after a five-day outage. Its checkpoint has expired. A manager says the account still belongs to Lee because that is what the routing copy shows. The on-call admin can read Salesforce again, but has yet to reconcile the accounts missed during the outage.
Can the team switch cached routing back on?
Keep using live lookups where they succeed. Send requests that require an unverified copy to triage. A successful reconnect establishes that the subscriber can receive new events. It leaves the missing transfers unresolved.
Start durably collecting new changes before taking a fresh account snapshot. Compare the router’s account IDs and owners with the agreed Salesforce scope, including records that disappeared, and refresh user eligibility. Drain queued changes by rereading each affected account. Use the same per-account ordering for both paths so an older snapshot row cannot overwrite a newer refresh.
Test one changed owner, one inactive owner and one request already assigned during the outage. Check that each triaged request has a disposition before draining the queue. Log the last successful verification separately from the last ownership change. A three-year-old assignment may have been verified a minute ago.
Prove the handoff and rehearse recovery
- Transfer one test account using the same method planned for launch. Submit a demo request and record the Salesforce owner, the account ID used to match, and the router’s destination. Confirm that the protected open opportunity and its intended team access survived the transfer.
- Replay the delayed Lee update after Ari’s change and then send it twice. Confirm that the final routing owner stays Ari. Deactivate Ari and verify that a new request lands in triage with a reason and a named owner.
- Disconnect the subscriber and resume from its last processed replay ID while the events are still available. Salesforce guarantees 72 hours of retention. If replay has expired, the stream resets, or an event reports a gap, reconcile the affected scope from Salesforce before switching requests back to cached routing. Use live lookups or triage while the copy is under repair.
For the first transfer batch, reconcile Salesforce owner IDs against the router’s IDs before and after cutover. Keep the request IDs for any assignments made during a mismatch so managers can review those requests directly.
Related guides
Sales Ops transfers an account from Sam to Lee, then from Lee to Ari. A late event arrives from the first transfer. Who should remain owner?
Check your answer
Ari. Look up the account by Salesforce ID and read its current owner. Replaying the earlier event must preserve the later transfer.