CRM (Salesforce/HubSpot/Zoho) ↔ SAP B1 BP + Quotation/Order
Bidirectional CRM sync. CRM Account ↔ SAP B1 BusinessPartners; a deal reaching quote stage → POST /Quotations; a won deal → POST /Orders. Cross-IDs stored both sides (B1 UDF U_CrmId, CRM field B1_CardCode). Delta sync via UpdateDate/UpdateTS. Duplicate detection before create; conflict resolution respects field ownership.
Steps in this flow
- CRM: Account/Deal Changed
- Guard: CRM Record ID
- SL Login (B1SESSION)
- SL: Find BP by U_CrmId
- Field-Ownership + Dupe Check
- SL: Upsert BusinessPartner
- Route by Deal Stage
- SL: POST /Quotations
- SL: POST /Orders