Design the integration between Sales Cloud and ERP for customers, prices, credit and orders.
Your confidence:Not rated
Model answer
| Flow | Pattern | Why |
|---|---|---|
| Customer master ERP โ Salesforce (or MDM โ both) | Batch data sync (daily or near real time with events), upsert by external ID | ERP or MDM owns legal entities, sold-to and ship-to. Salesforce needs them for selling. |
| New prospect โ customer creation Salesforce โ ERP | Fire and forget on closed-won (or on request), with a callback carrying the ERP number | Customer creation in ERP has its own checks, and the rep shouldn't wait for it |
| Net price and availability | Request-reply at quote time, with a timeout and a cached fallback | Customer-specific conditions live in ERP and change often |
| Credit check | Request-reply before proposal or order | It's a decision that needs current exposure |
| Order submission Salesforce โ ERP | Fire and forget through middleware, with an acknowledgement and status updates back | The order process is ERP's. Salesforce tracks the status. |
| Order and invoice history | Data virtualisation (external objects or an LWC calling an API), or a summary sync | High volume, rarely needed in full in CRM |
Cross-cutting design
- Middleware (MuleSoft or similar) owns transformation, retries and monitoring. Salesforce calls APIs with Named Credentials and OAuth.
- Idempotency: external IDs and correlation IDs so retries don't duplicate customers or orders.
- Errors: a dead-letter queue in middleware, plus an integration log object or Platform Event in Salesforce, so failures are visible to support and to the rep.
- Field ownership matrix: for each field, who masters it and who may write it, including AI agents.
- Volumes and limits: bulk API for loads, and event-driven updates where near real time matters.
โ Key points to hit
โ Red-flag answers
- Copying every ERP price condition into Salesforce
- Synchronous order creation blocking the rep
- No external IDs, so retries create duplicates
- Point-to-point callouts without monitoring
โช Follow-ups
ERP is down during quarter end. What do reps see?
Price lookups time out and fall back to list price with a clear warning, or a cached net price with its timestamp. Orders queue in middleware and are submitted when ERP returns. Status shows 'pending submission'. Nobody re-keys orders.
Why not use Salesforce as the customer master?
Sometimes it is, for prospects. Once a customer has legal, tax and credit data, ERP or MDM usually masters it because finance processes depend on it. The key is one master per attribute, documented in the ownership matrix.