Source ERP · 24 of 27

CRMPro → Zoho CRM — Sage X3: what the shipped templates set up

Read it in the terminal with "dlake skills show dlake-crmpro-zohocrm/erps/sage-x3". It extends the dlake-crmpro-zohocrm skill, which holds what is true whatever the source ERP.

CRMPro → Zoho CRM — Sage X3: what the shipped templates set up

Keep this skill current. dlake ships updates often and this text is embedded in the CLI you have installed. Before relying on it, compare dlake --version with npm view @commercient/dlake version; if they differ, run npm install -g @commercient/dlake@latest and then dlake skills install, which overwrites the installed skill files with the current text.

dlake-crmpro is the parent skill and the authority for everything general: the crmpro_* tools, CRM_Configuration and CRM_FieldList, TimeStampRepository, the three kinds of source view, the NULL-cursor rule and the silent zero-record run. Read it first; this page does not repeat it. dlake-crmpro-zohocrm is the destination skill this page is a child of, and the authority for the Zoho CRM conventions that hold across every ERP: read it first, then come back here for what this source’s own templates set. This page is dlake-crmpro-zohocrm/erps/sage-x3.md, and that skill’s ERP table is what points at it. What follows is only what the shipped Sage X3 → Zoho CRM templates themselves set, read from their Insert_Query, CreateViewQuery and MappingJson. This page grows as the catalogue does.

1. What the templates deliver

GroupBusiness outcomeObjectsSource tables and views
SageX3__PaymentTermThe templates push commercientsagex3__SageX3_PaymentTerm to Zoho CRM.commercientsagex3__SageX3_PaymentTermSF_ERP_Salesforce_Clone_TABPAYTERM
SageX3__SalesPersonThe templates push commercientsagex3__SageX3_SalesPerson to Zoho CRM.commercientsagex3__SageX3_SalesPersonSF_ERP_Salesforce_Clone_SALESREP, SF_ERP_Salesforce_Clone_BPADDRESS
Parent AccountThe templates push Accounts to Zoho CRM.AccountsSF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_BPDLVCUST, SF_ERP_Salesforce_Clone_BPADDRESS
Child AccountThe templates push Accounts to Zoho CRM.AccountsSF_ERP_Salesforce_Clone_BPDLVCUST, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_TABPAYTERM, SF_ERP_Salesforce_Clone_BPADDRESS
SageX3__CustomerThe templates push commercientsagex3__SageX3_Customer to Zoho CRM.commercientsagex3__SageX3_CustomerSF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_BPDLVCUST, SF_ERP_Salesforce_Clone_TABPAYTERM
SageX3__AddressThe templates push commercientsagex3__SageX3_Address to Zoho CRM.commercientsagex3__SageX3_AddressSF_ERP_Salesforce_Clone_BPADDRESS, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_BPDLVCUST, SF_ERP_Salesforce_Clone_SALESREP
SageX3__ItemMasterThe templates push commercientsagex3__SageX3_ItemMaster to Zoho CRM.commercientsagex3__SageX3_ItemMasterSF_ERP_Salesforce_Clone_ITMMASTER, SF_ERP_Salesforce_Clone_ITMSALES
SageX3__SalesOrderHeaderThe templates push commercientsagex3__SageX3_SalesOrderHeader to Zoho CRM.commercientsagex3__SageX3_SalesOrderHeaderSF_ERP_Salesforce_Clone_SORDER, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_SALESREP, CommercientFlags
SageX3__SalesOrderDetailThe templates push commercientsagex3__SageX3_SalesOrderDetail to Zoho CRM.commercientsagex3__SageX3_SalesOrderDetailSF_ERP_Salesforce_Clone_SORDERP, SF_ERP_Salesforce_Clone_SORDERQ, SF_ERP_Salesforce_Clone_SORDER, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_SALESREP, CommercientFlags
SageX3__InvoiceHeaderThe templates push commercientsagex3__SageX3_InvoiceHeader to Zoho CRM.commercientsagex3__SageX3_InvoiceHeaderSF_ERP_Salesforce_Clone_SINVOICE, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_SALESREP, CommercientFlags
SageX3__InvoiceDetailThe templates push commercientsagex3__SageX3_InvoiceDetail to Zoho CRM.commercientsagex3__SageX3_InvoiceDetailSF_ERP_Salesforce_Clone_SINVOICED, SF_ERP_Salesforce_Clone_SINVOICE, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_SALESREP, CommercientFlags
SageX3__WarehouseThe templates push commercientsagex3__SageX3_Warehouse to Zoho CRM.commercientsagex3__SageX3_WarehouseSF_ERP_Salesforce_Clone_WAREHOUSE
SageX3__ItemWarehouseThe templates push commercientsagex3__SageX3_ItemWareHouse to Zoho CRM.commercientsagex3__SageX3_ItemWareHouseSF_ERP_Salesforce_Clone_ITMWRH, SF_ERP_Salesforce_Clone_WAREHOUSE
SageX3__PaymentHeaderThe templates push commercientsagex3__SageX3_PaymentHeader to Zoho CRM.commercientsagex3__SageX3_PaymentHeaderSF_ERP_Salesforce_Clone_PAYMENTH, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_SALESREP, CommercientFlags
SageX3__PaymentDetailThe templates push commercientsagex3__SageX3_PaymentDetail to Zoho CRM.commercientsagex3__SageX3_PaymentDetailSF_ERP_Salesforce_Clone_PAYMENTD, SF_ERP_Salesforce_Clone_PAYMENTH, SF_ERP_Salesforce_Clone_SINVOICE, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_SALESREP, CommercientFlags
ProductsThe templates push Products to Zoho CRM.ProductsSF_ERP_Salesforce_Clone_ITMMASTER, SF_ERP_Salesforce_Clone_SPRICLIST
Sales OrdersThe templates push Sales_Orders to Zoho CRM.Sales_OrdersSF_ERP_Salesforce_Clone_SORDERP, SF_ERP_Salesforce_Clone_SORDERQ, SF_ERP_Salesforce_Clone_ITMMASTER, SF_ERP_Salesforce_Clone_SORDER, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_BPADDRESS
InvoicesThe templates push Invoices to Zoho CRM.InvoicesSF_ERP_Salesforce_Clone_SINVOICED, SF_ERP_Salesforce_Clone_ITMMASTER, SF_ERP_Salesforce_Clone_SINVOICE, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_BPADDRESS, x
CRM OwnershipThe templates push users to Zoho CRM.users

