Salesforce · SAP Business One · Data Sync

A sync that knows who owns every field.

SAP Business One Salesforce data synchronization is not "keep both systems the same". It is a set of per-object decisions: which system owns the value, which way it moves, how often, and who wins when both sides changed it in the same hour. Direction, ownership, cadence and the conflict rule — decided before anything is mapped.

  • 0 duplicates, by design
  • 1 owner per object
  • Daily reconciliation
Synchronization Matrix
WHO OWNS THE RECORD Salesforce Relationship · Opportunity · Activity SAP Business One Partners · Items · Prices · Documents Contacts: shared Addresses: shared Credit limit: ERP SYNCHRONIZATION RULES Match Keys CardCode · ItemCode Never by name Direction & Cadence Per object, not per project Conflict Rules System · field · time or a review queue WRITTEN DOWN BEFORE THE FIRST FIELD IS MAPPED 2πr DATA OUTCOMES No Duplicates Match keys enforced at the point of entry One Number Finance and sales quote the same figure An Audit Trail Every change traced to a system and time OWNERSHIP · DIRECTION · CADENCE · CONFLICT · RECONCILIATION
12+
Years delivering CRM and integration work
500+
Clients served across six countries
250+
Deployments taken live and supported
40+
Consultants, architects and engineers

Twopir Consulting is a Salesforce Partner with 12+ years and 500+ clients behind its CRM-to-ERP work — connecting commercial systems to operational truth so sales, finance and operations read the same order, the same stock figure and the same invoice.

Ultra Consultants logo
Mitratech logo
Spinify logo

Built for CRM ↔ ERP Operations

  • Salesforce Partner
  • HubSpot Partner
  • SAP B1 Service Layer
  • DI API & DI Server
  • iPaaS-neutral
  • Manufacturing & Distribution
  • Quote-to-Cash
  • Managed Integration Run
Where Syncs Fail

Six ways a sync quietly stops being trusted

None of these announce themselves. Each one erodes confidence in the data a little at a time, until somebody starts keeping a spreadsheet again — which is the real cost.

Duplicates multiply on both sides

Without a stored match key, every sync run risks creating a second business partner for an account that already exists. The published Twopir manufacturing engagement solved the CRM half of this by enforcing a unique customer code at the point of entry — the same principle applies across the boundary.

Two one-way syncs fighting each other

One job pushes accounts out, another pulls partners back, and neither knows the other exists. The record oscillates between two values and the audit trail shows only the last writer, never the argument.

Sales and finance quote different numbers

The CRM shows a price from the price book, the ERP calculates a different one from the price list and the customer's discount. Both people are reading their system correctly. Only one of them is right, and the customer finds out first.

Stale stock quoted as available

Inventory copied nightly is wrong by breakfast in any business that ships daily. High-cardinality, fast-moving data is usually the wrong thing to copy at all — it is the right thing to read live.

Failures nobody sees until month-end

Records that failed validation on the ERP side sit in a log, not a queue. The gap between the failure and the discovery is exactly the reconciliation work somebody does while closing the books.

Mapping drifts and nobody notices

A new tax code, a renamed price list, a product category added last quarter. The mapping document was accurate on go-live day and nobody owns keeping it that way, so the first sign of drift is a rejected document.

Definition

What data synchronization actually means here

SAP Business One Salesforce data synchronization is the set of rules that decide, for every object and every field, which system owns the value, which direction it moves, how often it moves, and what happens when both systems changed it since the last run. Building the pipes is the easy half; agreeing those rules is the work.

The word "sync" does most of the damage here, because it implies both systems should end up identical. They should not. Salesforce and SAP Business One model different things on purpose: the CRM holds the relationship, the opportunity, the activity history and the forecast; the ERP holds the business partner, the item master, the price lists, the warehouses and every financial document. A good synchronization design makes each system authoritative where it should be and read-only where it should not.

Three mechanics carry most of the risk. Match keys: a deterministic identifier stored on both sides — the CardCode on the Salesforce account, the Salesforce id in a User-Defined Field such as U_SalesforceId on the business partner — because matching on a company name will eventually merge two real customers. Cadence: set per object, since master data that changes daily and stock that changes hourly do not belong on the same schedule. Conflict rules: chosen deliberately per field, because "last write wins" is a decision even when nobody makes it.

Who this is for: RevOps, data and finance operations leaders who own the consequences of bad CRM and ERP data — the duplicate customer, the wrong price, the invoice nobody can find. We work with growing, mid-market, and enterprise organizations that need help with complex CRM implementations, integrations, and business system challenges.

