Skip to main content

PrimerUpdated November 202614 min read

How to Integrate Salesforce with Your ERP System

How to integrate Salesforce with your ERP, find duplicate and conflicting customer records, and decide when a customer data platform is worth it.

  • Salesforce
  • ERP integration
  • customer data platform
  • data quality
  • order management
  • system of record

Integrating Salesforce with an ERP (the system that runs your finances, stock and invoices) means deciding which system owns each field, choosing how data moves, and testing every flow in both directions. The method can be a prebuilt connector, middleware such as MuleSoft, or a custom API, chosen flow by flow. Matching rules find duplicate customers, and a customer data platform (software that merges customer data into one profile) is needed only sometimes.

How do you integrate Salesforce with your ERP system?

You integrate Salesforce with an ERP one flow at a time, and you choose the method for each flow rather than one method for everything. Salesforce is a customer relationship management (CRM) system, the system that holds your customers and sales. Closed deals leave it as orders, and customers, invoices and stock levels come back from the ERP. The same flow-by-flow approach applies to NetSuite, the ERP we implement and rescue.

Start by listing the flows. A flow is one direction of one kind of record: an order going out, an invoice coming back, a stock level coming back, a customer change going out. For each flow, write down what triggers it, which system starts it, what has to be true before it runs, and what happens when it fails. If you have not yet read how the two systems differ, start with CRM and ERP Explained.

Integration methods compared: native, middleware and custom API

MethodHow it worksTradeoffsUse it when
Native connectorA prebuilt connector between the two products that you configure rather than write code for.Fastest to start and least to run. Before you commit, check which objects and fields it supports, because anything outside that list needs another method.The flows are standard, the objects are common, and the volume is modest.
Middleware, such as MuleSoftA platform sits between the systems and handles translation, routing, retries and logging.Copes with several systems and heavy transformation, and gives one place to watch every flow. Adds a platform to license, learn and operate.Several systems have to connect, transformations are heavy, or retries and monitoring must work the same way across every flow.
Custom API integrationCode uses each system's API (a published set of requests that a system accepts from other programs) to send and fetch records directly.Fits unusual rules exactly and needs no platform licence. You own the code, the error handling, the retries and the monitoring for as long as the integration lives.The flow is unusual, the volume is low, or no connector or middleware covers what you need.

Decisions you have to make: field ownership, sync frequency and data volume

Field ownership. Name one system of record for each kind of data. That is the one system whose version is authoritative. Other systems receive copies and do not overwrite it.

DataSystem of recordOthers receive a copy
Customer contact detailsCRMERP, store, support desk
Product prices and stockERPStore, CRM
Invoices and paymentsERPCRM, so service teams can see them
Orders and order statusOrder management systemCRM, store, support desk
Support casesSupport deskCRM

Sync frequency. Match the frequency to what someone is waiting for.

  • Real time: one system tells the other the moment something happens. Use it for stock on a live quote or order status a customer is checking.
  • Batch: data is collected and moved on a schedule, such as hourly or overnight. Use it for invoices, payment status and daily totals.
  • On demand: every scheduled flow should also be able to run when someone asks, so a failure can be fixed without waiting for the next window.

Data volume. Count three numbers before you choose a method: records per day, records in the busiest hour, and the size of the largest single batch. Then read the documentation for both systems to find how much each accepts in one request and how many requests it allows in a period. A flow that works at a hundred records a day can fail at ten thousand, and the failure often arrives as a timeout rather than a clear error.

What the work takes

Integration flows built the Rex Black Inc. way take 2.5 days, tested, against a measured median of 12.5 days by hand, about five times sooner. Use those two figures as planning anchors for each flow you have listed.

See Salesforce consulting, implementation and Agentforce and Salesforce, NetSuite, order management, and integrations for how this work is done.

How do you find duplicate and conflicting customer records across ERP, CRM and the store?

You find them by matching records on rules you write down, then comparing every field that disagrees, one line at a time. The method below runs in order and repeats on a schedule, because new duplicates arrive with every order, every new contact and every import.

