Industrial manufacturer selling through distributors
Distributors register deals in a partner portal with conflict checks and a protection period. Projects link the specifier, contractor and distributor opportunities. Prices and orders come from SAP, and forecasts run by product family.
Illustrative design parameters: an industrial pumps and valves maker with roughly 150 direct sellers, several hundred distributor partners in about 30 countries, most revenue through the channel, and SAP as the ERP.
Customer master from SAP
Customer master changes slowly and needs reconciliation and survivorship rules. Batch Data Synchronization is reliable and auditable; sellers don't need sub-minute updates.
- Protocol / API
- MuleSoft system API โ Salesforce Bulk API 2.0 upsert on SAP customer number
- Middleware
- MuleSoft
- Frequency / volume
- Nightly delta; full reconciliation monthly
- Error handling and retry
- Rejected rows logged with reason; reconciliation report of counts by country; data steward queue for conflicts.
- Security / auth
- OAuth 2.0 JWT bearer for the integration user; field-level ownership documented (SAP owns legal name, addresses, tax IDs)
Net price and availability
Net prices depend on SAP conditions per customer and distributor. Sellers and partners need them while building the deal, so it's Request and Reply, with a fallback so SAP downtime doesn't block selling.
- Protocol / API
- Apex โ Named Credential โ MuleSoft process API (REST) โ SAP pricing simulation
- Middleware
- MuleSoft
- Frequency / volume
- On adding or changing products; thousands a day
- Error handling and retry
- 3-second timeout; fallback to list price with a visible 'net price pending' flag and background retry.
- Security / auth
- OAuth 2.0 client credentials through an External Credential; partner users get prices only for their own account context
Approved special price to SAP condition
Creating SAP conditions is asynchronous and owned by SAP. Fire and Forget with confirmation keeps the approval fast and makes execution status visible.
- Protocol / API
- Approval โ Platform Event โ MuleSoft โ SAP condition record creation; condition ID returned by callback
- Middleware
- MuleSoft
- Frequency / volume
- Hundreds a week
- Error handling and retry
- Idempotency key per request; failures set the request to 'Execution failed' and alert the pricing team.
- Security / auth
- Event published only after approval; callback user limited to the request object
Orders and invoices
Orders and invoices are high-volume, owned by SAP and needed read-only in context. Data Virtualization avoids copying and keeps data current.
- Protocol / API
- Salesforce Connect OData 4.0 โ SAP_Order__x and SAP_Invoice__x via an OData service
- Middleware
- SAP OData gateway
- Frequency / volume
- On demand when users open the account or opportunity
- Error handling and retry
- Read-only; errors shown inline.
- Security / auth
- Named principal plus Salesforce object permissions; partner users see orders only for their own account
Partner sell-out reports
Distributors won't integrate their ERPs, but most can export a monthly file. A batch upload with validation gives sell-out visibility without a custom integration per partner.
- Protocol / API
- Monthly CSV upload in the portal โ staging object โ validation Flow โ reporting object
- Middleware
- None
- Frequency / volume
- Monthly per partner
- Error handling and retry
- Validation errors returned to the partner in the portal; unmatched products flagged for the channel manager.
- Security / auth
- Partner users can upload only for their own account