Source ERP · 19 of 27

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

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

CRMPro → Zoho CRM — Sage 200 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-200-uk.md, and that skill’s ERP table is what points at it. What follows is only what the shipped Sage 200 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_SLCustomerAccount, SF_ERP_Salesforce_Clone_SLCustomerLocation, SF_ERP_Salesforce_Clone_custdeliveryaddress
Child AccountsThe templates push Accounts to Zoho CRM. New records are created and existing ones updated; none are deleted.AccountsSF_ERP_Salesforce_Clone_custdeliveryaddress, SF_ERP_Salesforce_Clone_SLCustomerLocation
Sage200UK CustomersThe templates push commercientsage200uk__Sage200UK_Customers to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientsage200uk__Sage200UK_CustomersSF_ERP_Salesforce_Clone_SLCustomerAccount
Sage200UK AddressThe templates push commercientsage200uk__Sage200UK_Address to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientsage200uk__Sage200UK_AddressSF_ERP_Salesforce_Clone_SLCustomerLocation
ContactsThe templates push Contacts to Zoho CRM. New records are created and existing ones updated; none are deleted.ContactsSF_ERP_Salesforce_Clone_SLCustomerContact, SF_ERP_Salesforce_Clone_SLCustomerLocation, SF_ERP_Salesforce_Clone_SLCustomerAccount, SF_ERP_Salesforce_Clone_SLCustomerContactValue, SF_ERP_Salesforce_Clone_custdeliveryaddress, SF_ERP_Salesforce_Clone_SOPDocDelAddress
ProductsThe templates push Products to Zoho CRM. New records are created and existing ones updated; none are deleted.ProductsSF_ERP_Salesforce_Clone_stockitem, SF_ERP_Salesforce_Clone_stockitemprice, SF_ERP_Salesforce_Clone_ProductGroup
QuotesThe templates push Quotes to Zoho CRM. New records are created and existing ones updated; none are deleted.QuotesSF_ERP_Salesforce_Clone_soporderreturnline, SF_ERP_Salesforce_Clone_stockitem, SF_ERP_Salesforce_Clone_soporderreturn, SF_ERP_Salesforce_Clone_SLCustomerLocation, SF_ERP_Salesforce_Clone_SOPDocDelAddress, x
PriceBooksThe templates push Price_Books to Zoho CRM. New records are created and existing ones updated; none are deleted.Price_BooksSF_ERP_Salesforce_Clone_priceband
Prodcut PricebookThe 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_stockitem, SF_ERP_Salesforce_Clone_stockitemprice, SF_ERP_Salesforce_Clone_priceband
SalesOrdersThe templates push Sales_Orders to Zoho CRM. New records are created and existing ones updated; none are deleted.Sales_OrdersSF_ERP_Salesforce_Clone_soporderreturnline, SF_ERP_Salesforce_Clone_stockitem, SF_ERP_Salesforce_Clone_soporderreturn, SF_ERP_Salesforce_Clone_SLCustomerLocation, SF_ERP_Salesforce_Clone_SOPDocDelAddress, x
Sage200UK ItemThe templates push commercientsage200uk__Sage200UK_Item to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientsage200uk__Sage200UK_ItemSF_ERP_Salesforce_Clone_stockitem
Sage200UK WarehouseThe templates push commercientsage200uk__Sage200UK_Warehouse to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientsage200uk__Sage200UK_WarehouseSF_ERP_Salesforce_Clone_warehouse
Sage200UK Warehouse ItemThe templates push commercientsage200uk__Sage200UK_Warehouse_Item to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientsage200uk__Sage200UK_Warehouse_ItemSF_ERP_Salesforce_Clone_warehouseitem, SF_ERP_Salesforce_Clone_warehouse, SF_ERP_Salesforce_Clone_stockitem
Sage200UK Sales Order HeaderThe templates push commercientsage200uk__Sage200UK_SalesOrderHeadr to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientsage200uk__Sage200UK_SalesOrderHeadrSF_ERP_Salesforce_Clone_soporderreturn, SF_ERP_Salesforce_Clone_SOPDocDelAddress
Sage200UK SalesOrderDetailThe templates push commercientsage200uk__Sage200UK_SalesOrdrDetail to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientsage200uk__Sage200UK_SalesOrdrDetailSF_ERP_Salesforce_Clone_soporderreturnline, SF_ERP_Salesforce_Clone_stockitem
Sage200UK InvoiceHeaderThe templates push commercientsage200uk__Sage200UK_InvoiceHeader to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientsage200uk__Sage200UK_InvoiceHeaderSF_ERP_Salesforce_Clone_sopinvoicecredit
Sage200UK InvoiceDetailThe templates push commercientsage200uk__Sage200UK_InvoiceDetail to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientsage200uk__Sage200UK_InvoiceDetailSF_ERP_Salesforce_Clone_sopinvoicecreditline, SF_ERP_Salesforce_Clone_sopinvoicecredit, SF_ERP_Salesforce_Clone_stockitem

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
AccountsAccountsCommercient_Code1vwAccount:vw_SAGE200UK_Account'' / ''
Child AccountsAccountsCommercient_ArCustomer_Code2vwAccount:vw_SAGE200UK_ChildAccount'' / ''
Sage200UK Customerscommercientsage200uk__Sage200UK_CustomersCommercient_ExternalKey3vwCustomer:vw_SAGE200UK_Customercommercientsage200uk__ / __c
Sage200UK Addresscommercientsage200uk__Sage200UK_AddressCommercient_ExternalKey4vwAddress:vw_SAGE200UK_Addresscommercientsage200uk__ / __c
ContactsContactsCommercient_ExternalKey5vw_SAGE200UK_Contacts:vw_SAGE200UK_Contacts'' / ''
ProductsProductsCommercient_ExternalKey6vw_SAGE200UK_Product:vw_SAGE200UK_Product'' / ''
QuotesQuotesCommercient_ExternalKey7vw_SAGE200UK_DQuotes:vw_SAGE200UK_DQuotes'' / ''
PriceBooksPrice_BooksCommercient_ExternalKey7vw_SAGE200UK_Pricebook:vw_SAGE200UK_Pricebook'' / ''
Prodcut PricebookProducts:Price_BooksCommercient_ExternalKey8vw_SAGE200UK_ProductPriceBook:vw_SAGE200UK_ProductPriceBook'' / ''
SalesOrdersSales_OrdersCommercient_ExternalKey8vw_SAGE200UK_DSalesOrder:vw_SAGE200UK_DSalesOrder'' / ''
Sage200UK Itemcommercientsage200uk__Sage200UK_ItemCommercient_ExternalKey8vw_SAGE200UK_Item:vw_SAGE200UK_Itemcommercientsage200uk__ / __c
Sage200UK Warehousecommercientsage200uk__Sage200UK_WarehouseCommercient_ExternalKey9vw_SAGE200UK_warehouse:vw_SAGE200UK_warehousecommercientsage200uk__ / __c
Sage200UK Warehouse Itemcommercientsage200uk__Sage200UK_Warehouse_ItemCommercient_ExternalKey10vw_SAGE200UK_WarehouseItem:vw_SAGE200UK_WarehouseItemcommercientsage200uk__ / __c
Sage200UK Sales Order Headercommercientsage200uk__Sage200UK_SalesOrderHeadrCommercient_ExternalKey12vwSalesOrderHeader:vw_SAGE200UK_SalesOrderHeadercommercientsage200uk__ / __c
Sage200UK SalesOrderDetailcommercientsage200uk__Sage200UK_SalesOrdrDetailCommercient_ExternalKey13vw_SAGE200UK_SalesOrderDetail:vw_SAGE200UK_SalesOrderDetailcommercientsage200uk__ / __c
Sage200UK InvoiceHeadercommercientsage200uk__Sage200UK_InvoiceHeaderCommercient_ExternalKey14vw_SAGE200UK_InvoiceHeader:vw_SAGE200UK_InvoiceHeadercommercientsage200uk__ / __c
Sage200UK InvoiceDetailcommercientsage200uk__Sage200UK_InvoiceDetailCommercient_ExternalKey15vw_SAGE200UK_InvoiceDetail:vw_SAGE200UK_InvoiceDetailcommercientsage200uk__ / __c

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.

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_SAGE200UK_Accountinsert-onlyvwAccount:Commercient_CodeSF_ERP_Salesforce_Clone_SLCustomerAccount, SF_ERP_Salesforce_Clone_SLCustomerLocation, SF_ERP_Salesforce_Clone_custdeliveryaddress
vw_SAGE200UK_ChildAccountinsert-onlyvwAccount:Commercient_ArCustomer_CodeSF_ERP_Salesforce_Clone_custdeliveryaddress, SF_ERP_Salesforce_Clone_SLCustomerLocation
vw_SAGE200UK_Customerinsert-onlyvwAccount:, vwCustomer:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_SLCustomerAccount
vw_SAGE200UK_Addressinsert-onlyvwAccount:, vwCustomer:, vwAddress:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_SLCustomerLocation
vw_SAGE200UK_Contactsinsert-onlyvwAccount:, vwCustomer:, vw_SAGE200UK_Contacts:SF_ERP_Salesforce_Clone_SLCustomerContact, SF_ERP_Salesforce_Clone_SLCustomerLocation, SF_ERP_Salesforce_Clone_SLCustomerAccount, SF_ERP_Salesforce_Clone_SLCustomerContactValue, SF_ERP_Salesforce_Clone_custdeliveryaddress
vw_SAGE200UK_Productinsert-onlyvw_SAGE200UK_Product:Commercient_ExternalKeySF_ERP_Salesforce_Clone_stockitem, SF_ERP_Salesforce_Clone_stockitemprice, SF_ERP_Salesforce_Clone_ProductGroup
vw_SAGE200UK_DQuotesinsert-onlyvw_SAGE200UK_Product:, vwAccount:, vw_SAGE200UK_DQuotes:Commercient_ExternalKeySF_ERP_Salesforce_Clone_soporderreturnline, SF_ERP_Salesforce_Clone_stockitem, SF_ERP_Salesforce_Clone_soporderreturn, SF_ERP_Salesforce_Clone_SLCustomerLocation, SF_ERP_Salesforce_Clone_SOPDocDelAddress
vw_SAGE200UK_Pricebookinsert + updatevw_SAGE200UK_Pricebook:SF_ERP_Salesforce_Clone_priceband
vw_SAGE200UK_ProductPriceBookinsert-onlyvw_SAGE200UK_Pricebook:, vw_SAGE200UK_Product:, vw_SAGE200UK_ProductPriceBook:Commercient_ExternalKeySF_ERP_Salesforce_Clone_stockitem, SF_ERP_Salesforce_Clone_stockitemprice, SF_ERP_Salesforce_Clone_priceband
vw_SAGE200UK_DSalesOrderinsert-onlyvw_SAGE200UK_Product:, vwAccount:, vw_SAGE200UK_DSalesOrder:Commercient_ExternalKeySF_ERP_Salesforce_Clone_soporderreturnline, SF_ERP_Salesforce_Clone_stockitem, SF_ERP_Salesforce_Clone_soporderreturn, SF_ERP_Salesforce_Clone_SLCustomerLocation, SF_ERP_Salesforce_Clone_SOPDocDelAddress
vw_SAGE200UK_Iteminsert-onlyvw_SAGE200UK_Product:, vw_SAGE200UK_Item:Commercient_ExternalKey__c, ExternalKey, Commercient_ExternalKeySF_ERP_Salesforce_Clone_stockitem
vw_SAGE200UK_warehouseinsert + updatevw_SAGE200UK_warehouse:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_warehouse
vw_SAGE200UK_WarehouseIteminsert-onlyvw_SAGE200UK_Product:, vw_SAGE200UK_Item:, vw_SAGE200UK_warehouse:, vw_SAGE200UK_WarehouseItem:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_warehouseitem, SF_ERP_Salesforce_Clone_warehouse, SF_ERP_Salesforce_Clone_stockitem
vw_SAGE200UK_SalesOrderHeaderinsert-onlyvwAccount:, vwCustomer:, vw_SAGE200UK_Contacts:, vwSalesOrderHeader:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_soporderreturn, SF_ERP_Salesforce_Clone_SOPDocDelAddress
vw_SAGE200UK_SalesOrderDetailinsert-onlyvw_SAGE200UK_Item:, vwSalesOrderHeader:, vw_SAGE200UK_SalesOrderDetail:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_soporderreturnline, SF_ERP_Salesforce_Clone_stockitem
vw_SAGE200UK_InvoiceHeaderinsert-onlyvwAccount:, vwCustomer:, vw_SAGE200UK_InvoiceHeader:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_sopinvoicecredit
vw_SAGE200UK_InvoiceDetailinsert-onlyvw_SAGE200UK_InvoiceHeader:, vw_SAGE200UK_InvoiceDetail:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_sopinvoicecreditline, SF_ERP_Salesforce_Clone_sopinvoicecredit, SF_ERP_Salesforce_Clone_stockitem