Where this sits: Twopir's wider CRM practice is on Salesforce consulting, and the SAP Business One overview is on SAP Business One and Salesforce. The rest of this cluster goes deeper: SAP Business One Salesforce integration for what connects to what, and through which interface; integration services for what an engagement covers, where the scope stops and what it costs in time; implementation for the project that puts Salesforce in alongside B1; and integration architecture for the patterns and the six decisions that are expensive to reverse. If your buyers are manufacturers or distributors, Salesforce for manufacturing is the industry view of the same revenue infrastructure.

The Sync Matrix

Object by object: owner, direction, cadence, conflict rule

This is the document the whole engagement turns on. Every row is a decision somebody in the business has to make and sign, because reversing one after go-live means reversing every record that moved under the old rule.

Salesforce ↔ SAP Business One · synchronization matrix
ObjectSystem of recordDirectionTypical cadenceConflict rule
Account ↔ Business PartnerSAP Business OneSF → SAP on create, then ERP winsNear-real-time on create; hourly for updatesERP wins on billing name, tax registration and credit terms. CRM wins on relationship fields the ERP does not model.
Contact ↔ Contact PersonSalesforceSF → SAPHourlyCRM wins. The ERP needs a contact to address a document; it is not where relationship data should be curated.
Product ↔ ItemSAP Business OneSAP → SFDaily batch, plus on changeERP wins outright. Items are read-only in the CRM; a product that does not exist in SAP cannot be quoted.
Price Book ↔ Price ListSAP Business OneSAP → SFDaily batchERP wins. Customer-specific pricing and discount rules resolve in SAP; the CRM displays the result.
Stock availabilitySAP Business OneSAP → SF, or live readLive read preferred; otherwise 15–60 minERP wins. Usually the best candidate for Salesforce Connect rather than a copy.
Opportunity → Sales OrderSalesforce triggers, SAP ownsSF → SAPEvent-driven on the trigger stageOnce the document exists, SAP owns it. Changes after that point are made in the ERP, not in the CRM.
Delivery statusSAP Business OneSAP → SFEvent-driven or 15 minERP wins. Read-only in the CRM so a rep can answer a question without an ERP licence.
A/R InvoiceSAP Business OneSAP → SFEvent-driven on postERP wins absolutely. Nothing in the CRM may change an invoice value.
Incoming PaymentSAP Business OneSAP → SFDaily, or event-drivenERP wins. Paid, part-paid and overdue surface on the account so sales sees them before the renewal call.
Credit limit & holdSAP Business OneSAP → SFHourlyERP wins. Read-only in the CRM, and ideally enforced in the quote so the conversation happens before the order.
Shipping addressContested — decide explicitlyBoth by fieldHourlyBoth sides have a legitimate claim. The usual answer is ERP-wins on the address used for a document, CRM-wins on the prospect address.

Treat this as a strong default, not a template to sign. Every landscape changes rows of it — company databases per legal entity, a localisation with mandatory tax fields, an approval rule that blocks posting, or a business that raises the order on quote acceptance. The object and identity map behind it is on SAP Business One Salesforce integration; the topology that carries it is on integration architecture.

Value Mapping

Where the CRM process becomes an ERP transaction

Field mapping moves values. Value mapping decides what a value means on the other side — and the most consequential row is the stage that causes a sales order to exist at all.

Salesforce stage and value → SAP Business One behaviour
Salesforce valueSAP Business One resultDirectionWhy it is decided this way
Opportunity stage ProspectingNo ERP recordNonePre-sale activity stays in the CRM. Creating a business partner for every early-stage opportunity is how an ERP customer master fills with prospects that never bought.
Opportunity stage ProposalSales Quotation (optional)SF → SAPOnly where the business needs the quote costed or stock soft-allocated in the ERP. Many landscapes skip this deliberately.
Opportunity stage Closed WonSales Order createdSF → SAPThe usual crossing point. Businesses that take deposits move it earlier; businesses with credit control move it after the check passes.
Opportunity stage Closed LostNo document; partner retainedNoneThe business partner stays if it was already created. Deleting ERP master data on a lost deal breaks history.
Account type ProspectBusiness Partner type LeadSF → SAPWhere the business wants prospects in the ERP at all. Converting lead to customer at first order keeps the customer master clean.
Salesforce currencyDocCurrencySF → SAPMapped explicitly, with the rate source named. Two systems computing their own rate is a reconciliation problem with a monthly cadence.
Billing countryCountry code on the Business PartnerSF → SAPISO code mapping documented in both directions. This is also where localisation-specific mandatory fields surface.
Line discount %DiscountPercentSF → SAPTransformed, not copied: CRM discount models and ERP discount models rarely agree on whether the figure is per line or per document.

