Source ERP · 15 of 27

CRMPro → Zoho CRM — Sage 100 Contractor 2018: what the shipped templates set up

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

CRMPro → Zoho CRM — Sage 100 Contractor 2018: 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-100-contractor-2018.md, and that skill’s ERP table is what points at it. What follows is only what the shipped Sage 100 Contractor 2018 → 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
Sage Sales PersonThe templates push sage100contractor__SAGE100CNTR_Salesperson to Zoho CRM.sage100contractor__SAGE100CNTR_SalespersonSF_ERP_Salesforce_Clone_employ
AccountsThe templates push Accounts to Zoho CRM.AccountsSF_ERP_Salesforce_Clone_reccln
Sage CustomerThe templates push sage100contractor__SAGE100CNTR_Customer to Zoho CRM.sage100contractor__SAGE100CNTR_CustomerSF_ERP_Salesforce_Clone_reccln
Sage JobThe templates push sage100contractor__SAGE100CNTR_Job to Zoho CRM.sage100contractor__SAGE100CNTR_JobSF_ERP_Salesforce_Clone_actrec
ProductsThe templates push Products to Zoho CRM.ProductsSF_ERP_Salesforce_Clone_tkfprt
ContactsThe templates push Contacts to Zoho CRM.ContactsSF_ERP_Salesforce_Clone_clncnt
Sage PartsThe templates push sage100contractor__SAGE100CNTR_Parts to Zoho CRM.sage100contractor__SAGE100CNTR_PartsSF_ERP_Salesforce_Clone_tkfprt
Sage Inventory HistoryThe templates push sage100contractor__SAGE100CNTR_InventoryHist to Zoho CRM.sage100contractor__SAGE100CNTR_InventoryHistSF_ERP_Salesforce_Clone_invhst
Sage AR InvoiceThe templates push sage100contractor__SAGE100CNTR_ARInvoice to Zoho CRM.sage100contractor__SAGE100CNTR_ARInvoiceSF_ERP_Salesforce_Clone_acrinv, SF_ERP_Salesforce_Clone_actrec
Sage AR InvoiceLineThe templates push sage100contractor__SAGE100CNTR_ARInvoiceLine to Zoho CRM.sage100contractor__SAGE100CNTR_ARInvoiceLineSF_ERP_Salesforce_Clone_arivln
Sage AR PaymentsThe templates push sage100contractor__SAGE100CNTR_AR_Payment to Zoho CRM.sage100contractor__SAGE100CNTR_AR_PaymentSF_ERP_Salesforce_Clone_acrpmt
QuoteThe templates push Quotes to Zoho CRM.QuotesSF_ERP_Salesforce_Clone_srvlin, SF_ERP_Salesforce_Clone_tkfprt, SF_ERP_Salesforce_Clone_srvinv, SF_ERP_Salesforce_Clone_actrec, SF_ERP_Salesforce_Clone_reccln, x
SalesOrderThe templates push Sales_Orders to Zoho CRM.Sales_OrdersSF_ERP_Salesforce_Clone_srvlin, SF_ERP_Salesforce_Clone_tkfprt, SF_ERP_Salesforce_Clone_srvinv, SF_ERP_Salesforce_Clone_actrec, SF_ERP_Salesforce_Clone_reccln, x
InvoiceThe templates push Invoices to Zoho CRM.InvoicesSF_ERP_Salesforce_Clone_srvlin, SF_ERP_Salesforce_Clone_tkfprt, SF_ERP_Salesforce_Clone_srvinv, SF_ERP_Salesforce_Clone_actrec, SF_ERP_Salesforce_Clone_reccln, 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
UsersusersCommercient_ExternalKey1vw_Users:SELECT 1'' / ''
Sage Sales Personsage100contractor__SAGE100CNTR_SalespersonCommercient_ExternalKey2vw_SAGE100CONTRACTOR2018_Salesperson:vw_SAGE100CONTRACTOR2018_Salespersonsage100contractor__ / __c
AccountsAccountsCommercient_ArCustomer_Code3vw_SAGE100CONTRACTOR2018_Account:vw_SAGE100CONTRACTOR2018_Account'' / ''
Sage Customersage100contractor__SAGE100CNTR_CustomerCommercient_ExternalKey4vw_SAGE100CONTRACTOR2018_Customer:vw_SAGE100CONTRACTOR2018_Customersage100contractor__ / __c
Sage Jobsage100contractor__SAGE100CNTR_JobCommercient_ExternalKey5vw_SAGE100CONTRACTOR2018_Job:vw_SAGE100CONTRACTOR2018_Jobsage100contractor__ / __c
ProductsProductsCommercient_ExternalKey6vw_SAGE100CONTRACTOR2018_Product:vw_SAGE100CONTRACTOR2018_Products'' / ''
ContactsContactsCommercient_ExternalKey7vw_SAGE100CONTRACTOR2018_Contacts:vw_SAGE100CONTRACTOR2018_Contacts'' / ''
Sage Partssage100contractor__SAGE100CNTR_PartsCommercient_ExternalKey8vw_SAGE100CONTRACTOR2018_Parts:vw_SAGE100CONTRACTOR2018_Partssage100contractor__ / __c
Sage Inventory Historysage100contractor__SAGE100CNTR_InventoryHistCommercient_ExternalKey9vw_SAGE100CONTRACTOR2018_InventoryHistory:vw_SAGE100CONTRACTOR2018_InventoryHistorysage100contractor__ / __c
Sage AR Invoicesage100contractor__SAGE100CNTR_ARInvoiceCommercient_ExternalKey10vw_SAGE100CONTRACTOR2018_Invoice:vw_SAGE100CONTRACTOR2018_Invoicesage100contractor__ / __c
Sage AR InvoiceLinesage100contractor__SAGE100CNTR_ARInvoiceLineCommercient_ExternalKey11vw_SAGE100CONTRACTOR2018_InvoiceLine:vw_SAGE100CONTRACTOR2018_InvoiceLinesage100contractor__ / __c
Sage AR Paymentssage100contractor__SAGE100CNTR_AR_PaymentCommercient_ExternalKey12vw_SAGE100CONTRACTOR2018_Payment:vw_SAGE100CONTRACTOR2018_Paymentsage100contractor__ / __c
QuoteQuotesCommercient_ExternalKey13vw_SAGE100CONTRACTOR2018_Quotes:vw_SAGE100CONTRACTOR2018_Quotes'' / ''
SalesOrderSales_OrdersCommercient_ExternalKey14vw_SAGE100CONTRACTOR2018_DSalesOrder:vw_SAGE100CONTRACTOR2018_DSalesOrder'' / ''
InvoiceInvoicesCommercient_ExternalKey15vw_SAGE100CONTRACTOR2018_DInvoice:vw_SAGE100CONTRACTOR2018_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, 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_SAGE100CONTRACTOR2018_Salespersoninsert-onlyvw_SAGE100CONTRACTOR2018_Salesperson:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_employ
vw_SAGE100CONTRACTOR2018_Accountinsert-onlyvw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_Account:, vw_Users:Commercient_ArCustomer_CodeSF_ERP_Salesforce_Clone_reccln
vw_SAGE100CONTRACTOR2018_Customerinsert-onlyvw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_Customer:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_reccln
vw_SAGE100CONTRACTOR2018_Jobinsert-onlyvw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Customer:, vw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_Job:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_actrec
vw_SAGE100CONTRACTOR2018_Productsinsert-onlyvw_SAGE100CONTRACTOR2018_Product:Commercient_ExternalKeySF_ERP_Salesforce_Clone_tkfprt
vw_SAGE100CONTRACTOR2018_Contactsinsert + updatevw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Contacts:Commercient_ExternalKeySF_ERP_Salesforce_Clone_clncnt
vw_SAGE100CONTRACTOR2018_Partsinsert-onlyvw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Parts:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_tkfprt
vw_SAGE100CONTRACTOR2018_InventoryHistoryinsert-onlyvw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Parts:, vw_SAGE100CONTRACTOR2018_InventoryHistory:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_invhst
vw_SAGE100CONTRACTOR2018_Invoiceinsert-onlyvw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Customer:, vw_SAGE100CONTRACTOR2018_Job:, vw_SAGE100CONTRACTOR2018_Invoice:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_acrinv, SF_ERP_Salesforce_Clone_actrec
vw_SAGE100CONTRACTOR2018_InvoiceLineinsert-onlyvw_SAGE100CONTRACTOR2018_Invoice:, vw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Parts:, vw_SAGE100CONTRACTOR2018_InvoiceLine:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_arivln
vw_SAGE100CONTRACTOR2018_Paymentinsert-onlyvw_SAGE100CONTRACTOR2018_Invoice:, vw_SAGE100CONTRACTOR2018_Payment:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_acrpmt
vw_SAGE100CONTRACTOR2018_Quotesinsert-onlyvw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_Quotes:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_srvlin, SF_ERP_Salesforce_Clone_tkfprt, SF_ERP_Salesforce_Clone_srvinv, SF_ERP_Salesforce_Clone_actrec, SF_ERP_Salesforce_Clone_reccln
vw_SAGE100CONTRACTOR2018_DSalesOrderinsert-onlyvw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_Quotes:, vw_SAGE100CONTRACTOR2018_DSalesOrder:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_srvlin, SF_ERP_Salesforce_Clone_tkfprt, SF_ERP_Salesforce_Clone_srvinv, SF_ERP_Salesforce_Clone_actrec, SF_ERP_Salesforce_Clone_reccln
vw_SAGE100CONTRACTOR2018_DInvoiceinsert-onlyvw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_DSalesOrder:, vw_SAGE100CONTRACTOR2018_DInvoice:ExternalKey, Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_srvlin, SF_ERP_Salesforce_Clone_tkfprt, SF_ERP_Salesforce_Clone_srvinv, SF_ERP_Salesforce_Clone_actrec, SF_ERP_Salesforce_Clone_reccln

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 — Users
  • 2 — Sage Sales Person
  • 3 — Accounts
  • 4 — Sage Customer
  • 5 — Sage Job
  • 6 — Products
  • 7 — Contacts
  • 8 — Sage Parts
  • 9 — Sage Inventory History
  • 10 — Sage AR Invoice
  • 11 — Sage AR InvoiceLine
  • 12 — Sage AR Payments
  • 13 — Quote
  • 14 — SalesOrder
  • 15 — Invoice

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_SAGE100CONTRACTOR2018_Salesperson reads vw_SAGE100CONTRACTOR2018_Salesperson:; no template in this set writes vw_SAGE100CONTRACTOR2018_Salesperson:
  • vw_SAGE100CONTRACTOR2018_Account reads vw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_Account:, vw_Users:; no template in this set writes vw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_Account:, vw_Users:
  • vw_SAGE100CONTRACTOR2018_Customer reads vw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_Customer:; no template in this set writes vw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_Customer:
  • vw_SAGE100CONTRACTOR2018_Job reads vw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Customer:, vw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_Job:; no template in this set writes vw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Customer:, vw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_Job:
  • vw_SAGE100CONTRACTOR2018_Products reads vw_SAGE100CONTRACTOR2018_Product:; no template in this set writes vw_SAGE100CONTRACTOR2018_Product:
  • vw_SAGE100CONTRACTOR2018_Contacts reads vw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Contacts:; no template in this set writes vw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Contacts:
  • vw_SAGE100CONTRACTOR2018_Parts reads vw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Parts:; no template in this set writes vw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Parts:
  • vw_SAGE100CONTRACTOR2018_InventoryHistory reads vw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Parts:, vw_SAGE100CONTRACTOR2018_InventoryHistory:; no template in this set writes vw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Parts:, vw_SAGE100CONTRACTOR2018_InventoryHistory:
  • vw_SAGE100CONTRACTOR2018_Invoice reads vw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Customer:, vw_SAGE100CONTRACTOR2018_Job:, vw_SAGE100CONTRACTOR2018_Invoice:; no template in this set writes vw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Customer:, vw_SAGE100CONTRACTOR2018_Job:, vw_SAGE100CONTRACTOR2018_Invoice:
  • vw_SAGE100CONTRACTOR2018_InvoiceLine reads vw_SAGE100CONTRACTOR2018_Invoice:, vw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Parts:, vw_SAGE100CONTRACTOR2018_InvoiceLine:; no template in this set writes vw_SAGE100CONTRACTOR2018_Invoice:, vw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Parts:, vw_SAGE100CONTRACTOR2018_InvoiceLine:
  • vw_SAGE100CONTRACTOR2018_Payment reads vw_SAGE100CONTRACTOR2018_Invoice:, vw_SAGE100CONTRACTOR2018_Payment:; no template in this set writes vw_SAGE100CONTRACTOR2018_Invoice:, vw_SAGE100CONTRACTOR2018_Payment:
  • vw_SAGE100CONTRACTOR2018_Quotes reads vw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_Quotes:; no template in this set writes vw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_Quotes:
  • vw_SAGE100CONTRACTOR2018_DSalesOrder reads vw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_Quotes:, vw_SAGE100CONTRACTOR2018_DSalesOrder:; no template in this set writes vw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_Quotes:
  • vw_SAGE100CONTRACTOR2018_DInvoice reads vw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_DSalesOrder:, vw_SAGE100CONTRACTOR2018_DInvoice:; no template in this set writes vw_SAGE100CONTRACTOR2018_Product:, vw_SAGE100CONTRACTOR2018_Account:, vw_SAGE100CONTRACTOR2018_Salesperson:, vw_SAGE100CONTRACTOR2018_DSalesOrder:

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
Usersusers1Commercient_ExternalKeyCommercient_ExternalKey
Sage Sales Personsage100contractor__SAGE100CNTR_Salesperson79RECNUMCommercient_ExternalKey__c, FSTNME, LSTNMEName, ACAELCAatrix_Electronic_ACA_Con__c, W_2ELCAatrix_Electronic_W_2_Con__c, EFTSTSAccount_Status__c
AccountsAccounts16RECNUMCommercient_ArCustomer_Code, CLNNMEAccount_Name, ADDRS1, ADDRS2Billing_Street, CTYNMEBilling_City, STATE_Billing_State
Sage Customersage100contractor__SAGE100CNTR_Customer108RECNUMCommercient_ExternalKey__c, CLNNMEName, ADDRS1Address_1, ADDRS2Address_2, REGIONArea
Sage Jobsage100contractor__SAGE100CNTR_Job76RECNUMCommercient_ExternalKey__c, JOBNMEName, CLNNUMAccounts, CLNNUMSAGE100CONSTRUCTOR_Customer, SLSEMPSAGE100CONSTRUCTOR_SalesRep
ProductsProducts7RECNUMCommercient_ExternalKey, PRTNMEProduct_Name, RECNUMProduct_Code, NTETXTDescription, INACTVProduct_Active
ContactsContacts9RECNUM,LINNUMCommercient_ExternalKey, CNTNMELast_Name, CNTNMEFirst_Name, E_MAILEmail, PHNNUMHome_Phone
Sage Partssage100contractor__SAGE100CNTR_Parts38RECNUMCommercient_ExternalKey__c, PRTNMEName, ALPNUMAlpha_Part_Number, AVGCSTAverage_Cost, PRTBILBilling_Amount
Sage Inventory Historysage100contractor__SAGE100CNTR_InventoryHist20RECNUMCommercient_ExternalKey__c, RECNUMName, ENTDTEEntry_Date__c, LGRRECLedger_Ref_Number__c, LOCNUMLocation__c
Sage AR Invoicesage100contractor__SAGE100CNTR_ARInvoice51RECNUMCommercient_ExternalKey__c, RECNUM, INVNUMCustomModule_Name__c, RECNUM, INVNUMName, INVBALBalance, PCHORDClient_PO
Sage AR InvoiceLinesage100contractor__SAGE100CNTR_ARInvoiceLine27RECNUM, LINNUMCommercient_ExternalKey__c, RECNUM, LINNUMName, LGRACTAccount, ALPNUMAlpha_Part_Number__c, CSTCDECost_Code__c
Sage AR Paymentssage100contractor__SAGE100CNTR_AR_Payment13AMOUNTAmount_Paid, APLCRDCredit_Taken, CHKDTEDate, DSCRPTDescription, DSCTKNDiscount_Taken
QuoteQuotes16RECNUMCommercient_ExternalKey__c, SFDCIDAccount_Name, RECNUMName, RECNUMQuote_Number, INSDTEERP_Created_Date__c
SalesOrderSales_Orders17RECNUMCommercient_ExternalKey__c, SFDCIDAccount_Name, SFDCIDQuote_Name, RECNUMName, RECNUMSO_Number
InvoiceInvoices16RECNUMCommercient_ExternalKey__c, SFDCIDAccount_Name, SFDCIDSales_Order, RECNUMName, RECNUMInvoice_Number