4. Order of work

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

  • 1 — Accounts
  • 2 — Child Accounts
  • 3 — Sage200UK Customers
  • 4 — Sage200UK Address
  • 5 — Contacts
  • 6 — Products
  • 7 — Quotes, PriceBooks
  • 8 — Prodcut Pricebook, SalesOrders, Sage200UK Item
  • 9 — Sage200UK Warehouse
  • 10 — Sage200UK Warehouse Item
  • 12 — Sage200UK Sales Order Header
  • 13 — Sage200UK SalesOrderDetail
  • 14 — Sage200UK InvoiceHeader
  • 15 — Sage200UK InvoiceDetail

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_SAGE200UK_Account reads vwAccount:; no template in this set writes vwAccount:
  • vw_SAGE200UK_ChildAccount reads vwAccount:; no template in this set writes vwAccount:
  • vw_SAGE200UK_Customer reads vwAccount:, vwCustomer:; no template in this set writes vwAccount:, vwCustomer:
  • vw_SAGE200UK_Address reads vwAccount:, vwCustomer:, vwAddress:; no template in this set writes vwAccount:, vwCustomer:, vwAddress:
  • vw_SAGE200UK_Contacts reads vwAccount:, vwCustomer:, vw_SAGE200UK_Contacts:; no template in this set writes vwAccount:, vwCustomer:, vw_SAGE200UK_Contacts:
  • vw_SAGE200UK_Product reads vw_SAGE200UK_Product:; no template in this set writes vw_SAGE200UK_Product:
  • vw_SAGE200UK_DQuotes reads vw_SAGE200UK_Product:, vwAccount:, vw_SAGE200UK_DQuotes:; no template in this set writes vw_SAGE200UK_Product:, vwAccount:, vw_SAGE200UK_DQuotes:
  • vw_SAGE200UK_Pricebook reads vw_SAGE200UK_Pricebook:; no template in this set writes vw_SAGE200UK_Pricebook:
  • vw_SAGE200UK_ProductPriceBook reads vw_SAGE200UK_Pricebook:, vw_SAGE200UK_Product:, vw_SAGE200UK_ProductPriceBook:; no template in this set writes vw_SAGE200UK_Pricebook:, vw_SAGE200UK_Product:, vw_SAGE200UK_ProductPriceBook:
  • vw_SAGE200UK_DSalesOrder reads vw_SAGE200UK_Product:, vwAccount:, vw_SAGE200UK_DSalesOrder:; no template in this set writes vw_SAGE200UK_Product:, vwAccount:, vw_SAGE200UK_DSalesOrder:
  • vw_SAGE200UK_Item reads vw_SAGE200UK_Product:, vw_SAGE200UK_Item:; no template in this set writes vw_SAGE200UK_Product:, vw_SAGE200UK_Item:
  • vw_SAGE200UK_warehouse reads vw_SAGE200UK_warehouse:; no template in this set writes vw_SAGE200UK_warehouse:
  • vw_SAGE200UK_WarehouseItem reads vw_SAGE200UK_Product:, vw_SAGE200UK_Item:, vw_SAGE200UK_warehouse:, vw_SAGE200UK_WarehouseItem:; no template in this set writes vw_SAGE200UK_Product:, vw_SAGE200UK_Item:, vw_SAGE200UK_warehouse:, vw_SAGE200UK_WarehouseItem:
  • vw_SAGE200UK_SalesOrderHeader reads vwAccount:, vwCustomer:, vw_SAGE200UK_Contacts:, vwSalesOrderHeader:; no template in this set writes vwAccount:, vwCustomer:, vw_SAGE200UK_Contacts:, vwSalesOrderHeader:
  • vw_SAGE200UK_SalesOrderDetail reads vw_SAGE200UK_Item:, vwSalesOrderHeader:, vw_SAGE200UK_SalesOrderDetail:; no template in this set writes vw_SAGE200UK_Item:, vwSalesOrderHeader:, vw_SAGE200UK_SalesOrderDetail:
  • vw_SAGE200UK_InvoiceHeader reads vwAccount:, vwCustomer:, vw_SAGE200UK_InvoiceHeader:; no template in this set writes vwAccount:, vwCustomer:, vw_SAGE200UK_InvoiceHeader:
  • vw_SAGE200UK_InvoiceDetail reads vw_SAGE200UK_InvoiceHeader:, vw_SAGE200UK_InvoiceDetail:; no template in this set writes vw_SAGE200UK_InvoiceHeader:, vw_SAGE200UK_InvoiceDetail:

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
AccountsAccounts24SLCustomerAccountIDCommercient_Code__c, SLCustomerAccountIDCommercient_ArCustomer_Code__c, CustomerAccountNameAccount_Name, AddressLine1Address_1, AddressLine2Address_2
Child AccountsAccounts23CustomerID, CustDeliveryAddressIDCommercient_ArCustomer_Code__c, PostalName, CustomerID, CustDeliveryAddressID, DescriptionAccount_Name, AddressLine1Address_1, AddressLine2Address_2, AddressLine3Address_3
Sage200UK Customerscommercientsage200uk__Sage200UK_Customers83SLCustomerAccountIDCommercient_ExternalKey__c, CustomerAccountNumberCustomer_Account_Number, SFDCIDAccount, CustomerAccountNameCustomer_Account_Name, CustomerAccountNameName
Sage200UK Addresscommercientsage200uk__Sage200UK_Address15SLCustomerLocationIDCommercient_ExternalKey__c, AddressLine1Address_Line1, AddressLine2Address_Line2, AddressLine3Address_Line3, AddressLine4Address_Line4
ContactsContacts8SLCustomerContactIDCommercient_ExternalKey, SLCustomerAccountIDAccount_Name, SLCustomerAccountIDSAGE200UK_Customer__c, LastNameLast_Name, FirstNameFirst_Name
ProductsProducts13CodeCommercient_ExternalKey, NameName, NameProduct_Name, CodeProduct_Code, DescriptionDescription
PriceBooksPrice_Books4PriceBandIDCommercient_ExternalKey__c, NamePrice_Book_Name, DescriptionDescription, IsActiveIsActive
Prodcut PricebookProducts:Price_Books6CodeCommercient_ExternalKey, Pricelist_price, PriceBandIDPriceBandID, OpLockIsActive, SFDCIDZOHO_PriceBookID
Sage200UK Itemcommercientsage200uk__Sage200UK_Item93ItemIDCommercient_ExternalKey__c, CodeCode, NameName, AnalysisCode1Analysis_Code1, AnalysisCode2Analysis_Code2
Sage200UK Warehousecommercientsage200uk__Sage200UK_Warehouse33WarehouseIDCommercient_ExternalKey__c, NameName, DescriptionDescription, UseForSalesTradingUseForSalesTrading, PostalNamePostalName
Sage200UK Warehouse Itemcommercientsage200uk__Sage200UK_Warehouse_Item26WarehouseItemIDCommercient_ExternalKey__c, WarehouseItemIDName, WarehouseItemIDExternalKey, CodeItemCode, NameWarehouseName
Sage200UK Sales Order Headercommercientsage200uk__Sage200UK_SalesOrderHeadr74CustomerIDAccount, SOPDocDelAddressIDContact__c, CustomerIDSage200UK_Customer, SOPOrderReturnIDCommercient_ExternalKey__c, SOPOrderReturnIDName
Sage200UK SalesOrderDetailcommercientsage200uk__Sage200UK_SalesOrdrDetail103ItemCodeCommercientSF8__SAGE200UK_Item__c, SOPOrderReturnIDSales_Order_Header, PrintSequenceNumber, SOPOrderReturnLineIDName, PrintSequenceNumber, SOPOrderReturnLineIDExternalKey, PrintSequenceNumber, SOPOrderReturnLineIDCommercient_ExternalKey__c
Sage200UK InvoiceHeadercommercientsage200uk__Sage200UK_InvoiceHeader52CustomerIDSage200UK_Customer, CustomerIDAccount, DocumentStatusIDDocumentStatus__c, SOPInvoiceCreditTypeIDInvoiceCreditTypeName__c, SOPInvoiceCreditIDName
Sage200UK InvoiceDetailcommercientsage200uk__Sage200UK_InvoiceDetail25PrintSequenceNumber, SOPInvoiceCreditLineIDName, SOPInvoiceCreditIDInvoice_Header, PrintSequenceNumber, SOPInvoiceCreditLineIDCommercient_ExternalKey__c, DespatchReceiptNosDespatch_Receipt_Nos, UserNameUser_Name

