Source ERP · 23 of 27

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

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

CRMPro → Zoho CRM — Sage 50 US: 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-us.md, and that skill’s ERP table is what points at it. What follows is only what the shipped Sage 50 US → 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
SAGE50US ARTermThe templates push sage50ustozoho__SAGE50US_ARTerm to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50ustozoho__SAGE50US_ARTermSF_ERP_Salesforce_Clone_GENERAL_AR
SAGE50US SalesPersonThe templates push sage50ustozoho__SAGE50US_SalesPerson to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50ustozoho__SAGE50US_SalesPersonSF_ERP_Salesforce_Clone_Employee
AccountsThe templates push Accounts to Zoho CRM. New records are created and existing ones updated; none are deleted.AccountsSF_ERP_Salesforce_Clone_Customers, SF_ERP_Salesforce_Clone_Address
SAGE50US CustomerThe templates push sage50ustozoho__SAGE50US_Customer to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50ustozoho__SAGE50US_CustomerSF_ERP_Salesforce_Clone_Customers
ProductsThe templates push Products to Zoho CRM. New records are created and existing ones updated; none are deleted.ProductsSF_ERP_Salesforce_Clone_LineItem, SF_ERP_Salesforce_Clone_Vendors, SF_ERP_Salesforce_Clone_InventoryCosts, SF_ERP_Salesforce_Clone_JrnlRow
SAGE50US SalesOrderHeaderThe templates push sage50ustozoho__SAGE50US_SalesOrderHeader to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50ustozoho__SAGE50US_SalesOrderHeaderSF_ERP_Salesforce_Clone_JrnlHDr
SAGE50UK ItemMasterThe templates push sage50ustozoho__SAGE50US_Item_Master to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50ustozoho__SAGE50US_Item_MasterSF_ERP_Salesforce_Clone_LineItem
SAGE50US SalesOrderDetailThe templates push sage50ustozoho__SAGE50US_SalesOrderDetail to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50ustozoho__SAGE50US_SalesOrderDetailSF_ERP_Salesforce_Clone_JrnlRow, SF_ERP_Salesforce_Clone_LineItem
SAGE50US SalesInvoiceHeadThe templates push sage50ustozoho__SAGE50US_SalesInvoiceHead to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50ustozoho__SAGE50US_SalesInvoiceHeadSF_ERP_Salesforce_Clone_JrnlHDr
SAGE50US SalesInvoiceDetaThe templates push sage50ustozoho__SAGE50US_SalesInvoiceDeta to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50ustozoho__SAGE50US_SalesInvoiceDetaSF_ERP_Salesforce_Clone_JrnlRow, SF_ERP_Salesforce_Clone_LineItem
SAGE50US AddressThe templates push sage50ustozoho__SAGE50US_Address to Zoho CRM. New records are created and existing ones updated; none are deleted.sage50ustozoho__SAGE50US_AddressSF_ERP_Salesforce_Clone_Address
ContactsThe templates push Contacts to Zoho CRM. New records are created and existing ones updated; none are deleted.ContactsSF_ERP_Salesforce_Clone_Contacts, SF_ERP_Salesforce_Clone_Customers, SF_ERP_Salesforce_Clone_Address
PricebooksThe templates push Price_Books to Zoho CRM. New records are created and existing ones updated; none are deleted.Price_Books
Product PricebooksThe templates push Products:Price_Books to Zoho CRM. New records are created and existing ones updated; none are deleted.Products:Price_BooksSF_ERP_Salesforce_Clone_LineItem
Sales OrderThe templates push Sales_Orders to Zoho CRM. New records are created and existing ones updated; none are deleted.Sales_OrdersSF_ERP_Salesforce_Clone_JrnlRow, SF_ERP_Salesforce_Clone_LineItem, SF_ERP_Salesforce_Clone_JrnlHDr, SF_ERP_Salesforce_Clone_Customers, SF_ERP_Salesforce_Clone_Address, x
InvoicesThe templates push Invoices to Zoho CRM. New records are created and existing ones updated; none are deleted.InvoicesSF_ERP_Salesforce_Clone_JrnlRow, SF_ERP_Salesforce_Clone_LineItem, SF_ERP_Salesforce_Clone_JrnlHDr, SF_ERP_Salesforce_Clone_Customers, SF_ERP_Salesforce_Clone_Address, x
CRM OwnershipThe templates push users to Zoho CRM. New records are created and existing ones updated; none are deleted.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
UsersusersCommercient_ExternalKey0SalesRep:SELECT 1'' / ''
SAGE50US ARTermsage50ustozoho__SAGE50US_ARTermCommercient_ExternalKey1vwARTerms:vw_SAGE50US_ARTermssage50ustozoho__ / ''
SAGE50US SalesPersonsage50ustozoho__SAGE50US_SalesPersonCommercient_ExternalKey2vwSalesPerson:vw_SAGE50US_SalesPersonsage50ustozoho__ / ''
AccountsAccountsCommercient_ArCustomer_Code3vw_SAGE50US_Account:vw_SAGE50US_Account'' / ''
SAGE50US Customersage50ustozoho__SAGE50US_CustomerCommercient_ExternalKey4vwCustomer:vw_SAGE50US_Customersage50ustozoho__ / ''
ProductsProductsCommercient_ExternalKey5vwProduct:vw_SAGE50US_Product'' / ''
SAGE50US SalesOrderHeadersage50ustozoho__SAGE50US_SalesOrderHeaderCommercient_ExternalKey6vwSalesOrderHeader:vw_SAGE50US_SalesOrderHeadersage50ustozoho__ / ''
SAGE50UK ItemMastersage50ustozoho__SAGE50US_Item_MasterCommercient_ExternalKey6vw_SAGE50US_ItemMaster:vw_SAGE50US_ItemMastersage50ustozoho__ / ''
SAGE50US SalesOrderDetailsage50ustozoho__SAGE50US_SalesOrderDetailCommercient_ExternalKey7vwSalesOrderDetail:vw_SAGE50US_SalesOrderDetailsage50ustozoho__ / ''
SAGE50US SalesInvoiceHeadsage50ustozoho__SAGE50US_SalesInvoiceHeadCommercient_ExternalKey8vwSalesInvoiceHeader:vw_SAGE50US_SalesInvoiceHeadersage50ustozoho__ / ''
SAGE50US SalesInvoiceDetasage50ustozoho__SAGE50US_SalesInvoiceDetaCommercient_ExternalKey9vwSaleInvoiceDetail:vw_SAGE50US_SalesInvoiceDetailsage50ustozoho__ / ''
SAGE50US Addresssage50ustozoho__SAGE50US_AddressCommercient_ExternalKey10vwAddress:vw_SAGE50US_Addresssage50ustozoho__ / ''
ContactsContactsCommercient_ExternalKey12vw_SAGE50US_Contact:vw_SAGE50US_Contact'' / ''
PricebooksPrice_BooksCommercient_ExternalKey13vw_Pricebooks:vw_SAGE50US_Pricebooks'' / ''
Product PricebooksProducts:Price_BooksCommercient_ExternalKey14vw_ProductPriceBook:vw_SAGE50US_ProductPriceList'' / ''
Sales OrderSales_OrdersCommercient_ExternalKey15vw_SAGE50US_DSalesOrder:vw_SAGE50US_DSalesOrder'' / ''
InvoicesInvoicesCommercient_ExternalKey16vw_SAGE50US_DInvoice:vw_SAGE50US_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 Accounts, Products, Contacts — those rows read records back from Zoho CRM as well as pushing.

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_SAGE50US_ARTermsinsert-onlyvwARTerms:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_GENERAL_AR
vw_SAGE50US_SalesPersonvwSalesPerson:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_Employee
vw_SAGE50US_Accountinsert-onlyvw_SAGE50US_Account:Commercient_ArCustomer_CodeSF_ERP_Salesforce_Clone_Customers, SF_ERP_Salesforce_Clone_Address
vw_SAGE50US_Customerinsert-onlyvw_SAGE50US_Account:, vwSalesPerson:, vwCustomer:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_Customers
vw_SAGE50US_Productinsert-onlyvwProduct:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_LineItem, SF_ERP_Salesforce_Clone_Vendors, SF_ERP_Salesforce_Clone_InventoryCosts, SF_ERP_Salesforce_Clone_JrnlRow
vw_SAGE50US_SalesOrderHeaderinsert-onlyvw_SAGE50US_Account:, vwCustomer:, vwSalesPerson:, vwSalesOrderHeader:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_JrnlHDr
vw_SAGE50US_ItemMasterinsert-onlyvwProduct:, vw_SAGE50US_ItemMaster:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_LineItem
vw_SAGE50US_SalesOrderDetailinsert-onlyvwCustomer:, vwSalesOrderHeader:, vwProduct:, vw_SAGE50US_ItemMaster:, vwSalesOrderDetail:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_JrnlRow, SF_ERP_Salesforce_Clone_LineItem
vw_SAGE50US_SalesInvoiceHeaderinsert-onlyvw_SAGE50US_Account:, vwCustomer:, vwSalesOrderHeader:, vwSalesPerson:, vwSalesInvoiceHeader:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_JrnlHDr
vw_SAGE50US_SalesInvoiceDetailinsert-onlyvwCustomer:, vwSalesInvoiceHeader:, vwProduct:, vw_SAGE50US_ItemMaster:, vwSaleInvoiceDetail:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_JrnlRow, SF_ERP_Salesforce_Clone_LineItem
vw_SAGE50US_Addressinsert-onlyvw_SAGE50US_Account:, vwCustomer:, vwAddress:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_Address
vw_SAGE50US_Contactinsert + updatevw_SAGE50US_Account:, vw_SAGE50US_Contact:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_Contacts, SF_ERP_Salesforce_Clone_Customers, SF_ERP_Salesforce_Clone_Address
vw_SAGE50US_ProductPriceListinsert-onlyvwProduct:, vw_Pricebooks:, vw_ProductPriceBook:Commercient_ExternalKey, ExternalKey__cSF_ERP_Salesforce_Clone_LineItem
vw_SAGE50US_DSalesOrderinsert-onlyvwProduct:, vw_SAGE50US_Account:, vw_SAGE50US_DSalesOrder:Commercient_ExternalKeySF_ERP_Salesforce_Clone_JrnlRow, SF_ERP_Salesforce_Clone_LineItem, SF_ERP_Salesforce_Clone_JrnlHDr, SF_ERP_Salesforce_Clone_Customers, SF_ERP_Salesforce_Clone_Address
vw_SAGE50US_DInvoiceinsert-onlyvwProduct:, vw_SAGE50US_Account:, vw_SAGE50US_DSalesOrder:, vw_SAGE50US_DInvoice:Commercient_ExternalKeySF_ERP_Salesforce_Clone_JrnlRow, SF_ERP_Salesforce_Clone_LineItem, SF_ERP_Salesforce_Clone_JrnlHDr, SF_ERP_Salesforce_Clone_Customers, SF_ERP_Salesforce_Clone_Address

