Source ERP · 22 of 27

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

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

CRMPro → Zoho CRM — Sage 50 UK: 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-50-uk.md, and that skill’s ERP table is what points at it. What follows is only what the shipped Sage 50 UK → 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
AccountsThe templates push Accounts to Zoho CRM. New records are created and existing ones updated; none are deleted.AccountsSF_ERP_Salesforce_Clone_SALES_LEDGER, SF_ERP_Salesforce_Clone_SALES_DEL_ADDR
SAGE50UK CustomerThe templates push sage50uk__SAGE50UK_Customer to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50uk__SAGE50UK_CustomerSF_ERP_Salesforce_Clone_SALES_LEDGER
Sage50 UK AddressThe templates push sage50uk__SAGE50UK_Address to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50uk__SAGE50UK_AddressSF_ERP_Salesforce_Clone_SALES_DEL_ADDR, SF_ERP_Salesforce_Clone_SALES_LEDGER
ContactsThe templates push Contacts to Zoho CRM. New records are created and existing ones updated; none are deleted.ContactsSF_ERP_Salesforce_Clone_SALES_DEL_ADDR, SF_ERP_Salesforce_Clone_SALES_LEDGER, SF_ERP_Salesforce_Clone_PURCHASE_DEL_ADDR, SF_ERP_Salesforce_Clone_PURCHASE_LEDGER
ProductsThe templates push Products to Zoho CRM. New records are created and existing ones updated; none are deleted.ProductsSF_ERP_Salesforce_Clone_STOCK
Item MasterThe templates push sage50uk__SAGE50UK_ITEM to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50uk__SAGE50UK_ITEMSF_ERP_Salesforce_Clone_STOCK
Sales Order HeaderThe templates push sage50uk__SAGE50UKSalesOrder_Header to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50uk__SAGE50UKSalesOrder_HeaderSF_ERP_Salesforce_Clone_SALES_ORDER, SF_ERP_Salesforce_Clone_SALES_LEDGER, SF_ERP_Salesforce_Clone_CURRENCY
Sales Order DetailsThe templates push sage50uk__SAGE50UKSalesOrder_Detail to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50uk__SAGE50UKSalesOrder_DetailSF_ERP_Salesforce_Clone_SOP_ITEM
Invoice HeaderThe templates push sage50uk__SAGE50UK_Invoice_Header to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50uk__SAGE50UK_Invoice_HeaderSF_ERP_Salesforce_Clone_INVOICE, SF_ERP_Salesforce_Clone_SALES_LEDGER, SF_ERP_Salesforce_Clone_CURRENCY
Invoice DetailsThe templates push sage50uk__SAGE50UK_Invoice_Detail to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50uk__SAGE50UK_Invoice_DetailSF_ERP_Salesforce_Clone_INVOICE_ITEM, SF_ERP_Salesforce_Clone_INVOICE
SuppliersThe templates push Vendors to Zoho CRM. New records are created and existing ones updated; none are deleted.VendorsSF_ERP_Salesforce_Clone_PURCHASE_LEDGER
SAGE50UK Purchase OrderThe templates push sage50uk__SAGE50UK_Pur_Order_Header to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50uk__SAGE50UK_Pur_Order_HeaderSF_ERP_Salesforce_Clone_PURCHASE_ORDER, SF_ERP_Salesforce_Clone_SALES_LEDGER
SAGE50UK PurchaseOrderLineThe templates push sage50uk__SAGE50UK_Pur_Order_Detail to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50uk__SAGE50UK_Pur_Order_DetailSF_ERP_Salesforce_Clone_POP_ITEM
Sales OrdersThe templates push Sales_Orders to Zoho CRM. New records are created and existing ones updated; none are deleted.Sales_OrdersSF_ERP_Salesforce_Clone_SOP_ITEM, SF_ERP_Salesforce_Clone_SALES_ORDER, SF_ERP_Salesforce_Clone_STOCK, SF_ERP_Salesforce_Clone_SALES_LEDGER, SF_ERP_Salesforce_Clone_SALES_DEL_ADDR, x
InvoicesThe templates push Invoices to Zoho CRM. New records are created and existing ones updated; none are deleted.InvoicesSF_ERP_Salesforce_Clone_INVOICE_ITEM, SF_ERP_Salesforce_Clone_STOCK, SF_ERP_Salesforce_Clone_INVOICE, SF_ERP_Salesforce_Clone_SALES_ORDER, SF_ERP_Salesforce_Clone_SALES_LEDGER, SF_ERP_Salesforce_Clone_SALES_DEL_ADDR
Purchase OrderThe templates push Purchase_Orders to Zoho CRM. New records are created and existing ones updated; none are deleted.Purchase_OrdersSF_ERP_Salesforce_Clone_POP_ITEM, SF_ERP_Salesforce_Clone_PURCHASE_ORDER, SF_ERP_Salesforce_Clone_STOCK, SF_ERP_Salesforce_Clone_SALES_DEL_ADDR, x
Products UpdateThe templates push Products to Zoho CRM. New records are created and existing ones updated; none are deleted.ProductsSF_ERP_Salesforce_Clone_STOCK
CRM OwnershipThe templates push users to Zoho CRM. New records are created and existing ones updated; none are deleted.users
VendorThe templates push sage50uk__SAGE50UK_Vendor to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50uk__SAGE50UK_VendorSF_ERP_Salesforce_Clone_PURCHASE_LEDGER

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
UsersusersCommercient_ExternalKey0SalesRep:SELECT 1'' / ''
AccountsAccountsCommercient_ArCustomer_Code1vwAccount:vw_SAGE50UK_Account'' / ''
SAGE50UK Customersage50uk__SAGE50UK_CustomerCommercient_ExternalKey2vwCustomer:vw_SAGE50UK_Customersage50uk__ / __c
Sage50 UK Addresssage50uk__SAGE50UK_AddressCommercient_ExternalKey3vwAddress:vw_SAGE50UK_Addresssage50uk__ / __c
ContactsContactsCommercient_ExternalKey4vw_SAGE50UK_Contact:vw_SAGE50UK_Contact'' / ''
ProductsProductsCommercient_ExternalKey5vw_SAGE50UK_Product:vw_SAGE50UK_Product_Insert'' / ''
Item Mastersage50uk__SAGE50UK_ITEMCommercient_ExternalKey6vwItem:vw_SAGE50UK_Itemsage50uk__ / __c
Sales Order Headersage50uk__SAGE50UKSalesOrder_HeaderCommercient_ExternalKey7vwSalesOrderHeader:vw_SAGE50UK_SalesOrderHeadersage50uk__ / __c
Sales Order Detailssage50uk__SAGE50UKSalesOrder_DetailCommercient_ExternalKey8vwSalesOrderDetail:vw_SAGE50UK_SalesOrderDetailsage50uk__ / __c
Invoice Headersage50uk__SAGE50UK_Invoice_HeaderCommercient_ExternalKey9vw_InvoiceHeader:vw_SAGE50UK_InvoiceHeadersage50uk__ / __c
Invoice Detailssage50uk__SAGE50UK_Invoice_DetailCommercient_ExternalKey10vw_InvoiceDetail:vw_SAGE50UK_InvoiceDetailsage50uk__ / __c
SuppliersVendorsCommercient_ExternalKey11vw_SAGE50UK_Suppliers:vw_SAGE50UK_Suppliers'' / ''
SAGE50UK Vendorsage50uk__SAGE50UK_VendorCommercient_ExternalKey11vw_SAGE50UK_Vendor:vw_SAGE50UK_Vendorsage50uk__ / __c
SAGE50UK Purchase Ordersage50uk__SAGE50UK_Pur_Order_HeaderCommercient_ExternalKey12vw_SAGE50UK_PurchaseOrder:vw_SAGE50UK_PurchaseOrdersage50uk__ / __c
SAGE50UK PurchaseOrderLinesage50uk__SAGE50UK_Pur_Order_DetailCommercient_ExternalKey13vw_SAGE50UK_PurchaseOrderLine:vw_SAGE50UK_PurchaseOrderLinesage50uk__ / __c
Sales OrdersSales_OrdersCommercient_ExternalKey14vw_SAGE50UK_DSalesOrder:vw_SAGE50UK_DSalesOrder'' / ''
InvoicesInvoicesCommercient_ExternalKey15vw_SAGE50UK_DInvoice:vw_SAGE50UK_DInvoice'' / ''
Purchase OrderPurchase_OrdersCommercient_ExternalKey16vw_SAGE50UK_DPurchaseOrder:vw_SAGE50UK_DPurchaseOrder'' / ''
Products UpdateProductsCommercient_ExternalKey17vw_SAGE50UK_Product:vw_SAGE50UK_Product_Update'' / ''

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 Accounts — those rows read records back from Zoho CRM as well as pushing. On Products, Products Update the SQL_Query names a view the same template’s CreateViewQuery does not create (vw_SAGE50UK_Product_Insert against vw_SAGE50UK_Product; vw_SAGE50UK_Product_Update against vw_SAGE50UK_Product), 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 columnEmits SFDCIDSource tables
vw_SAGE50UK_Accountinsert-onlySalesRep:, vwAccount:Commercient_ExternalKey, Commercient_ArCustomer_CodenoSF_ERP_Salesforce_Clone_SALES_LEDGER, SF_ERP_Salesforce_Clone_SALES_DEL_ADDR
vw_SAGE50UK_Customerinsert-onlyvwAccount:, vwCustomer:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeynoSF_ERP_Salesforce_Clone_SALES_LEDGER
vw_SAGE50UK_Addressinsert-onlyvwAccount:, vwCustomer:, vwAddress:Commercient_ExternalKey__c, ExternalKey, Commercient_ExternalKeynoSF_ERP_Salesforce_Clone_SALES_DEL_ADDR, SF_ERP_Salesforce_Clone_SALES_LEDGER
vw_SAGE50UK_Contactinsert-onlySalesRep:, vwAccount:, vw_SAGE50UK_Contact:, vw_SAGE50UK_Suppliers:, Pur:Commercient_ExternalKeynoSF_ERP_Salesforce_Clone_SALES_DEL_ADDR, SF_ERP_Salesforce_Clone_SALES_LEDGER, SF_ERP_Salesforce_Clone_PURCHASE_DEL_ADDR, SF_ERP_Salesforce_Clone_PURCHASE_LEDGER
vw_SAGE50UK_Productinsert-onlyvw_SAGE50UK_Product:Commercient_ExternalKey__c, Commercient_ExternalKeynoSF_ERP_Salesforce_Clone_STOCK
vw_SAGE50UK_Iteminsert-onlyvw_SAGE50UK_Product:, vwItem:Commercient_ExternalKey__c, Commercient_ExternalKeynoSF_ERP_Salesforce_Clone_STOCK
vw_SAGE50UK_SalesOrderHeaderinsert-onlyvwAccount:, vwCustomer:, vwSalesOrderHeader:Commercient_ExternalKey__c, Commercient_ExternalKeynoSF_ERP_Salesforce_Clone_SALES_ORDER, SF_ERP_Salesforce_Clone_SALES_LEDGER, SF_ERP_Salesforce_Clone_CURRENCY
vw_SAGE50UK_SalesOrderDetailinsert-onlyvwSalesOrderHeader:, vwItem:, vwSalesOrderDetail:Commercient_ExternalKey__c, Commercient_ExternalKeynoSF_ERP_Salesforce_Clone_SOP_ITEM
vw_SAGE50UK_InvoiceHeaderinsert-onlyvwAccount:, vwCustomer:, vw_InvoiceHeader:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeynoSF_ERP_Salesforce_Clone_INVOICE, SF_ERP_Salesforce_Clone_SALES_LEDGER, SF_ERP_Salesforce_Clone_CURRENCY
vw_SAGE50UK_InvoiceDetailinsert-onlyvw_InvoiceHeader:, vwItem:, vw_InvoiceDetail:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeynoSF_ERP_Salesforce_Clone_INVOICE_ITEM, SF_ERP_Salesforce_Clone_INVOICE
vw_SAGE50UK_Suppliersinsert-onlySalesRep:, vw_SAGE50UK_Suppliers:Commercient_ExternalKey__c, Commercient_ExternalKeyyesSF_ERP_Salesforce_Clone_PURCHASE_LEDGER
vw_SAGE50UK_Vendorinsert-onlyvw_SAGE50UK_Vendor:Commercient_ExternalKey__c, Commercient_ExternalKeynoSF_ERP_Salesforce_Clone_PURCHASE_LEDGER
vw_SAGE50UK_PurchaseOrderinsert-onlyvw_SAGE50UK_Suppliers:, vw_SAGE50UK_Vendor:, vw_SAGE50UK_PurchaseOrder:Commercient_ExternalKey__c, Commercient_ExternalKeynoSF_ERP_Salesforce_Clone_PURCHASE_ORDER, SF_ERP_Salesforce_Clone_SALES_LEDGER
vw_SAGE50UK_PurchaseOrderLineinsert-onlyvw_SAGE50UK_PurchaseOrder:, vw_SAGE50UK_Product:, vw_SAGE50UK_PurchaseOrderLine:Commercient_ExternalKey__c, Commercient_ExternalKeynoSF_ERP_Salesforce_Clone_POP_ITEM
vw_SAGE50UK_DSalesOrderinsert-onlyvw_SAGE50UK_Product:, vwAccount:, vw_SAGE50UK_Contact:, vw_SAGE50UK_DSalesOrder:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeynoSF_ERP_Salesforce_Clone_SOP_ITEM, SF_ERP_Salesforce_Clone_SALES_ORDER, SF_ERP_Salesforce_Clone_STOCK, SF_ERP_Salesforce_Clone_SALES_LEDGER, SF_ERP_Salesforce_Clone_SALES_DEL_ADDR
vw_SAGE50UK_DInvoiceinsert-onlyvw_SAGE50UK_Product:, vwAccount:, vw_SAGE50UK_DSalesOrder:, vw_SAGE50UK_Contact:, vw_SAGE50UK_DInvoice:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeynoSF_ERP_Salesforce_Clone_INVOICE_ITEM, SF_ERP_Salesforce_Clone_STOCK, SF_ERP_Salesforce_Clone_INVOICE, SF_ERP_Salesforce_Clone_SALES_ORDER, SF_ERP_Salesforce_Clone_SALES_LEDGER
vw_SAGE50UK_DPurchaseOrderinsert-onlyvw_SAGE50UK_Product:, vwAccount:, vw_SAGE50UK_Contact:, vw_SAGE50UK_Suppliers:, vw_SAGE50UK_DPurchaseOrder:, Pur:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeynoSF_ERP_Salesforce_Clone_POP_ITEM, SF_ERP_Salesforce_Clone_PURCHASE_ORDER, SF_ERP_Salesforce_Clone_STOCK, SF_ERP_Salesforce_Clone_SALES_DEL_ADDR, x
vw_SAGE50UK_Productinsert-onlyvw_SAGE50UK_Product:Commercient_ExternalKey__c, Commercient_ExternalKeynoSF_ERP_Salesforce_Clone_STOCK