The crossing point is a business decision with real consequences for cash, credit and stock allocation. It is chosen in week one of an SAP Business One Salesforce implementation and written into the process map before any build starts.

Conflict & Duplicates

Four conflict rules, and the two controls underneath them

Every landscape uses more than one of these. What matters is that each object is assigned one deliberately, rather than inheriting last-write-wins because nobody chose.

System priority

One system always wins for this object, regardless of timing. The simplest rule, the easiest to explain to users, and the right default for anything financial.

  • Best for items, price lists, invoices, payments and credit
  • Losing system's field is made read-only in the interface, not just in policy
  • Users get an explanation in the UI, not a silently reverted edit
  • Cheapest rule to audit — the answer never depends on a timestamp

Field-level priority

Ownership set per field rather than per object. More work to document and the honest answer for records both sides legitimately maintain.

  • Typical on the account: ERP owns billing name, tax id and terms
  • CRM owns industry, segment, owner and relationship fields
  • Requires a field-level map that is maintained, not written once
  • Worth it exactly where a whole-object rule would be a lie

Last write wins by timestamp

The default everyone falls into by accident. Legitimate for low-stakes descriptive fields, dangerous everywhere else.

  • Needs a reliable modified timestamp on both sides
  • Clock skew between systems is a real failure mode, not a theoretical one
  • Never appropriate for price, credit, tax or any financial value
  • If you choose it, choose it deliberately and write down where it applies

Manual review queue

Where the cost of being wrong exceeds the cost of a human looking. Rare, deliberate, and it needs a named owner or it becomes a queue that only grows.

  • Typical for potential duplicate business partners
  • Both versions presented side by side with the source and time
  • A service-level expectation, or it silently becomes a backlog
  • Every decision logged so the rule can be automated later

Duplicate prevention

Cheaper than duplicate resolution by an order of magnitude. This is the rule that decides whether anyone trusts the data in month three.

  • Deterministic match key stored on both sides and indexed
  • Uniqueness enforced at the point of entry, not in a nightly job
  • Fuzzy matching only ever proposes, never merges automatically
  • A pre-go-live de-duplication pass with merge rules agreed by the business

Reconciliation

The control that catches everything the rules above missed. Delivered with the sync, not requested after the first bad month-end.

  • Daily count and value comparison per object
  • Orphan report: CRM records with no ERP counterpart and the reverse
  • Oldest unprocessed item in the queue, visible to a person
  • A monthly drift review on the mapping itself
The Mechanics

Eight mechanics that make the rules hold

The rules above are decisions. These are the things that have to exist in the build for those decisions to survive contact with real traffic.

Match keys, both directions

The CardCode on an indexed Salesforce field, the Salesforce id in a User-Defined Field such as U_SalesforceId on the business partner. Nothing anywhere matches on company name.

Item cross-reference

Salesforce product codes resolved to ItemCode through a stored reference or a mapping table, never by product name. Name matching is how a customer receives the wrong SKU.

Document identity

DocEntry is the internal key an integration must store; DocNum is the number a human quotes. Storing the wrong one is how an update lands on a different document six months later.

Master data before documents

Every document flow resolves business partner, item, price, warehouse and tax first, and fails with a specific message if one is missing — rather than posting something the ERP will reject for a reason nobody can read.

Idempotent writes

A source reference on every write, a check for an existing document before creating one, and update-or-create semantics so a re-run corrects rather than duplicates. Non-negotiable for order, invoice and payment traffic.

Live reads where copying is wrong

Salesforce Connect's OData adapters expose ERP data as External Objects without copying it. For stock by warehouse, a live read is usually more correct and cheaper than any sync schedule. Salesforce OData adapter

Event-driven where it earns its keep

Change Data Capture and Platform Events let the CRM publish a change once instead of the integration polling every record on a timer. Worth it when change rate is high and latency actually costs something.

An error queue, not a log

Source record, payload, SAP response, retry count and a replay action — in a queue with a named owner and an agreed response time. A log file is where failures go to be discovered at month-end.