2. The process rows the templates create

Each template’s Insert_Query writes one CRM_Configuration row. These are the values it sets; a column the inserts never set is not listed.

Display nameCRM_Object_API_NameCRM_PK_API_NameSync_OrderTimeStamp_PrefixSQL_Query targetfield prefix / postfix
SageX3__PaymentTermcommercientsagex3__SageX3_PaymentTermCommercient_ExternalKey1vw_SAGEX3_PaymentTerm:vw_SAGEX3_PaymentTermcommercientsagex3__ / ''
UsersusersCommercient_ExternalKey1vw_Users:SELECT 1'' / ''
SageX3__SalesPersoncommercientsagex3__SageX3_SalesPersonCommercient_ExternalKey2vw_SAGEX3_SalesRep:vw_SAGEX3_SalesRepcommercientsagex3__ / ''
Parent AccountAccountsCommercient_ArCustomer_Code3vw_SAGEX3_Account:vw_SAGEX3_ParentAccount'' / ''
Child AccountAccountsCommercient_ArCustomer_Code5vw_SAGEX3_Account:vw_SAGEX3_ChildAccount'' / ''
SageX3__Customercommercientsagex3__SageX3_CustomerCommercient_ExternalKey6vw_SAGEX3_Customer:vw_SAGEX3_Customercommercientsagex3__ / ''
SageX3__Addresscommercientsagex3__SageX3_AddressCommercient_ExternalKey7vw_SAGEX3_Address:vw_SAGEX3_Addresscommercientsagex3__ / ''
ProductsProductsCommercient_ExternalKey7vw_SAGEX3_Product:vw_SAGEX3_Product'' / ''
SageX3__ItemMastercommercientsagex3__SageX3_ItemMasterCommercient_ExternalKey8vw_SAGEX3_ItemMaster:vw_SAGEX3_ItemMastercommercientsagex3__ / ''
SageX3__SalesOrderHeadercommercientsagex3__SageX3_SalesOrderHeaderCommercient_ExternalKey9vw_SAGEX3_SOHeader:vw_SAGEX3_SOHeadercommercientsagex3__ / ''
SageX3__SalesOrderDetailcommercientsagex3__SageX3_SalesOrderDetailCommercient_ExternalKey10vw_SAGEX3_SODetail:vw_SAGEX3_SODetailcommercientsagex3__ / ''
SageX3__InvoiceHeadercommercientsagex3__SageX3_InvoiceHeaderCommercient_ExternalKey11vw_SAGEX3_InvoiceHeader:vw_SAGEX3_InvoiceHeadercommercientsagex3__ / ''
SageX3__InvoiceDetailcommercientsagex3__SageX3_InvoiceDetailCommercient_ExternalKey12vw_SAGEX3_InvoiceDetail:vw_SAGEX3_InvoiceDetailcommercientsagex3__ / ''
SageX3__Warehousecommercientsagex3__SageX3_WarehouseCommercient_ExternalKey13vw_SAGEX3_Warehouse:vw_SAGEX3_Warehousecommercientsagex3__ / ''
SageX3__ItemWarehousecommercientsagex3__SageX3_ItemWareHouseCommercient_ExternalKey14vw_SAGEX3_ItemWarehouse:vw_SAGEX3_ItemWarehousecommercientsagex3__ / ''
SageX3__PaymentHeadercommercientsagex3__SageX3_PaymentHeaderCommercient_ExternalKey15vw_SAGEX3_PaymentHeader:vw_SAGEX3_PaymentHeadercommercientsagex3__ / ''
SageX3__PaymentDetailcommercientsagex3__SageX3_PaymentDetailCommercient_ExternalKey16vw_SAGEX3_PaymentDetail:vw_SAGEX3_PaymentDetailcommercientsagex3__ / ''
Sales OrdersSales_OrdersCommercient_ExternalKey17vw_SAGEX3_DSalesOrder:vw_SAGEX3_DSalesOrder'' / ''
InvoicesInvoicesCommercient_ExternalKey18vw_SAGEX3_DInvoice:vw_SAGEX3_DInvoice'' / ''