4. Order of work

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

  • 0 — Users
  • 1 — Accounts
  • 2 — SAGE50UK Customer
  • 3 — Sage50 UK Address
  • 4 — Contacts
  • 5 — Products
  • 6 — Item Master
  • 7 — Sales Order Header
  • 8 — Sales Order Details
  • 9 — Invoice Header
  • 10 — Invoice Details
  • 11 — Suppliers, SAGE50UK Vendor
  • 12 — SAGE50UK Purchase Order
  • 13 — SAGE50UK PurchaseOrderLine
  • 14 — Sales Orders
  • 15 — Invoices
  • 16 — Purchase Order
  • 17 — Products Update

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_SAGE50UK_Account reads SalesRep:, vwAccount:; no template in this set writes SalesRep:, vwAccount:
  • vw_SAGE50UK_Customer reads vwAccount:, vwCustomer:; no template in this set writes vwAccount:, vwCustomer:
  • vw_SAGE50UK_Address reads vwAccount:, vwCustomer:, vwAddress:; no template in this set writes vwAccount:, vwCustomer:, vwAddress:
  • vw_SAGE50UK_Contact reads SalesRep:, vwAccount:, vw_SAGE50UK_Contact:, vw_SAGE50UK_Suppliers:, Pur:; no template in this set writes SalesRep:, vwAccount:, vw_SAGE50UK_Contact:, vw_SAGE50UK_Suppliers:
  • vw_SAGE50UK_Product reads vw_SAGE50UK_Product:; no template in this set writes vw_SAGE50UK_Product:
  • vw_SAGE50UK_Item reads vw_SAGE50UK_Product:, vwItem:; no template in this set writes vw_SAGE50UK_Product:, vwItem:
  • vw_SAGE50UK_SalesOrderHeader reads vwAccount:, vwCustomer:, vwSalesOrderHeader:; no template in this set writes vwAccount:, vwCustomer:, vwSalesOrderHeader:
  • vw_SAGE50UK_SalesOrderDetail reads vwSalesOrderHeader:, vwItem:, vwSalesOrderDetail:; no template in this set writes vwSalesOrderHeader:, vwItem:, vwSalesOrderDetail:
  • vw_SAGE50UK_InvoiceHeader reads vwAccount:, vwCustomer:, vw_InvoiceHeader:; no template in this set writes vwAccount:, vwCustomer:, vw_InvoiceHeader:
  • vw_SAGE50UK_InvoiceDetail reads vw_InvoiceHeader:, vwItem:, vw_InvoiceDetail:; no template in this set writes vw_InvoiceHeader:, vwItem:, vw_InvoiceDetail:
  • vw_SAGE50UK_Suppliers reads SalesRep:, vw_SAGE50UK_Suppliers:; no template in this set writes SalesRep:, vw_SAGE50UK_Suppliers:
  • vw_SAGE50UK_PurchaseOrder reads vw_SAGE50UK_Suppliers:, vw_SAGE50UK_Vendor:, vw_SAGE50UK_PurchaseOrder:; no template in this set writes vw_SAGE50UK_Suppliers:, vw_SAGE50UK_Vendor:, vw_SAGE50UK_PurchaseOrder:
  • vw_SAGE50UK_PurchaseOrderLine reads vw_SAGE50UK_PurchaseOrder:, vw_SAGE50UK_Product:, vw_SAGE50UK_PurchaseOrderLine:; no template in this set writes vw_SAGE50UK_PurchaseOrder:, vw_SAGE50UK_Product:, vw_SAGE50UK_PurchaseOrderLine:
  • vw_SAGE50UK_DSalesOrder reads vw_SAGE50UK_Product:, vwAccount:, vw_SAGE50UK_Contact:, vw_SAGE50UK_DSalesOrder:; no template in this set writes vw_SAGE50UK_Product:, vwAccount:, vw_SAGE50UK_Contact:, vw_SAGE50UK_DSalesOrder:
  • vw_SAGE50UK_DInvoice reads vw_SAGE50UK_Product:, vwAccount:, vw_SAGE50UK_DSalesOrder:, vw_SAGE50UK_Contact:, vw_SAGE50UK_DInvoice:; no template in this set writes vw_SAGE50UK_Product:, vwAccount:, vw_SAGE50UK_DSalesOrder:, vw_SAGE50UK_Contact:
  • vw_SAGE50UK_DPurchaseOrder reads vw_SAGE50UK_Product:, vwAccount:, vw_SAGE50UK_Contact:, vw_SAGE50UK_Suppliers:, vw_SAGE50UK_DPurchaseOrder:, Pur:; no template in this set writes vw_SAGE50UK_Product:, vwAccount:, vw_SAGE50UK_Contact:, vw_SAGE50UK_Suppliers:
  • vw_SAGE50UK_Product reads vw_SAGE50UK_Product:; no template in this set writes vw_SAGE50UK_Product:
  • vw_SAGE50UK_Vendor reads vw_SAGE50UK_Vendor:; no template in this set writes vw_SAGE50UK_Vendor:

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
AccountsAccounts31ACCOUNT_REFCommercient_ArCustomer_Code, ACCOUNT_REFCommercient_ExternalKey, ACCOUNT_REFSage_Account_Reference, CREDIT_POSITIONCredit_Position, STATUSAccount_Status
SAGE50UK Customersage50uk__SAGE50UK_Customer114ACCOUNT_REFCommercient_ExternalKey__c, NAMEName, ADDRESS_1Address_1, ADDRESS_2Address_2, ADDRESS_3Address_3
Sage50 UK Addresssage50uk__SAGE50UK_Address29REFERENCECommercient_ExternalKey__c, REFERENCEExternalKey, TAX_CODETax_Code, ADDRESS_TYPEAddress_Type, RECORD_DELETEDRecord_Deleted
ContactsContacts16REFERENCECommercient_ExternalKey, ACCOUNT_REFAccount_Name, CONTACT_NAMELast_Name, CONTACT_NAMEFirst_Name, E_MAILEmail
ProductsProducts18DESCRIPTIONProduct_Name, STOCK_CODEProduct_Code, STOCK_CODECommercient_ExternalKey__c, DESCRIPTIONDescription, INACTIVE_FLAGProduct_Active
Item Mastersage50uk__SAGE50UK_ITEM114DESCRIPTIONName, STOCK_CODECommercient_ExternalKey__c, WEB_PUBLISHWeb_Publish, WEB_SPECIALWeb_Special, DEPT_NUMBERDepartment_Number
Sales Order Headersage50uk__SAGE50UKSalesOrder_Header95ORDER_NUMBERCommercient_ExternalKey__c, DESPATCH_STATUS_CODEDispatch_Status_Code, ORDER_TYPE_CODEOrder_Type_Code, ALLOCATED_STATUS_CODEAllocated_Status_Code, COURIER_NUMBERCourier_Number
Sales Order Detailssage50uk__SAGE50UKSalesOrder_Detail52ITEM_NUMBER, JOB_NUMBER, ORDER_NUMBER, ITEMIDCommercient_ExternalKey__c, ITEM_NUMBER, JOB_NUMBER, ORDER_NUMBER, ITEMIDName, ITEM_NUMBER, JOB_NUMBER, ORDER_NUMBER, ITEMIDSAGE50UKSalesOrder_Detail__Name, ORDER_NUMBERlookupSalesOrderHeader, STOCK_CODElookupItem
Invoice Headersage50uk__SAGE50UK_Invoice_Header98INVOICE_NUMBERCommercient_ExternalKey__c, NAMEName, ACCOUNT_REFCustomer, ACCOUNT_REFAccount, CURRENCYCurrency
Invoice Detailssage50uk__SAGE50UK_Invoice_Detail48INVOICE_NUMBERSAGE50UK_Invoice_Header, ITEM_NUMBERITEM, INVOICE_NUMBER, ITEM_NUMBER, ITEMIDSAGE50UK_Invoice_Detail__Name, INVOICE_NUMBER, ITEM_NUMBER, ITEMIDName, INVOICE_NUMBER, ITEM_NUMBER, ITEMIDExternalKey
SuppliersVendors17ACCOUNT_REF, NAMECommercient_ExternalKey__c, NAMEVendor_Name, ACCOUNT_REFSage_Account_Ref, CONTACT_NAMEContact_Name, E_MAILEmail
SAGE50UK Vendorsage50uk__SAGE50UK_Vendor126ACCOUNT_REFCommercient_ExternalKey__c, NAMEName, ACCOUNT_ON_HOLDAccount_On_Hold, ACCOUNT_REFAccount_Ref, ADDRESS_1Address_1
SAGE50UK Purchase Ordersage50uk__SAGE50UK_Pur_Order_Header83ORDER_NUMBERCommercient_ExternalKey__c, ACCOUNT_REFSAGE0UK_Vendor, ACCOUNT_REFSupplier__c, ORDER_NUMBERName, ADDRESS_1Address_1
SAGE50UK PurchaseOrderLinesage50uk__SAGE50UK_Pur_Order_Detail54ORDER_NUMBER, ITEMID, ITEM_NUMBER, JOB_NUMBERCommercient_ExternalKey__c, STOCK_CODEProducts_R, ORDER_NUMBERSAGE50UK_Purchase_Order_Header, ORDER_NUMBER, ITEMID, ITEM_NUMBER, JOB_NUMBERName, ADD_DISC_RATEAdd_Disc_Rate
Products UpdateProducts18DESCRIPTIONProduct_Name, STOCK_CODEProduct_Code, STOCK_CODECommercient_ExternalKey__c, DESCRIPTIONDescription, INACTIVE_FLAGProduct_Active

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:

  • vwAccount:
  • vwCustomer:
  • vwAddress:
  • vw_SAGE50UK_Contact:
  • vw_SAGE50UK_Product:
  • vwItem:
  • vwSalesOrderHeader:
  • vwSalesOrderDetail:
  • vw_InvoiceHeader:
  • vw_InvoiceDetail:
  • vw_SAGE50UK_Suppliers:
  • vw_SAGE50UK_PurchaseOrder:
  • vw_SAGE50UK_PurchaseOrderLine:
  • vw_SAGE50UK_DSalesOrder:
  • vw_SAGE50UK_DInvoice:
  • vw_SAGE50UK_DPurchaseOrder:
  • SalesRep:
  • vw_SAGE50UK_Vendor:

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 50 UK → 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.