Every one of these can be built on an iPaaS platform, in Apex against a Named Credential, or inside B1if. Which is right depends on volume and scope — the trade-offs are set out on SAP Business One Salesforce integration architecture.

How We Deliver

From an object inventory to a reconciled, monitored sync

Step two is the one that determines everything downstream, and it is a business sign-off rather than a technical task.

Step 01

Object & Field Inventory

Everything both systems hold that could reasonably move, listed before anyone argues about it. Including the fields that turn out not to need syncing at all, which is usually more of them than the first workshop expects.

Step 02

Ownership Sign-Off

Direction, system of record, cadence and conflict rule agreed object by object and signed by a named person. This is the deliverable the rest of the work depends on, and it is a business decision, not a technical one.

Step 03

De-duplicate & Assign Keys

A pre-build cleanup pass: duplicate analysis on both sides, merge rules agreed by the business, match keys assigned and indexed. Starting a sync on dirty data multiplies the dirt rather than revealing it.

Step 04

Build & Parallel Run

Flows built in a sandbox pair with the error queue and replay in place, then run alongside the existing process on real transactions while both outputs are reconciled daily until they agree.

Step 05

Cutover & Reconciled Run

A dated switch, then a monitored run where the reconciliation report is a standing output and the error queue has an owner with a response time — whether that owner is your team or ours.

Client Outcomes

Sync work with numbers attached

Every number below comes from a published Twopir case study and keeps the scope that case study states. These are CRM-to-ERP engagements rather than SAP Business One projects specifically — we would rather say so than dress one up — but the mechanics are the ones a B1 integration needs: customer upsert against a stored ERP identifier, CPQ lines mapped to ERP order lines, idempotent writes that never create a second document, and master-data uniqueness enforced at the point of entry.

★★★★★
Reporting was always a week behind because every rep tracked customer contact differently. Rebuilding the activity model and enforcing a unique customer code did more for trust in the numbers than any dashboard we could have drawn on top of the old data.
Twopir Project Lead Mid-market B2B manufacturer, United States Manufacturing · Master Data
Case Study

B2B Manufacturer — United States

Sales Cloud rebuilt for a multi-team manufacturer: automated activity roll-ups, a unique Customer Code enforced at the point of entry, hundreds of duplicate accounts merged, and six live dashboards. Six months, five phases.

~70% Reduction in manual tracking effort
0 Duplicate account records going forward
6 Live dashboards replacing stale weekly reports
Read the manufacturing master-data case study
★★★★★
Every closed deal used to be typed into the ERP a second time by hand. Now one button on the opportunity creates the customer, the sales order and the invoice, and if somebody presses it twice nothing duplicates — it updates what is already there.
Twopir Project Lead Australian equipment sales and agriculture business CRM → ERP Order Sync
Case Study

Equipment Manufacturer — Australia

Salesforce CPQ to MYOB Advanced: customer upsert by stored ERP card ID, CPQ line items mapped to ERP order lines, idempotent PUT sync, and the ERP invoice written straight back onto the Salesforce record.

1-Click Customer, sales order and invoice created in the ERP
0 Manual re-keying of order data between the two systems
100% Idempotent sync — a re-run updates, never duplicates
Read the CRM-to-ERP order sync case study
Why Twopir

We decide ownership before we build anything

Five things that decide whether the data is still trusted a year after the sync went live.

We are a Salesforce Partner, not an SAP reseller

Said plainly, because it changes who does what: Twopir Consulting is a Salesforce Partner. We design and build the integration layer, the Salesforce side of it and the operating process around it. Your SAP Business One partner keeps the ERP, the localisation and the licensing. Most of our SAP Business One work runs alongside an incumbent B1 partner, and the engagement is better for it — the two sides of the boundary each stay with the team that owns them.

Ownership is agreed before a single field is mapped

The question that sinks CRM-to-ERP projects is not "how do we move this field", it is "who is allowed to change it". We run an ownership workshop first and write the answer down object by object: who creates a business partner, who may edit a price, who wins when both systems changed the same record in the same hour.

Built for the day it fails, not the day it demos

Order, invoice and payment traffic is financially significant, so retries cannot create second documents. Every write we build carries an external reference, checks whether the SAP document already exists before creating one, and logs the resulting DocEntry against the source record. Failures land in a queue somebody actually owns.

Ownership before flows, always

