OBLYTECH Logo
OBLYTECH Logo

Canonical Data Model for Salesforce Integrations

A canonical data model gives each integration one agreed shape for core records such as accounts, orders and cases. Each connected system maps once to that shape, so adding a system means writing one mapping instead of one per existing system. This page covers entities, fields, mappings, governance and rollout.

Why one shared shape beats point-to-point mappings

Many Salesforce integration programs begin with one system and one connection. The second connection gets built to match the first, the third copies the second, and after a few years each pair of systems carries its own idea of what an account is. Changing one field then means finding each mapping that touches it.

A canonical model reverses that arrangement. Each system maps to one agreed representation, and integrations move data through that representation rather than through each other. The cost of a new connection then grows with the number of systems instead of the number of pairs, which is a much gentler curve.

The model also gives the business one place to settle the meaning of its records. Questions such as whether a customer is an account or a contact get answered once, in writing, instead of inside a dozen integration scripts that nobody reads after launch.

Choosing which entities belong in the model

Start with the records that more than one system must agree on. In many Salesforce estates that list is short: accounts, contacts, orders, invoices, cases and products. A field that a single team uses, such as a score kept for campaign tooling, usually stays in its home system and does not enter the shared model.

A workable test is to ask, for each candidate entity, which systems create it, which systems read it, and who answers for it when it is wrong. If one system creates and owns an entity while others read it, the model can stay thin. If two systems both create it, the model needs an explicit rule for which record wins, written down before any mapping is built.

Keep the entity list short at the start. Each entity added raises the cost of later changes, so add one when a live integration needs it rather than because it might be needed someday.

Writing a field-level definition for each entity

A name in a list is not a definition. For each entity, write one sentence that says what a single record represents, then list the fields with four attributes: the canonical name, the data type, whether the field is required, and the rule for allowed values. Keep the wording plain enough that an analyst outside the integration team can read it.

Pay close attention to identifiers. Each entity needs a stable key that outlives any single system, and the model should state which system’s identifier is authoritative and how cross-references are stored. Teams often skip this step, then discover that a case created in a service tool cannot be traced back to the account it belongs to.

Write value lists the way they will be used, not the way one system happens to store them today. If the source has seven status labels and the target has four, the model needs a mapping table with a named owner, and that table should show what happens to each label that does not fit cleanly.

Handling status and picklist values

Status fields often cause more rework than other parts of a canonical model. Keep the canonical value set small, give each value a one-line meaning, and record the mapping from each source value to it. When a source value has no clean equivalent, prefer a documented fallback over a silent guess. Log how often the fallback fires, so the team can see whether the model needs another value or whether the source system is sending data it should not.

Mapping each source system to the model

Once entities and fields are defined, map each source system to the model in one direction at a time. Inbound mappings bring data into the shared shape, and outbound mappings convert it back into what each target expects. Build and review the two directions separately, because they tend to fail for different reasons.

Work through the same sequence for each system. First, list the fields it provides and the fields it consumes. Second, write the transformation rule for each field, including defaults and the action to take when a required value is missing. Third, pick five to ten real records that cover awkward cases, such as accounts without an owner, orders with partial lines or cases reopened after closure, and trace each one by hand.

Keep transformation logic in one layer rather than repeating it inside each integration. When a rule changes, one place needs an update and one test suite needs to pass. Teams that skip this layer usually find the same rule written three different ways across three tools.

Governing changes to the model

A canonical model tends to decay quickly when nobody owns it. Assign a named owner to each entity, usually someone close to the business process rather than a developer. Set a simple change path: a proposal describes the change, lists the integrations it affects, and gets approved by those integrations’ owners before anyone edits the shared definition.

Version the model. Record each change with its date, the reason and the list of mappings it touched. When a downstream team asks why a field changed meaning, the answer should be a few clicks away rather than a memory of a meeting.

Separate additive changes from breaking ones. Adding an optional field is usually safe for existing consumers. Renaming a field, changing its type or narrowing its allowed values can break them, so those changes need a migration window in which the old and new forms both work.

Rolling the model out without breaking live integrations

Many teams cannot switch all integrations to the model in a single release. Run the model alongside the existing mappings first. Send a copy of the traffic through the new layer, compare its output with what the current integration produces, and investigate each difference before cutting over.

Agree on comparison rules before the test starts. Decide which fields must match exactly, which may differ in format alone, and which differences are expected because the model changes meaning on purpose. Without these rules, the comparison produces a long list of differences that nobody has time to read.

Cut over one integration at a time, starting with the one that has the lowest volume and the clearest owner. Keep the old mapping available for a fixed period after cutover, so the team can roll back without rebuilding anything. Once the cutover is stable, retire the old mapping in a separate change so the rollback path stays open for as long as it is needed.

Validation rules deserve a review during the same window. A stricter rule on one side can reject records that the model would accept, so compare each rule against the canonical definition before cutover. For the configuration side of this comparison, see validation rules that do not break integrations.

Decide the first bulk load before any data moves. The tool chosen for a load can change how errors are reported and retried, so compare the options against your volume and failure-handling needs. The loader choices are covered in choosing a data loader for migration.

For help planning this work, see Salesforce implementation.

Keeping duplicates and data quality under control

A canonical model does not fix data quality by itself. If two systems create the same account under different names, the model carries both copies faithfully. Pair it with a matching rule that decides when two records describe the same real-world entity, and with a review routine that someone actually runs.

Schedule the review before the model goes live, so duplicates are settled before they reach the shared shape. The data steward duplicate review routine is a starting point for setting that up.

Questions about canonical models for Salesforce integrations

How many connected systems justify building a canonical model?

There is no fixed number. The model starts to pay off when several systems share the same core records and a change to one of them would otherwise ripple into several mappings. Two systems sharing one entity can usually manage with direct mappings. Four or five systems exchanging accounts and orders usually benefit from one.

Should the model copy the field names of one existing system?

Generally no. Adopting one system’s field names tends to carry that system’s assumptions into all other integrations, and the chosen system then becomes hard to replace. Pick names that describe the business meaning, and document the mapping from each system’s own names to them.

Does the model replace the data stored in each Salesforce org?

No. The model defines the shape of data while it moves between systems. Each system still stores its records in its own way. Because the model is a contract for exchange, a team can change its internal storage without touching other integrations, provided its mapping to the model still holds.

What should happen to a record the model cannot represent?

Decide this when you define the model, not when the first failed record appears. Common options are rejecting the record with a logged reason, holding the unmapped data in a designated field, or adding a new value to the model after review. Whichever option is chosen, the log should name the source system and the record so the owner can act on it.

How long should a parallel run last before cutover?

There is no standard length. Run it long enough to cover a full business cycle for that integration, such as a month-end close for order data, so the comparison sees unusual cases as well as routine ones. A shorter run is reasonable once the comparison results are clean and the rollback path has been tested.