OBLYTECH Logo
OBLYTECH Logo

Reconciling the System of Record Before Choosing an Integration Pattern

Settle the system of record for each data element before choosing how data moves. The owner of a field decides who may change it, who must be told when it changes, and how stale a copy may become. With those answers, the choice between a synchronous call, an asynchronous message and a batch load gets much easier.

Why ownership has to be settled before the flow is drawn

In many Salesforce programs the integration diagram is drawn first, and the question of which side holds the true value gets deferred to testing. That order often causes the rework that follows. A flow is a set of promises about timing and failure, and a team cannot promise timing for a field until someone has said who may change it.

A system of record is the place where a value is treated as correct when two sources disagree. It belongs to a data element, not to an application. One account record can hold a legal name mastered in billing, a shipping address mastered in logistics, and a preferred contact channel entered by the account team. An integration that treats the record as one unit breaks as soon as those values diverge.

Why per-field ownership works better than per-system ownership

Saying that the ERP owns accounts sounds decisive but often fails at the first edge case. Credit terms may belong to finance, and the parent and child hierarchy to sales operations. Write ownership at the level the integration reads and writes. A field list with one named owner per field gives a reviewer one line to challenge instead of an entire design.

What goes wrong when ownership is left implicit

Three patterns recur. Two systems update one field within minutes of each other, and the last write wins by accident. A downstream copy is not refreshed after the source changes, so reports quietly disagree. A nightly job overwrites a value a user just edited, and the user concludes the org cannot be trusted. Each usually traces back to a question nobody answered in design.

Build an ownership inventory before you pick a pattern

The inventory is a working table that the build team and the business both read. Start from business events that cross a system boundary, such as a quote being accepted or a shipment leaving the warehouse, rather than from the object model. Events show which values travel together.

  1. List each business event that crosses a system boundary, along with the systems involved.
  2. For each event, list the data elements that change and the systems that read them afterwards.
  3. Name one owner per element. If nobody can say who approves a change to a field, the field is not ready for design.
  4. Record whether the owner must notify others of changes, whether downstream systems may hold a copy, and how old that copy may become.
  5. Flag any element that two systems can legitimately edit. These rows need a written conflict rule before the build starts.

Attributes that drive the later design choices

Score each element on four attributes: how often it changes, how many systems depend on it, how quickly a reader needs the latest value, and what a wrong value costs. Plain high, medium or low ratings are enough. The scores make the reasoning visible, so a reviewer can dispute one score. For help planning this work, see Salesforce implementation.

How ownership changes the choice of synchronous, asynchronous and batch flows

The three shapes differ in who waits, who retries and who notices a failure. Ownership shows which team carries each of those costs.

Synchronous calls for answers that must be current

Use a synchronous call when the caller cannot finish without an authoritative answer, such as a credit check against the system that owns credit terms. Someone waits for the reply, so check how the call fits inside a user transaction. Review the execution limits an admin should know with the integration lead before committing.

Define a timeout, a fallback for an unreachable owner, and the message the user sees. Deciding whether the transaction stops or proceeds with a flag for later review is a business call for the owner of the risk, not for the developer writing the callout.

Asynchronous messages for changes other systems must react to

When the owner publishes a change that other systems act on, an asynchronous message fits. The producer does not wait, and failed deliveries can be retried. Consumers see changes late and sometimes out of order, so each one should tolerate duplicates, ignore a message older than the version it already holds, and rely on a version number or timestamp issued by the owner.

Batch loads where volume and reconciliation dominate

Batch suits large data that tolerates delay and needs a full comparison pass, such as reference loads, historical backfills or nightly reconciliation between a ledger and a reporting copy. Its weakness is the window between runs, when copies disagree. Name that window in the design and get the business to agree how long it may last. Recheck the choice whenever a new consumer appears, because a late consumer can tighten the timing requirement for the steps upstream of it.

Testing ownership rules before the first build sprint closes

Ownership is a claim, and claims need tests that a tester can run.

  • A change in the owning system reaches each consumer within the agreed window.
  • A change in a non-owning system is rejected, overwritten or flagged, as designed.
  • Two conflicting edits made close together produce the outcome the conflict rule describes.
  • A retried delivery does not create a duplicate record, and an older version does not replace a newer one.

Use real records from each system, including messy ones such as merged accounts or values entered before a field was added to a page. Plan the copy timing with sandbox refresh planning so testers do not work against stale data.

Roles, access and sign-off for ownership decisions

The inventory needs a decision owner for each element: a business owner for the data domain, a technical owner who can explain how the integration reads and writes the field, and an administrator who confirms what the org grants. These are often three different people. Write their names into the inventory.

Map each role to the specific fields and actions it needs. A plan built around permission set design for a small team keeps each grant tied to a named purpose. Confirm the access the org actually grants on each owned field before relying on it. Route changes to ownership-sensitive fields through the same review as integration code, because a rule the build team can edit without review can be undone quietly.

Reporting and troubleshooting when two systems disagree

Disagreement after go-live shows up as a support ticket or a report total that does not match. Build the reconciliation before launch. It compares the owner’s value with each copy on a schedule and lists the differences.

  1. Confirm that the key identifying a record is stored on both sides.
  2. Compare owned fields alone, so expected differences elsewhere do not flood the output.
  3. Record the last successful sync time for each record, so a difference can be judged against the agreed window.
  4. Route each category of difference to the owner named in the inventory, not to a general queue.

When a mismatch appears, ask which system wrote the value and when. Timing differences and fields written by an unlisted process are common causes. If the element is missing from the inventory, the cause is usually a gap in the design. Add the element, assign an owner and fix the flow. Patching the value by hand rarely holds, because the next sync rewrites it.

A validation rule that rejects an integration write can look like a sync fault. When a write fails for no obvious reason, review validation rules that do not break integrations before changing the mapping.

Keeping the ownership inventory current

Ownership drifts when a field is added to a page, a read-only value starts getting edited, or a source system adds a feature that writes an existing field. Put the inventory under change control and review it whenever a new integration, consumer or field is requested. Keep it with the integration design, dated and signed, so that answering why a field behaves a certain way does not require a meeting.

Questions about choosing a flow once ownership is set

Can one object use more than one integration pattern?

Yes. The pattern is chosen per element and per consumer, so one object can receive a synchronous lookup for one field and a batch refresh for another. Record each pair in the inventory.

Must the owning system push its changes?

Not necessarily. Some owners publish changes, while others expose an interface that consumers call. The deciding question is who must learn of a change inside the agreed window, and whether the owner can reliably send that notice.

How many owners can one field have?

One for conflict resolution. Many systems may read a field, but the design should name a single authority when two systems can write. If the business truly needs two writers, record which value wins and under what condition, and mark the field as high risk.