4. Order of work

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

  • 0 — Users
  • 1 — SAGE50US ARTerm
  • 2 — SAGE50US SalesPerson
  • 3 — Accounts
  • 4 — SAGE50US Customer
  • 5 — Products
  • 6 — SAGE50US SalesOrderHeader, SAGE50UK ItemMaster
  • 7 — SAGE50US SalesOrderDetail
  • 8 — SAGE50US SalesInvoiceHead
  • 9 — SAGE50US SalesInvoiceDeta
  • 10 — SAGE50US Address
  • 12 — Contacts
  • 13 — Pricebooks
  • 14 — Product Pricebooks
  • 15 — Sales Order
  • 16 — 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_SAGE50US_ARTerms reads vwARTerms:; no template in this set writes vwARTerms:
  • vw_SAGE50US_SalesPerson reads vwSalesPerson:; no template in this set writes vwSalesPerson:
  • vw_SAGE50US_Account reads vw_SAGE50US_Account:; no template in this set writes vw_SAGE50US_Account:
  • vw_SAGE50US_Customer reads vw_SAGE50US_Account:, vwSalesPerson:, vwCustomer:; no template in this set writes vw_SAGE50US_Account:, vwSalesPerson:, vwCustomer:
  • vw_SAGE50US_Product reads vwProduct:; no template in this set writes vwProduct:
  • vw_SAGE50US_SalesOrderHeader reads vw_SAGE50US_Account:, vwCustomer:, vwSalesPerson:, vwSalesOrderHeader:; no template in this set writes vw_SAGE50US_Account:, vwCustomer:, vwSalesPerson:, vwSalesOrderHeader:
  • vw_SAGE50US_ItemMaster reads vwProduct:, vw_SAGE50US_ItemMaster:; no template in this set writes vwProduct:, vw_SAGE50US_ItemMaster:
  • vw_SAGE50US_SalesOrderDetail reads vwCustomer:, vwSalesOrderHeader:, vwProduct:, vw_SAGE50US_ItemMaster:, vwSalesOrderDetail:; no template in this set writes vwCustomer:, vwSalesOrderHeader:, vwProduct:, vw_SAGE50US_ItemMaster:
  • vw_SAGE50US_SalesInvoiceHeader reads vw_SAGE50US_Account:, vwCustomer:, vwSalesOrderHeader:, vwSalesPerson:, vwSalesInvoiceHeader:; no template in this set writes vw_SAGE50US_Account:, vwCustomer:, vwSalesOrderHeader:, vwSalesPerson:
  • vw_SAGE50US_SalesInvoiceDetail reads vwCustomer:, vwSalesInvoiceHeader:, vwProduct:, vw_SAGE50US_ItemMaster:, vwSaleInvoiceDetail:; no template in this set writes vwCustomer:, vwSalesInvoiceHeader:, vwProduct:, vw_SAGE50US_ItemMaster:
  • vw_SAGE50US_Address reads vw_SAGE50US_Account:, vwCustomer:, vwAddress:; no template in this set writes vw_SAGE50US_Account:, vwCustomer:, vwAddress:
  • vw_SAGE50US_Contact reads vw_SAGE50US_Account:, vw_SAGE50US_Contact:; no template in this set writes vw_SAGE50US_Account:, vw_SAGE50US_Contact:
  • vw_SAGE50US_ProductPriceList reads vwProduct:, vw_Pricebooks:, vw_ProductPriceBook:; no template in this set writes vwProduct:, vw_Pricebooks:, vw_ProductPriceBook:
  • vw_SAGE50US_DSalesOrder reads vwProduct:, vw_SAGE50US_Account:, vw_SAGE50US_DSalesOrder:; no template in this set writes vwProduct:, vw_SAGE50US_Account:, vw_SAGE50US_DSalesOrder:
  • vw_SAGE50US_DInvoice reads vwProduct:, vw_SAGE50US_Account:, vw_SAGE50US_DSalesOrder:, vw_SAGE50US_DInvoice:; no template in this set writes vwProduct:, vw_SAGE50US_Account:, vw_SAGE50US_DSalesOrder:, vw_SAGE50US_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