A numbered method, run in order

  1. Agree on what a customer is. A person, a company, a billing account and a storefront login are four different things, and a record that mixes them cannot be matched reliably. Write the definition down and use it in every system.
  2. Choose the matching rules. Start with exact keys: email address, tax or registration number, ERP customer number, store account number. Then add close-match rules for records with no exact key. Close matches are not exact ones, for example a company name with punctuation and legal endings removed, the digits of a phone number, or a postcode together with the street. Ask your Salesforce administrator which duplicate-detection settings are switched on, so the rules you write down and the rules the CRM applies agree.
  3. Score the matches. An exact key match is a duplicate. A close match above your threshold is a likely duplicate. Anything below the threshold goes to a person for a decision, and that decision is recorded so the same pair is not reviewed twice.
  4. Name the owner of every field. Use the field ownership table above and extend it to every field the matching rules touch. A field with no owner is a field that will disagree.
  5. Compare field by field and record every disagreement. For each duplicate pair, list the fields that differ, the value in each system, and the date each value last changed.
  6. Resolve conflicts by rule, not by argument. Typical rules: the most recent change wins for contact details, the ERP wins for anything financial, the store wins for the shipping address on an open order, and a named person decides anything the rules do not cover. Write the rules down before the first merge, so the same conflict is settled the same way every time.
  7. Merge, and keep the losing identifiers. Keep the old identifiers on the surviving record as aliases, so orders, invoices and support history still point at the right customer.
  8. Watch for new duplicates. Run the matching rules on a schedule, block obvious duplicates at the point of entry, and report the duplicate rate so the trend is visible.

How to start this week

  1. Export the customer list from Salesforce, from the ERP and from the store as spreadsheet files, using each system's own export or report tool, or ask its administrator. Keep every identifier column.
  2. Put the three lists in one sheet and add a column that says which system each row came from.
  3. Tidy the matching columns: make emails lowercase, remove extra spaces, and keep only the digits of phone numbers.
  4. Sort by email and mark every email that appears more than once. Those are your first confirmed duplicates.
  5. Apply the close-match rules to the rows that remain, and list the fields that differ for each pair.
  6. Count the disagreements by field. The fields with the most disagreements are the ones that most need an owner.

Block a few working days for a first pass. Larger files and more close-match rules take longer.

What line-by-line measurement looks like

In the two-week fixed-fee systems audit for a professional skincare manufacturer, Rex Black Inc. measured 8,762 saved integration versions line by line and traced 3,307 failed integration runs, in eight working days. The audit also found an exposed payment gateway key and a compromised storefront theme, and produced 23 ranked findings and 10 deliverables. That is the kind of line-by-line measurement we bring to integration work.

Duplicates and conflicts are often the visible symptom of an integration nobody is watching. Order management system integration covers the flows that carry orders and stock, and Cross-system reporting: one report, one customer view covers what to build once the records agree.

Which companies implement a customer data platform for a brand selling on Shopify with an ERP?

Look for a firm that combines Shopify experience, Salesforce experience and ERP integration experience, and ask to see comparable work. Rex Black Inc. does work in all three areas, but none of our published case studies is a customer data platform project, so we do not offer one as proof. A customer data platform is software that merges customer data from several sources into one profile.

What we do offer is Salesforce consulting, including Data Cloud and Agentforce where they pay for themselves, along with NetSuite work and the integrations between your systems. We are a Shopify partner and a Salesforce Consulting Partner (Commerce Cloud, Data Cloud, Agentforce, MuleSoft), with AWS and Azure solutions architects on the team. If you want to know whether your case needs a customer data platform at all, book a call for a 30-minute conversation with a principal.

What to look for in any firm you consider

  • Experience with Shopify customer and order data, including how store accounts, guest checkouts and orders map to customer records.
  • A clear approach to ERP field ownership, so the platform receives copies of invoices, payments and stock and never overwrites them.
  • A written matching and conflict-resolution method, as in the numbered method above.
  • Testing of the joined profile: checks that a merged customer shows the right orders, invoices and service history, in both directions.
  • Comparable work they can show you.

What a customer data platform project involves (general guidance)

This list is general guidance for any buyer. It is not a description of a Rex Black Inc. service.

  • Sources joined: the Shopify store (customers and orders), the ERP (accounts, invoices and stock) and Salesforce (contacts and sales history), with the support desk or marketing tool added if they hold customer data.
  • The ERP link: the ERP stays the owner of invoices, payments and stock. The platform receives copies and does not overwrite them.
  • The Shopify side: the store usually owns the shipping address on an open order and the online account. The platform needs a stable key, such as email address or store account number, to join store visitors and buyers to the same person in the other systems.
  • Joining visits to customers: when someone browses the store before buying, the platform has to decide whether that visit belongs to a known customer and then attach it to their orders and service history.

None of the three items below is a customer data platform project. Each one shows a part of the work that sits underneath such a project: commerce on Salesforce, measuring integrations, and reconciling reports.

  • For a global skincare brand, we delivered Salesforce Commerce Cloud across five countries, and US revenue rose 17 percent. See the case study.
  • For a professional skincare manufacturer, we measured 8,762 saved integration versions and traced 3,307 failed integration runs in a two-week fixed-fee systems audit, as described above.
  • For a national specialty retailer, we reconciled 145 financial reporting rules and traced 40 discrepancies in one working week, as described below.

For the store side, see Shopify, WooCommerce and Commerce Cloud store development.

