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

  1. CRM: Account/Deal Changed
  2. Guard: CRM Record ID
  3. SL Login (B1SESSION)
  4. SL: Find BP by U_CrmId
  5. Field-Ownership + Dupe Check
  6. SL: Upsert BusinessPartner
  7. Route by Deal Stage
  8. SL: POST /Quotations
  9. SL: POST /Orders

All templates