Every one of these inserts Is_Active as 0, so an imported process is inactive until an operator activates it. Across the set they insert Is_Create_Entity 0, Is_Create_Fields 0, Is_Active_Get_Records 0, Is_Active_Delete_Records 0. The insert column lists do not include Sync_Operation_Type, Sync_Batch_Size, IsAccountMatching, Document_Source_Path, so those columns take their CRM_Configuration defaults. Text columns a template does not use are inserted as '' rather than left NULL. Get_SOQL_Query carries a query on Parent Account — those rows read records back from Zoho CRM as well as pushing. On Parent Account the SQL_Query names a view the same template’s CreateViewQuery does not create (vw_SAGEX3_ParentAccount against vw_SAGEX3_Account), so check the view exists under the name the row selects from before activating it.

3. The views

Each template creates its view with CreateViewQuery, in the gateway dbo schema. “Change detection” names which of the three kinds dlake-crmpro defines the view’s own WHERE makes it; where a view’s shape is not one of those three the column is left empty and the view’s own WHERE is the authority.

ViewChange detectionRepository keyReads other prefixesIdentity columnSource tables
vw_SAGEX3_PaymentTerminsert + updatevw_SAGEX3_PaymentTerm:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_TABPAYTERM
vw_SAGEX3_SalesRepinsert + updatevw_SAGEX3_SalesRep:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_SALESREP, SF_ERP_Salesforce_Clone_BPADDRESS
vw_SAGEX3_Accountinsert + updatevw_SAGEX3_SalesRep:, Users:, vw_SAGEX3_Account:SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_BPDLVCUST, SF_ERP_Salesforce_Clone_BPADDRESS
vw_SAGEX3_ChildAccountinsert + updatevw_SAGEX3_PaymentTerm:, vw_SAGEX3_SalesRep:, vw_Users:, vw_SAGEX3_Account:Commercient_ArCustomer_CodeSF_ERP_Salesforce_Clone_BPDLVCUST, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_TABPAYTERM, SF_ERP_Salesforce_Clone_BPADDRESS
vw_SAGEX3_Customerinsert + updatevw_SAGEX3_PaymentTerm:, vw_SAGEX3_Account:, vw_SAGEX3_SalesRep:, vw_Users:, vw_SAGEX3_Customer:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_BPDLVCUST, SF_ERP_Salesforce_Clone_TABPAYTERM
vw_SAGEX3_Addressinsert + updatevw_SAGEX3_Account:, vw_SAGEX3_Customer:, vw_SAGEX3_SalesRep:, vw_SAGEX3_Address:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_BPADDRESS, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_BPDLVCUST, SF_ERP_Salesforce_Clone_SALESREP
vw_SAGEX3_Productinsert-onlyvw_SAGEX3_Product:Commercient_ExternalKeySF_ERP_Salesforce_Clone_ITMMASTER, SF_ERP_Salesforce_Clone_SPRICLIST
vw_SAGEX3_ItemMasterinsert + updatevw_SAGEX3_Product:, vw_SAGEX3_ItemMaster:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_ITMMASTER, SF_ERP_Salesforce_Clone_ITMSALES
vw_SAGEX3_SOHeaderinsert + updatevw_SAGEX3_Account:, vw_SAGEX3_Customer:, vw_SAGEX3_SOHeader:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_SORDER, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_SALESREP, CommercientFlags
vw_SAGEX3_SODetailinsert + updatevw_SAGEX3_SOHeader:, vw_SAGEX3_SODetail:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_SORDERP, SF_ERP_Salesforce_Clone_SORDERQ, SF_ERP_Salesforce_Clone_SORDER, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_SALESREP
vw_SAGEX3_InvoiceHeaderinsert + updatevw_SAGEX3_Account:, vw_SAGEX3_Customer:, vw_SAGEX3_InvoiceHeader:Commercient_ExternalKey__c, ExternalKey, Commercient_ExternalKeySF_ERP_Salesforce_Clone_SINVOICE, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_SALESREP, CommercientFlags
vw_SAGEX3_InvoiceDetailinsert + updatevw_SAGEX3_InvoiceHeader:, vw_SAGEX3_InvoiceDetail:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_SINVOICED, SF_ERP_Salesforce_Clone_SINVOICE, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_SALESREP, CommercientFlags
vw_SAGEX3_Warehouseinsert + updatevw_SAGEX3_Warehouse:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_WAREHOUSE
vw_SAGEX3_ItemWarehouseinsert + updatevw_SAGEX3_Warehouse:, vw_SAGEX3_ItemMaster:, vw_SAGEX3_ItemWarehouse:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_ITMWRH, SF_ERP_Salesforce_Clone_WAREHOUSE
vw_SAGEX3_PaymentHeaderinsert + updatevw_SAGEX3_Account:, vw_SAGEX3_Customer:, vw_SAGEX3_PaymentHeader:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_PAYMENTH, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_SALESREP, CommercientFlags
vw_SAGEX3_PaymentDetailinsert + updatevw_SAGEX3_PaymentHeader:, vw_SAGEX3_PaymentDetail:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_PAYMENTD, SF_ERP_Salesforce_Clone_PAYMENTH, SF_ERP_Salesforce_Clone_SINVOICE, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_SALESREP
vw_SAGEX3_DSalesOrderinsert-onlyvw_SAGEX3_Product:, vw_SAGEX3_Account:, vw_SAGEX3_DSalesOrder:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_SORDERP, SF_ERP_Salesforce_Clone_SORDERQ, SF_ERP_Salesforce_Clone_ITMMASTER, SF_ERP_Salesforce_Clone_SORDER, SF_ERP_Salesforce_Clone_BPCUSTOMER
vw_SAGEX3_DInvoiceinsert-onlyvw_SAGEX3_Product:, vw_SAGEX3_Account:, vw_SAGEX3_DSalesOrder:, vw_SAGEX3_DInvoice:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_SINVOICED, SF_ERP_Salesforce_Clone_ITMMASTER, SF_ERP_Salesforce_Clone_SINVOICE, SF_ERP_Salesforce_Clone_BPCUSTOMER, SF_ERP_Salesforce_Clone_BPADDRESS