We will not build a sync against an undecided ownership map, and we say so at the proposal stage rather than at the retrospective. It is the one thing that cannot be fixed later cheaply: reversing the owner of an object after go-live means reversing every record that moved under the old rule.

Reconciliation is the exit bar

A sync is not finished when the flows run. It is finished when a daily reconciliation shows the two systems agreeing on counts and values, and that report is a standing deliverable rather than something produced once for the sign-off meeting.

Common Questions

The questions that decide the design

It means deciding, for every object and every field, which system owns the value, which direction it moves, how often, and what happens when both systems changed it since the last run — and then building to those decisions.

It does not mean making the two systems identical. Salesforce and SAP Business One model different things deliberately. The CRM holds the relationship, the opportunity and the forecast; the ERP holds the business partner, the item master, the price lists and every financial document. A good design makes each authoritative where it should be and read-only where it should not.

Per object, and in most SAP Business One landscapes the answer is mostly one-way. Items, price lists, invoices, payments and credit limits flow ERP to CRM and are read-only in Salesforce. Contacts and pre-sale data flow CRM to ERP. Only a few objects genuinely need two-way traffic.

The account is the common exception: the CRM creates it, the ERP then owns the billing name, tax registration and payment terms, and the CRM keeps the fields the ERP does not model. That is a field-level split, not a two-way sync, and describing it accurately is what prevents the record from oscillating.

With a deterministic match key stored on both sides and enforced at the point of entry. The CardCode goes on an indexed Salesforce field; the Salesforce id goes into a User-Defined Field on the business partner. Every lookup uses those, never the company name.

Then uniqueness is enforced where records are created rather than cleaned up nightly. In the published Twopir manufacturing engagement, enforcing a unique customer code at the point of entry — after merging the duplicates that had already accumulated — is what stopped new ones appearing. Fuzzy matching still has a place, but it should only ever propose a merge for a human to confirm.

Whichever one you decided in advance. There are four workable rules and they are not interchangeable: system priority, where one side always wins for that object; field-level priority, where ownership is split within a record; last-write-wins by timestamp; and a manual review queue.

System priority is right for anything financial. Field-level priority is the honest answer for the account. Last-write-wins is acceptable only for low-stakes descriptive fields and depends on clocks agreeing between the two systems, which is a real failure mode rather than a theoretical one. A review queue is for cases where being wrong costs more than a person looking — and it needs a named owner or it just grows.

Set the cadence per object, not per project. Commercial triggers such as a stage change are event-driven. Master data that changes daily runs on a scheduled batch. Volatile, high-cardinality data such as stock by warehouse is usually better read live through Salesforce Connect than copied at all.

Choosing a single cadence for everything is the most common cause of a sync being simultaneously too slow for sales and too expensive for the API budget. Three cadences is normal; one is a symptom.

It lands in an error queue with the source record, the payload, the SAP response, the retry count and a replay action — and that queue has a named owner and an agreed response time. Transient failures retry with exponential backoff and a ceiling; anything that exceeds the ceiling goes to a dead-letter queue for a person.

The replay has to be safe, which is why idempotency is designed in from the start: every write carries a source reference, checks whether the SAP document already exists, and updates it rather than creating a second one.

Both are legitimate and the honest answer depends on volume and scope. One flow, low volume and a single company database can be built directly with Apex callouts to the Service Layer against a Named Credential — fewer moving parts, no platform licence, and it stays supportable as long as the scope stays small.

Once you have several document flows, more than one SAP company database, or a real need for replay and error queues, an iPaaS hub earns its licence: the retry, queueing, monitoring and cross-reference storage come with the platform instead of being written from scratch. We are tool-neutral about which one — we have delivered on MuleSoft, Jitterbit and Workato, and we will recommend the cheapest thing that meets the requirement.

Most of this work starts with something already running. A typical first engagement is a review: we read the existing mappings, watch a week of real traffic, reproduce the failures, and come back with the small number of changes that actually stop them.

The causes repeat. Two one-way syncs with no agreement on who wins. Matching on customer name instead of a stored identifier. Retries that create a second sales order instead of finding the first. Errors written to a log nobody reads. Those are fixable without replacing the platform, and we will say so if that is the answer.

Next Step

Decide who owns each field before the first record moves

Twopir Consulting designs, builds and reconciles SAP Business One to Salesforce data synchronization — direction, ownership, cadence and conflict rules, object by object. We help growing and mid-market companies solve complex CRM, integration, and business system challenges.

Speak with a team that treats ownership as a decision, not a default