SAGE50US ARTermsage50ustozoho__SAGE50US_ARTerm87GUIDExternalKey, GUIDCommercient_ExternalKey__c, GUIDGUID, MerchantKeyLengthMerchant_Key_Length, AgeByDueDateAge_By_Due_Date
SAGE50US SalesPersonsage50ustozoho__SAGE50US_SalesPerson103EmpRecordNumberExternalKey, EmpRecordNumberCommercient_ExternalKey__c, EmployeeIDSAGE50US SalesPerson__Name, EmployeeIDName, EmployeeGUIDEmployee_GUID
AccountsAccounts20CustomerRecordNumberCommercient_ArCustomer_Code, CustomerIDAccount_Smart_ID, Customer_Bill_NameAccount_Name, CustomerRecordNumberAccount_Number, AddressLine1Billing_Street
SAGE50US Customersage50ustozoho__SAGE50US_Customer93GUIDGUID, Customer_Bill_NameName, Acct.SFDCIDAccount, SalesTimeStamp.SFDCIDSales_Person, TimeStampTimeStamp
ProductsProducts17ItemIDCommercient_ExternalKey__c, ItemIDProduct_Name, ItemIDProduct_Code, SalesDescriptionDescription, ItemIsInactiveProduct_Active
SAGE50US SalesOrderHeadersage50ustozoho__SAGE50US_SalesOrderHeader85CustVendIdAccounts, CustVendIdCustomer, EmpRecordNumberSales_Person, PostOrderSAGE50US_SalesOrderHeader__Name, ReferenceName
SAGE50UK ItemMastersage50ustozoho__SAGE50US_Item_Master99ItemIDCommercient_ExternalKey__c, ItemIDName, COGSAcctRecordNumberCOGS_Account_Record_Number, CategoryCategory, CostMethodCost_Method
SAGE50US SalesOrderDetailsage50ustozoho__SAGE50US_SalesOrderDetail57CustomerRecordNumberCustomer, PostOrderSales_Order_Header, ItemRecordNumberItem_Master, ItemIDProducts__c, RowNumber, RowDescriptionSAGE50US_SalesOrderDetail__Name
SAGE50US SalesInvoiceHeadsage50ustozoho__SAGE50US_SalesInvoiceHead90CustVendIdAccount, CustVendIdCustomer, EmpRecordNumberSales_Person, INV_POSOOrderNumberSales_Order_Header, Referencestatus
SAGE50US SalesInvoiceDetasage50ustozoho__SAGE50US_SalesInvoiceDeta41rGUIDCommercient_ExternalKey__c, POSOIsClosedPO_SO_Is_Closed, UsedForReimbExpUsedForReimbExp, POCreatedPO_Created, HasSerialNumbersHas_Serial_Numbers
SAGE50US Addresssage50ustozoho__SAGE50US_Address19CustomerRecordNumberAccount, CustomerRecordNumberCustomer, AddressRecordNumberExternalKey, AddressRecordNumberCommercient_ExternalKey__c, AddressTypeNumberAddress_Type_Desc
ContactsContacts14SFDCIDAccount_Name, RecordNumberRecordNumber, GuidGuid, GuidCommercient_ExternalKey__c, LastNameLast_Name
PricebooksPrice_Books2ExternalKeyCommercient_ExternalKey, NameName
Product PricebooksProducts:Price_Books6ItemIDCommercient_ExternalKey, ItemIDPRODUCT_ID, PricebookNameZOHO_PriceBookID, PriceAmountlist_price, PricebookNamePricebookName