4. Order of work

The templates set Sync_Order from 1 to 18. A run processes active rows in ascending Sync_Order, which is the order the templates put them in:

  • 1 — SageX3__PaymentTerm, Users
  • 2 — SageX3__SalesPerson
  • 3 — Parent Account
  • 5 — Child Account
  • 6 — SageX3__Customer
  • 7 — SageX3__Address, Products
  • 8 — SageX3__ItemMaster
  • 9 — SageX3__SalesOrderHeader
  • 10 — SageX3__SalesOrderDetail
  • 11 — SageX3__InvoiceHeader
  • 12 — SageX3__InvoiceDetail
  • 13 — SageX3__Warehouse
  • 14 — SageX3__ItemWarehouse
  • 15 — SageX3__PaymentHeader
  • 16 — SageX3__PaymentDetail
  • 17 — Sales Orders
  • 18 — Invoices

Several of these rows share a Sync_Order value: each template group carries its own numbering, so give the imported processes an order across the whole set rather than taking the template values as one.

These views read another process’s repository prefix, which is what makes the order a dependency order: the row appears in the view only once the process that writes that prefix has run, so a parent flows on one run and its children on the next.

  • vw_SAGEX3_PaymentTerm reads vw_SAGEX3_PaymentTerm:; no template in this set writes vw_SAGEX3_PaymentTerm:
  • vw_SAGEX3_SalesRep reads vw_SAGEX3_SalesRep:; no template in this set writes vw_SAGEX3_SalesRep:
  • vw_SAGEX3_Account reads vw_SAGEX3_SalesRep:, Users:, vw_SAGEX3_Account:; no template in this set writes vw_SAGEX3_SalesRep:, Users:, vw_SAGEX3_Account:
  • vw_SAGEX3_ChildAccount reads vw_SAGEX3_PaymentTerm:, vw_SAGEX3_SalesRep:, vw_Users:, vw_SAGEX3_Account:; no template in this set writes vw_SAGEX3_PaymentTerm:, vw_SAGEX3_SalesRep:, vw_Users:, vw_SAGEX3_Account:
  • vw_SAGEX3_Customer reads vw_SAGEX3_PaymentTerm:, vw_SAGEX3_Account:, vw_SAGEX3_SalesRep:, vw_Users:, vw_SAGEX3_Customer:; no template in this set writes vw_SAGEX3_PaymentTerm:, vw_SAGEX3_Account:, vw_SAGEX3_SalesRep:, vw_Users:
  • vw_SAGEX3_Address reads vw_SAGEX3_Account:, vw_SAGEX3_Customer:, vw_SAGEX3_SalesRep:, vw_SAGEX3_Address:; no template in this set writes vw_SAGEX3_Account:, vw_SAGEX3_Customer:, vw_SAGEX3_SalesRep:, vw_SAGEX3_Address:
  • vw_SAGEX3_ItemMaster reads vw_SAGEX3_Product:, vw_SAGEX3_ItemMaster:; no template in this set writes vw_SAGEX3_Product:, vw_SAGEX3_ItemMaster:
  • vw_SAGEX3_SOHeader reads vw_SAGEX3_Account:, vw_SAGEX3_Customer:, vw_SAGEX3_SOHeader:; no template in this set writes vw_SAGEX3_Account:, vw_SAGEX3_Customer:, vw_SAGEX3_SOHeader:
  • vw_SAGEX3_SODetail reads vw_SAGEX3_SOHeader:, vw_SAGEX3_SODetail:; no template in this set writes vw_SAGEX3_SOHeader:, vw_SAGEX3_SODetail:
  • vw_SAGEX3_InvoiceHeader reads vw_SAGEX3_Account:, vw_SAGEX3_Customer:, vw_SAGEX3_InvoiceHeader:; no template in this set writes vw_SAGEX3_Account:, vw_SAGEX3_Customer:, vw_SAGEX3_InvoiceHeader:
  • vw_SAGEX3_InvoiceDetail reads vw_SAGEX3_InvoiceHeader:, vw_SAGEX3_InvoiceDetail:; no template in this set writes vw_SAGEX3_InvoiceHeader:, vw_SAGEX3_InvoiceDetail:
  • vw_SAGEX3_Warehouse reads vw_SAGEX3_Warehouse:; no template in this set writes vw_SAGEX3_Warehouse:
  • vw_SAGEX3_ItemWarehouse reads vw_SAGEX3_Warehouse:, vw_SAGEX3_ItemMaster:, vw_SAGEX3_ItemWarehouse:; no template in this set writes vw_SAGEX3_Warehouse:, vw_SAGEX3_ItemMaster:, vw_SAGEX3_ItemWarehouse:
  • vw_SAGEX3_PaymentHeader reads vw_SAGEX3_Account:, vw_SAGEX3_Customer:, vw_SAGEX3_PaymentHeader:; no template in this set writes vw_SAGEX3_Account:, vw_SAGEX3_Customer:, vw_SAGEX3_PaymentHeader:
  • vw_SAGEX3_PaymentDetail reads vw_SAGEX3_PaymentHeader:, vw_SAGEX3_PaymentDetail:; no template in this set writes vw_SAGEX3_PaymentHeader:, vw_SAGEX3_PaymentDetail:
  • vw_SAGEX3_Product reads vw_SAGEX3_Product:; no template in this set writes vw_SAGEX3_Product:
  • vw_SAGEX3_DSalesOrder reads vw_SAGEX3_Product:, vw_SAGEX3_Account:, vw_SAGEX3_DSalesOrder:; no template in this set writes vw_SAGEX3_Product:, vw_SAGEX3_Account:, vw_SAGEX3_DSalesOrder:
  • vw_SAGEX3_DInvoice reads vw_SAGEX3_Product:, vw_SAGEX3_Account:, vw_SAGEX3_DSalesOrder:, vw_SAGEX3_DInvoice:; no template in this set writes vw_SAGEX3_Product:, vw_SAGEX3_Account:, vw_SAGEX3_DSalesOrder:, vw_SAGEX3_DInvoice:

5. Field mapping

CRM_FieldList carries one row per pushed column, with Object_Name equal to the CRM_Object_API_Name value — as dlake-crmpro puts it, an object with no CRM_FieldList rows pushes nothing and records no error. Each template carries its intended mapping in MappingJson. Read that with dlake admin crmpro_templates, then check crmpro_field_mapping on the created process before activating it.

TemplateObjectMapped fieldsFirst ERP → Zoho CRM pairs
SageX3__PaymentTermcommercientsagex3__SageX3_PaymentTerm15PTE_0, PTELIN_0Commercient_ExternalKey__c, PTE_0, PTELIN_0Name, DUDMINAMT_0commercientsagex3__Minimum_Due_Date_Amount, DUDPRC_0Due_Date_In_Percent, ENDMONFLG_0MonthEnd
Usersusers1Commercient_ExternalKeyCommercient_ExternalKey
SageX3__SalesPersoncommercientsagex3__SageX3_SalesPerson13REPNUM_0Commercient_ExternalKey__c, AUSNUM_0UserCode, BPAADD_0DefaultAddress, CFY_0Company, CUR_0SalesRep_Currency
Parent AccountAccounts14ROWIDcommercientSAGEX3__Commercient_ARCustomerCode, REP_0commercientSAGEX3__Salesperson_R, BPCNAM_0Account_Name, BPAADDLIG_0Billing_Street, CTY_0Billing_City
Child AccountAccounts23BPCNUM_0, BPAADD_0Commercient_ArCustomer_Code__c, BPCNAM_0, BPAADD_0Account_Name, BPAADDLIG_0, BPAADDLIG_1Shipping_Street, BPAADDLIG_1Shipping_Street_2, BPAADDLIG_2Shipping_Street_3
SageX3__Customercommercientsagex3__SageX3_Customer51BPCNUM_0, BPAADD_0Commercient_ExternalKey__c, BPCNAM_0, BPAADD_0Name, BPCNAM_0, BPAADD_0SageX3__Customer__Name, CheckAccountTimeStamp.SFDCIDAccount_R, CheckSalesRepTimeStamp.SFDCIDSalesperson_R
SageX3__Addresscommercientsagex3__SageX3_Address28BPATYP_0, BPANUM_0, BPAADD_0Commercient_ExternalKey__c, BPATYP_0, BPANUM_0, BPAADD_0SageX3__Address__Name, BPANUM_0Account_R, BPANUM_0Customer_R, REP_0SalesRep_R
ProductsProducts13ITMREF_0Commercient_ExternalKey, ITMDES1_0, ITMDES2_0Products_Name, ITMDES1_0, ITMDES2_0Product_Name, ITMREF_0Product_Code, ITMDES1_0Description
SageX3__ItemMastercommercientsagex3__SageX3_ItemMaster102ITMREF_0Commercient_ExternalKey__c, ITMREF_0Name, ITMDES1_0,ITMDES2_0SageX3__ItemMaster__Name, ITMSTA_0Product_Status, STDFLG_0Management_Mode
SageX3__SalesOrderHeadercommercientsagex3__SageX3_SalesOrderHeader71SOHNUM_0Commercient_ExternalKey__c, SOHNUM_0Name, SOHNUM_0SageX3__SalesOrderHeader__Name, BPCINV_0Account_R, BPCINV_0Customer_R
SageX3__SalesOrderDetailcommercientsagex3__SageX3_SalesOrderDetail61SOHNUM_0,SOPLIN_0,SOPSEQ_0Commercient_ExternalKey__c, SOHNUM_0,SOPLIN_0,SOPSEQ_0Name, SOHNUM_0,SOPLIN_0,SOPSEQ_0SageX3__SalesOrderDetail__Name, SFDCIDSalesOrderHeader_R, BPCORD_0Customer
SageX3__InvoiceHeadercommercientsagex3__SageX3_InvoiceHeader40NUM_0Commercient_ExternalKey__c, NUM_0ExternalKey, NUM_0Name, NUM_0SageX3__InvoiceHeader__Name, BPR_0Account_R
SageX3__InvoiceDetailcommercientsagex3__SageX3_InvoiceDetail49NUM_0, SIDLIN_0Commercient_ExternalKey__c, NUM_0, SIDLIN_0Name, NUM_0DocNUM, SIDLIN_0Invoice_Line, SOHNUM_0SalesOrderNO
SageX3__Warehousecommercientsagex3__SageX3_Warehouse8ROWIDCommercient_ExternalKey__c, WRH_0Warehouse_Code, WRHNAM_0Name, STOFCY_0Stock_Factory, EXPNUM_0Exp_Number
SageX3__ItemWarehousecommercientsagex3__SageX3_ItemWareHouse65ROWIDCommercient_ExternalKey__c, ITMREF_0, WRH_0Name, CREDATTIM_0Change_Date, CREUSR_0CreatedUser, CUNCOD_0Cun_Code
SageX3__PaymentHeadercommercientsagex3__SageX3_PaymentHeader42NUM_0Commercient_ExternalKey__c, NUM_0Name, BPR_0Account_R, BPR_0Customer_R, NUM_0PaymentNO
SageX3__PaymentDetailcommercientsagex3__SageX3_PaymentDetail28NUM_0,LIN_0Commercient_ExternalKey__c, NUM_0,LIN_0Name, SFDCIDPaymentHeader_R, NUM_0PaymentHeaderID, VCRNUM_0InvoiceHeaderID
Sales OrdersSales_Orders25SOHNUM_0ExternalKey, SOHNUM_0Commercient_ExternalKey__c, SFDCIDAccount_Name, SOHNUM_0Name, SOHNUM_0SO_Number
InvoicesInvoices20NUM_0Commercient_ExternalKey__c, SFDCIDAccount_Name, NUM_0Name, NUM_0Invoice_Number, CREDAT_0Invoice_Date

