OBLYTECH Logo
OBLYTECH Logo

Identity Matching Rules for Shared Customers Across Two Salesforce Orgs

Matching shared customers across Salesforce orgs comes down to three decisions: a matching key, a named golden-record owner, and a survivorship rule for conflicting values. Together they decide which org holds the authoritative record when one person buys from two business units.

Why one customer ends up with two records

Two business units rarely start with the same customer list. One team imports accounts from a web shop, the other from a field sales spreadsheet, and each org assigns its own identifiers. The customer buys a product in one unit and a service in the other, and reports then show two people with slightly different names, one with a personal email and one with a work address. Usually nobody has made a mistake. The orgs simply have no shared rule for deciding that two records describe the same person or company.

The cost shows up in predictable places. Account managers in each unit contact the same buyer with conflicting offers. Renewal dates drift apart. Support staff cannot see the full history, so a case opened in one unit looks new to the other. Finance counts the person twice, which inflates the customer total and distorts retention figures. Before changing any rule, write down which of these symptoms your teams already see, because that list becomes the test set later.

Shared customers also come in different shapes. A sole trader who buys from two units is one person with two roles. A company with several departments buying through separate contracts is one organization with multiple contacts. Decide early whether matching works at the person level, the account level, or both, because the key for each level is different.

Choose a matching key both orgs can fill in

A matching key is the set of fields two records must share before the system treats them as the same customer. Keep it short. A key built from five fields misses legitimate matches whenever one org leaves a field blank, and a key built from surname alone can merge strangers. Teams usually settle on two or three fields that both orgs capture reliably.

Good candidates include:

  • A normalized email address, lowercased and trimmed, for person-level matches.
  • A tax or company registration number, for account-level matches between businesses.
  • A customer number issued by a shared billing or identity system, if one exists.
  • A postal address in a standard format, used as a supporting check rather than a primary key.

Weak candidates include names alone, phone numbers that change often, and free-text company names with abbreviations. Phone numbers carry country-code and formatting differences that produce false misses unless you normalize them first. Whichever fields you choose, make sure both orgs populate them when a record is created, not later. A key that is filled in only for older records misses new ones, and that gap is hard to spot in a summary report. If you need to require a field so the key is present on new records, review the approach in validation rules that do not break integrations before you change data entry.

Name one golden-record owner for each shared customer

The golden record is the version of the customer that other systems read from. Matching identifies candidates, and the golden-record owner decides which record is the anchor. Name one owner for customer identity, not one per org. A common arrangement gives identity to a central data steward, while each business unit owns the fields that describe its own relationship, such as contract terms or local contact preferences.

The owner needs three things. First, authority to merge or link records across orgs, since a steward without that authority can only file tickets. Second, a written decision log, so a later dispute can be traced to a decision and a date. Third, a named backup. Shared customers often generate questions around holidays and quarter closes, and one person who is out of office should not stall the queue.

Limit who can edit the golden record itself. Business users should see the shared record and change their own unit’s fields, while changes to identity fields such as the matching key go through the owner. Setting that boundary is mostly an access design question. The approach in permission set design for small teams applies directly: grant access by job function and keep identity-level write access to a short list.

Write a survivorship rule for conflicting values

A survivorship rule answers one question: when two linked records disagree on a value, which value wins? Without that rule, whichever record was saved last overwrites the other, and a customer’s phone number changes depending on which unit’s team edited it most recently.

Write the rule per field, not per record. A workable starting pattern looks like this:

  1. Identity fields such as legal name and tax number come from the golden-record owner’s source, whichever unit entered them.
  2. Contact fields such as email and mobile number take the most recently verified value, with the verification date stored alongside.
  3. Relationship fields such as contract terms belong to the unit that signed the contract, and the other unit does not overwrite them.
  4. Any field with no clear winner goes to the review queue rather than being decided by save order.

Two details trip teams up. Keep the verification date in its own field, so the rule compares recency directly instead of relying on a last-edited timestamp that changes whenever anyone touches the record. And keep losing values in history rather than deleting them, because support staff often need to answer questions about a number that is no longer current.

Route uncertain matches to a review queue

Some candidate matches sit between a clear hit and a clear miss. Two records may share an email address but list different postal addresses, for example. Rather than force a decision, route these to a queue that the golden-record owner or a trained steward works through on a fixed schedule. Track three things for each item: the fields that matched, the fields that conflicted, and the decision with its date.

Set the threshold for entering the queue, then test it on a sample before going live. A queue that is too loose floods the steward, and the backlog stops shrinking. A queue that is too strict lets duplicates through quietly. Start with a few hundred known shared customers, review each outcome by hand, and adjust the key until false merges and false misses are both acceptable to the business units involved.

When you run the first batch across the full customer base, plan the run size around platform processing constraints and keep a batch log. The guide to governor limits for admins covers the kinds of constraints an admin should check before a large data job, and the same planning applies to a one-time match run.

Test the rules before the first full run

Testing needs a copy of both orgs that reflects current data, so the matching logic runs against the same shapes of records you will see in production. Read through sandbox refresh planning before you pick a test window, so the copy you test against lines up with the date you run the sample. For help planning this work, see Salesforce implementation.

Work through the sample in this order:

  1. Export a sample of shared customers from both orgs with the matching key fields, and write the expected answer for each pair by hand.
  2. Run the matching logic against the sample and compare each result with the expected answer.
  3. Check the survivorship rule on a subset of conflicts, including at least one case for each field.
  4. Confirm the review queue receives the items you expected and that a steward can close them.
  5. Record each false merge and false miss, change one rule at a time, and rerun the sample.

Sign-off should come from the golden-record owner and at least one person from each business unit. Ask each unit to name a shared customer it knows well, and check how that customer appears after the run. Spot checks catch problems a summary count misses, such as two records that merged correctly but now show the wrong contract owner.

Questions about changing emails, legal entities and new units

What happens when a customer changes their email address?

If email is part of the matching key, a change breaks the link unless a second key still matches. Keep a customer number or tax number as the fallback, and store the previous email in history so older records still resolve. Treat the change as an update to the golden record, not as a new customer.

When should two records stay separate?

Keep them separate when they represent different legal entities, even if they share a person or a parent company. A contact who works for two companies is one person with two account links. Two businesses under one owner are two accounts. Link at the level where the legal and financial facts differ, and avoid merging across that line.

Who decides when a merge should be reversed?

The golden-record owner decides, using the decision log. Reversal should restore the losing record’s values from history and note the reason in the log. Notify the account owners in both business units, because a reversal changes figures they may already have quoted to a customer.

How long can a review item stay open?

Set an age limit for review items, such as two weeks. Items past that limit go to the golden-record owner for a decision. If the owner cannot decide, apply the survivorship rule to the last verified values and record that the outcome was a default, so the item does not sit indefinitely.

What changes when a new business unit joins?

Treat the new unit as a new data source. Map its fields to the matching key, run the sample test set again, and check queue volume for two full cycles before relaxing any thresholds. A sharp difference in queue volume from the existing units usually points to a formatting gap in the import.