6. Community templates

The catalogue carries 55 community templates for this pair. A community template is authored in a tenant rather than shipped with the product, and it imports the same way as any other. Its own names, notes, field mapping and SQL are tenant content, so what this section states is what the set amounts to: how many templates there are, what they default to doing, which destination objects they write and which groups they fall in. They are not part of the shipped set described above.

  • Templates: 55
  • Default operations: insert on 55, update on 55, delete on 55
  • Marked circular-sync: 0
  • Licence groups they span: 5
  • Destination objects: Accounts, sage50ustozoho__SAGE50US_Address, sage50ustozoho__SAGE50US_Customer, sage50ustozoho__SAGE50US_SalesInvoiceDeta, sage50ustozoho__SAGE50US_SalesInvoiceHead, sage50ustozoho__SAGE50US_SalesOrderDetail, sage50ustozoho__SAGE50US_SalesOrderHeader, sage50ustozoho__SAGE50US_SalesPerson, Contacts, Products, sage50ustozoho__SAGE50US_ARTerm, sage50ustozoho__SAGE50US_Item_Master, Price_Books, Quotes, Invoices, Sales_Orders, Vendors and 3 custom objects
  • Object display names: SAGE50US Address, SAGE50US Customer, SAGE50US SalesOrderDetail, SAGE50US SalesOrderHeader, SAGE50US SalesPerson, Accounts, Contacts, Products, SAGE50US ARTerm, SAGE50US SalesInvoiceDeta, SAGE50US SalesInvoiceHead, Pricebooks, 11 more and a further template
  • Template groups: CRM Order and Line, Account, CRM Quote and Line

A community template is imported the way a shipped one is, and the same rules apply to what it creates: read the process it creates with crmpro_get_process, its mapping with crmpro_field_mapping, and the view it selects from, before activating it.

7. 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:

  • vwARTerms:
  • vwSalesPerson:
  • vw_SAGE50US_Account:
  • vwCustomer:
  • vwProduct:
  • vwSalesOrderHeader:
  • vw_SAGE50US_ItemMaster:
  • vwSalesOrderDetail:
  • vwSalesInvoiceHeader:
  • vwSaleInvoiceDetail:
  • vwAddress:
  • vw_SAGE50US_Contact:
  • vw_Pricebooks:
  • vw_ProductPriceBook:
  • vw_SAGE50US_DSalesOrder:
  • vw_SAGE50US_DInvoice:
  • SalesRep:

8. 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 US → 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.