When a customer data platform is needed

  • The brand sells through several channels, such as its own store, marketplaces, retail partners and in-store, and no system sees the whole customer.
  • Marketing needs customer groups built from behaviour across channels and refreshed continuously, and neither the store nor the ERP can produce them.
  • Anonymous website visits have to be joined to known customers, and then to their orders and service history.
  • The source systems cannot be changed, because they belong to a partner, a franchise or a platform the brand does not control.
  • Consent and privacy rules have to be applied to a merged profile, with a record of where each piece of data came from.

When cleaning the data at the source is enough

  • There is one store, one ERP and one CRM, with the same customer appearing in all three under a shared key.
  • The duplicates come from data entry and imports rather than from how the systems are built.
  • The need is a single customer view for service, sales and finance, which matching rules and a field ownership table can deliver.
  • The matching rules are stable and the volume is modest.

Either way, fix the source first. A customer data platform fed by conflicting records produces a merged profile that is confidently wrong, and it does so faster. Work in this order: agree the definition of a customer, agree field ownership, clean the source, measure the disagreements that remain, and only then decide whether a platform is needed.

A worked example: 145 reporting rules reconciled, 40 discrepancies traced

For a national specialty retailer, Rex Black Inc. reconciled 145 financial reporting rules between Power BI (a reporting tool) and the general ledger (the master record of the company's accounts), and traced 40 discrepancies to their source system, in one working week.

The same question applies to a customer record. When the CRM and the ERP disagree about a customer's credit status, the useful question is not which report is right. It is which system created the value, when, and why.

How should integrations be tested?

Test the connections, not just each system on its own. Every flow needs checks in both directions and checks for what happens when something goes wrong.

  • Each direction, each kind of record. Create, update and delete in the source, and confirm the right result in the target.
  • Boundaries and bad data. Very long names, missing fields, unusual characters, and records that break the target system's rules.
  • Failure and recovery. When the target system is down, are changes queued and retried, and is someone alerted?
  • Volume. Does the overnight batch still finish when the business is ten times larger?
  • Reconciliation. Totals and record counts in both systems agree after the sync.

The most common failures are mismatched definitions of a customer, duplicates, fields that mean different things in different systems, syncs that stop without an alert, two systems changing the same record at nearly the same moment, and fields that no system owns.

Questions we hear from buyers

Do we need middleware if we already have a native connector?

Not for the flows the connector covers. Middleware becomes worth its cost when several systems have to connect, when the data needs heavy transformation on the way through, or when retries and monitoring must behave the same way across every flow.

Who owns the customer record, the CRM or the ERP?

The CRM usually owns the relationship and the contact details, and the ERP owns anything financial, such as invoices, payments and credit status. What matters is that the decision is written down and applied by every integration, not which system wins.

How often should Salesforce and the ERP sync?

As often as someone is waiting for the answer, and no more. Stock for a live quote and order status for a customer need seconds or minutes. Invoices and daily totals can wait for an hourly or overnight run.

What happens when a sync fails overnight?

Nothing good, unless you planned for it. Every flow needs a queue or a retry, an alert that reaches a person, and a way to run the flow again on demand once the cause is fixed.

Can we start with one flow?

Yes, and it is the sensible way to start. Pick the flow with the highest cost of being wrong, such as orders going out or stock coming back, and build it with its tests and its failure handling. The pattern you establish is then reused for the rest.

How do we know the integration still works after go-live?

Measure it. Count records in and out, compare totals in both systems, watch the failure rate, and check the oldest record that has not synced. An integration that is not measured is an integration that is assumed to be working.

Do we need a customer data platform?

Only when several sources have to be merged and no system can own the customer. If one store, one ERP and one CRM hold the same customer under a shared key, matching rules and field ownership will do the job.

What does an integration project cost, and how long does it take?

The total depends on how many flows there are and how clean the data is, so we scope it on a call. To size the effort yourself, count your flows and use the measured figures as anchors: an integration flow built the Rex Black Inc. way takes 2.5 days, tested, against a measured median of 12.5 days by hand. Then add time for field ownership decisions and for cleaning duplicates, which depend on your data. The two-week systems audit is a fixed fee. Book a call and we will talk through your systems and flows.

What to do next

Start with the flow that costs the most when it is wrong, and write down the field ownership decisions before any code is written. Salesforce consulting, implementation and Agentforce and Salesforce, NetSuite, order management, and integrations cover how Rex Black Inc. does that work, and Book a call is the fastest way to talk through your own flows.

For background reading, Why Your CRM and ERP Disagree, and What to Do About It sets out the audit framework, and The System-of-Record Decision covers how revenue teams settle on one trusted number. Look up any unfamiliar term in our glossary.

Rex Black Inc. · Since 1994 · Dallas, Texas

Keep reading

Related reading

Practices

Where this leads

Working on something like this?Talk to the people who wrote it.

Book a call