6. Verifying

# per-prefix counts; every synced record carries its destination id
dlake tool query --profile <tenant> --sql "SELECT LEFT([Key], CHARINDEX(':',[Key])-1) AS prefix, COUNT(*) n, COUNT(NULLIF(SFDCID,'')) withId FROM dbo.TimeStampRepository WHERE CHARINDEX(':',[Key])>0 GROUP BY LEFT([Key], CHARINDEX(':',[Key])-1)"

withId = n for every prefix is the success condition dlake-crmpro defines. The split is on the first colon, which is the prefix boundary whether the key separator is : or ::.

The prefixes these templates set:

  • vw_SAGEX3_PaymentTerm:
  • vw_SAGEX3_SalesRep:
  • vw_SAGEX3_Account:
  • vw_SAGEX3_Customer:
  • vw_SAGEX3_Address:
  • vw_SAGEX3_ItemMaster:
  • vw_SAGEX3_SOHeader:
  • vw_SAGEX3_SODetail:
  • vw_SAGEX3_InvoiceHeader:
  • vw_SAGEX3_InvoiceDetail:
  • vw_SAGEX3_Warehouse:
  • vw_SAGEX3_ItemWarehouse:
  • vw_SAGEX3_PaymentHeader:
  • vw_SAGEX3_PaymentDetail:
  • vw_SAGEX3_Product:
  • vw_SAGEX3_DSalesOrder:
  • vw_SAGEX3_DInvoice:
  • vw_Users:

7. Where this sits

dlake-crmpro is the general operating surface — the crmpro_* tools, the setup and transaction tables, field mapping, and the source-view contract that applies to every destination. This page adds what the shipped Sage X3 → Zoho CRM templates set up. dlake-crmpro-zohocrm is the destination skill this page sits under: its own text is the authority for the Zoho CRM conventions that hold across every ERP, and its ERP table lists this page alongside every sibling ERP page for this destination. For the extract leg that fills the clone tables, see dlake-normalsync; for the on-premises agent that runs it, dlake-syncagent; for the writeback leg, dlake-txdownloaderpro; for standing an integration up, dlake-integration-setup.