6. Community templates

The catalogue carries 11 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: 11
  • Default operations: insert on 11, update on 11, delete on 11
  • Marked circular-sync: 0
  • Licence groups they span: 4
  • Destination objects: Accounts, commercientsage200uk__Sage200UK_Address, commercientsage200uk__Sage200UK_Customers, commercientsage200uk__Sage200UK_InvoiceDetail, commercientsage200uk__Sage200UK_InvoiceHeader, commercientsage200uk__Sage200UK_Item, commercientsage200uk__Sage200UK_SalesOrderHeadr, commercientsage200uk__Sage200UK_SalesOrdrDetail, commercientsage200uk__Sage200UK_Warehouse, commercientsage200uk__Sage200UK_Warehouse_Item, Contacts
  • Object display names: Accounts, Contacts, Sage200UK Address, Sage200UK Customers, Sage200UK InvoiceDetail, Sage200UK InvoiceHeader, Sage200UK Item, Sage200UK Sales Order Header, Sage200UK SalesOrderDetail, Sage200UK Warehouse, Sage200UK Warehouse Item
  • Template groups: Account, CRM Order 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:

  • vwAccount:
  • vwCustomer:
  • vwAddress:
  • vw_SAGE200UK_Contacts:
  • vw_SAGE200UK_Product:
  • vw_SAGE200UK_DQuotes:
  • vw_SAGE200UK_Pricebook:
  • vw_SAGE200UK_ProductPriceBook:
  • vw_SAGE200UK_DSalesOrder:
  • vw_SAGE200UK_Item:
  • vw_SAGE200UK_warehouse:
  • vw_SAGE200UK_WarehouseItem:
  • vwSalesOrderHeader:
  • vw_SAGE200UK_SalesOrderDetail:
  • vw_SAGE200UK_InvoiceHeader:
  • vw_SAGE200UK_InvoiceDetail:

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