6. Community templates

The catalogue carries 14 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: 14
  • Default operations: insert on 14, update on 14, delete on 14
  • Marked circular-sync: 0
  • Licence groups they span: 5
  • Destination objects: Accounts, Contacts, Invoices, Products, Quotes, sage100contractor__SAGE100CNTR_AR_Payment, sage100contractor__SAGE100CNTR_ARInvoice, sage100contractor__SAGE100CNTR_ARInvoiceLine, sage100contractor__SAGE100CNTR_Customer, sage100contractor__SAGE100CNTR_InventoryHist, sage100contractor__SAGE100CNTR_Job, sage100contractor__SAGE100CNTR_Parts, sage100contractor__SAGE100CNTR_Salesperson, Sales_Orders
  • Object display names: Accounts, Contacts, Invoice, Products, Quote, Sage AR Invoice, Sage AR InvoiceLine, Sage AR Payments, Sage Customer, Sage Inventory History, Sage Job, Sage Parts and 2 more
  • Template groups: Account, CRM Order and Line, 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:

  • vw_SAGE100CONTRACTOR2018_Salesperson:
  • vw_SAGE100CONTRACTOR2018_Account:
  • vw_SAGE100CONTRACTOR2018_Customer:
  • vw_SAGE100CONTRACTOR2018_Job:
  • vw_SAGE100CONTRACTOR2018_Product:
  • vw_SAGE100CONTRACTOR2018_Contacts:
  • vw_SAGE100CONTRACTOR2018_Parts:
  • vw_SAGE100CONTRACTOR2018_InventoryHistory:
  • vw_SAGE100CONTRACTOR2018_Invoice:
  • vw_SAGE100CONTRACTOR2018_InvoiceLine:
  • vw_SAGE100CONTRACTOR2018_Payment:
  • vw_SAGE100CONTRACTOR2018_Quotes:
  • vw_SAGE100CONTRACTOR2018_DSalesOrder:
  • vw_SAGE100CONTRACTOR2018_DInvoice:
  • vw_Users:

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 100 Contractor 2018 → 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.