Source ERP · 78 of 105

CRMPro → Salesforce — Sage 100 (US): what the shipped templates set up

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

CRMPro → Salesforce — Sage 100 (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-salesforce is the destination skill this page is a child of, and the authority for the Salesforce 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-salesforce/erps/sage-100-us.md, and that skill’s ERP table is what points at it. What follows is only what the shipped Sage 100 (US) → Salesforce 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
GET USERThe templates push users to Salesforce. New records are created, existing ones updated, and records removed in the ERP are deleted.users
AccountIn addition to creating the Account record from your ERP customer records, Commercient syncs over the entire Accounting AR Customer record into a Commercient AR Customer object which is a Managed Custom Object (MCO). A lookup field is provided to lookup to the default AR Customer record MCO from the Account record. New records are created and existing ones updated; none are deleted.Account, CommercientSF8__SAGE100_TermsCode__c, Contact, CommercientSF8__AR_CUSTOMER__c, CommercientSF8__SAGE100_SalesPerson__cSF_ERP_Salesforce_Clone_AR_CUSTOMER, SF_ERP_Salesforce_Clone_SO_SHIPTOADDRESS, SF_ERP_Salesforce_Clone_AR_TERMSCODE, SF_ERP_Salesforce_Clone_AR_CUSTOMERCONTACT, SF_ERP_Salesforce_Clone_AR_SALESPERSON
AR Invoice PaymentsCommercient Syncs the payment details that are held in the receivables file and held against an invoice in the ERP. The amount received from a customer, the date of payment, the method of payment, whether partial or full payment, etc New records are created and existing ones updated; none are deleted.CommercientSF8__AR_TRANSACTIONPAYMENTHISTORY__cSF_ERP_Salesforce_Clone_AR_TRANSACTIONPAYMENTHISTORY, CommercientFlags
CRM Opportunity and LineERP SO_SALESORDERHEADER, SO_SALESORDERDETAIL data becomes Opportunity, OpportunityLineItem in Salesforce. New records are created and existing ones updated; none are deleted.Opportunity, OpportunityLineItemSF_ERP_Salesforce_Clone_SO_SALESORDERHEADER, CommercientFlags, SF_ERP_Salesforce_Clone_SO_SALESORDERDETAIL
CRM Quote and LineERP SO_SALESORDERHEADER, SO_SALESORDERDETAIL data becomes Quote, QuoteLineItem in Salesforce. New records are created and existing ones updated; none are deleted.Quote, QuoteLineItemSF_ERP_Salesforce_Clone_SO_SALESORDERHEADER, CommercientFlags, SF_ERP_Salesforce_Clone_SO_SALESORDERDETAIL
Customer Multi Ship AddressesIf you are using multiple ship to addresses for a given AR Customer in your ERP system then you will be able to see all the addresses inside the CRM Account screen in a Commercient Multi Ship To Address MCO related list. New records are created and existing ones updated; none are deleted.CommercientSF8__SO_SHIPTOADDRESS__cSF_ERP_Salesforce_Clone_SO_SHIPTOADDRESS
ProductThe templates push CommercientSF8__SAGE100_CI_Item__c, CommercientSF8__SAGE100_ITEMWAREHOUSE__c, CommercientSF8__SAGE100_IM_ITEMTRANSACTIONHISTORY__c to Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF8__SAGE100_CI_Item__c, CommercientSF8__SAGE100_ITEMWAREHOUSE__c, CommercientSF8__SAGE100_IM_ITEMTRANSACTIONHISTORY__c, Product2SF_ERP_Salesforce_Clone_CI_ITEM, SF_ERP_Salesforce_Clone_CI_ExtendedDescription, CRM_Configuration, SF_ERP_Salesforce_Clone_IM_ITEMWAREHOUSE, SF_ERP_Salesforce_Clone_IM_ItemTransactionHistory, CommercientFlags
Invoice History HeadersThe Invoices from the ERP invoice module are synchronized to the Commercient Invoice Header (MCO) object in CRM. Customer service and sales people can visualize the status of the Invoice such as open, closed, as well as the balance remaining and the due date. New records are created and existing ones updated; none are deleted.CommercientSF8__AR_INVOICEHISTORYHEADER__cSF_ERP_Salesforce_Clone_AR_INVOICEHISTORYHEADER, CommercientFlags
Open AR Invoice HeaderThe detail lines on open invoices are visible too so that you are aware of what items you are awaiting payment on from your customer. New records are created and existing ones updated; none are deleted.CommercientSF8__AR_INVOICEHISTORYDETAIL__c, CommercientSF8__SAGE100_AR_OPENINVOICE__cSF_ERP_Salesforce_Clone_AR_INVOICEHISTORYDETAIL, SF_ERP_Salesforce_Clone_AR_INVOICEHISTORYHEADER, SF_ERP_Salesforce_Clone_AR_INVOICEHEADER
PricebookThe templates push PricebookEntry to Salesforce. New records are created and existing ones updated; none are deleted.PricebookEntrySF_ERP_Salesforce_Clone_CI_ITEM
SalesorderThe templates push CommercientSF8__SO_SALESORDERDETAIL__c, CommercientSF8__SAGE100_SALESORDERHISTORYDETAIL__c, CommercientSF8__SO_SALESORDERHEADER__c to Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF8__SO_SALESORDERDETAIL__c, CommercientSF8__SAGE100_SALESORDERHISTORYDETAIL__c, CommercientSF8__SO_SALESORDERHEADER__c, CommercientSF8__SAGE100_SALESORDERHISTORYHEADER__cSF_ERP_Salesforce_Clone_SO_SALESORDERDETAIL, SF_ERP_Salesforce_Clone_SO_SALESORDERHEADER, SF_ERP_Salesforce_Clone_SO_SALESORDERHISTORYDETAIL, SF_ERP_Salesforce_Clone_SO_SalesOrderHistoryHeader, CommercientFlags

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 / postfixSync_Operation_Type
GET USERusers0vw_SAGE100_User1=0'' / ''1
Ar_TermCommercientSF8__SAGE100_TermsCode__cCommercientSF8__ExternalKey__c1vw_SAGE100US_AR_TermsCodevw_SAGE100US_AR_TermsCodeCommercientSF8__ / __c1
Sales PersonCommercientSF8__SAGE100_SalesPerson__cCommercientSF8__ExternalKey__c2vw_SAGE100US_AR_SalesPersonvw_SAGE100US_AR_SalesPersonCommercientSF8__ / __c1
AccountAccountCommercientSF__Commercient_ArCustomerCode__c3vw_SAGE100US_Accountvw_SAGE100US_Account'' / ''1
CustomerCommercientSF8__AR_CUSTOMER__cCommercientSF8__ExternalKey__c4vw_SAGE100US_Customervw_SAGE100US_CustomerCommercientSF8__ / __c1
Ship_TO_AddressCommercientSF8__SO_SHIPTOADDRESS__cCommercientSF8__ExternalKey__c5vw_SAGE100US_AR_ShipToAddressvw_SAGE100US_AR_ShipToAddressCommercientSF8__ / __c1
AccountCustomerLookupAccountCommercientSF__Commercient_ArCustomerCode__c6vw_SAGE100US_CustomerToAccountLookupvw_SAGE100US_CustomerToAccountLookup'' / ''1
CIItemCommercientSF8__SAGE100_CI_Item__cCommercientSF8__ExternalKeys__c7vw_SAGE100US_CI_Itemvw_SAGE100US_CI_ItemCommercientSF8__ / __c1
ProductProduct2CommercientSF__ExternalKey__c8vw_SAGE100US_Productvw_SAGE100US_Product'' / ''1
ItemProduct ReverseLookupCommercientSF8__SAGE100_CI_Item__cCommercientSF8__ExternalKeys__c9vw_SAGE100US_ProductToItemReverseLookupvw_SAGE100US_ProductToItemReverseLookupCommercientSF8__ / __c1
SalesOrderCommercientSF8__SO_SALESORDERHEADER__cCommercientSF8__SALESORDERNO__c10vw_SAGE100US_SalesOrderHeadervw_SAGE100US_SalesOrderHeaderCommercientSF8__ / __c1
SalesOrderLineCommercientSF8__SO_SALESORDERDETAIL__cCommercientSF8__ExternalKey__c11vw_SAGE100US_SalesOrderDetailvw_SAGE100US_SalesOrderDetailCommercientSF8__ / __c1
SalesOrder History HeaderCommercientSF8__SAGE100_SALESORDERHISTORYHEADER__cCommercientSF8__ExternalKey__c12vw_SAGE100US_SalesOrderHistoryHeadervw_SAGE100US_SalesOrderHistoryHeaderCommercientSF8__ / __c1
SalesOrder History LineCommercientSF8__SAGE100_SALESORDERHISTORYDETAIL__cCommercientSF8__ExternalKey__c13vw_SAGE100US_SalesOrderHistoryDetailvw_SAGE100US_SalesOrderHistoryDetailCommercientSF8__ / __c1
Open InvoiceCommercientSF8__SAGE100_AR_OPENINVOICE__cCommercientSF8__ExternalKey__c14vw_SAGE100US_AR_Open_Invoicevw_SAGE100US_AR_Open_InvoiceCommercientSF8__ / __c1
Invoice HeaderCommercientSF8__AR_INVOICEHISTORYHEADER__cCommercientSF8__ExternalKey__c15vw_SAGE100US_InvoiceHistoryHeadervw_SAGE100US_InvoiceHistoryHeaderCommercientSF8__ / __c1
Invoice DetailsCommercientSF8__AR_INVOICEHISTORYDETAIL__cCommercientSF8__ExternalKey__c16vw_SAGE100US_InvoiceHistoryDetailvw_SAGE100US_InvoiceHistoryDetailCommercientSF8__ / __c1
Transcation Payment HistoryCommercientSF8__AR_TRANSACTIONPAYMENTHISTORY__cCommercientSF8__ExternalKey__c17vw_SAGE100US_InvoicePaymentvw_SAGE100US_InvoicePaymentCommercientSF8__ / __c1
Item WarehouseCommercientSF8__SAGE100_ITEMWAREHOUSE__cCommercientSF8__ExternalKey__c18vw_SAGE100US_Item_WareHousevw_SAGE100US_Item_WareHouseCommercientSF8__ / __c1
Create Standard PriceBookPricebookEntryExternalKey__c19vw_SAGE100US_PriceBookEntryvw_SAGE100US_PriceBookEntryCreate'' / ''1
Update Standard PriceBookPricebookEntryExternalKey__c20vw_SAGE100US_PriceBookEntryvw_SAGE100US_PriceBookEntryUpdate'' / ''1
ContactContactCommercientSF8__ExternalKey__c21vw_SAGE100US_Contactvw_SAGE100US_Contact'' / ''1
Item Transaction HistoryCommercientSF8__SAGE100_IM_ITEMTRANSACTIONHISTORY__cCommercientSF8__ExternalKey__c22vw_SAGE100US_ItemTransactionHistoryvw_SAGE100US_ItemTransactionHistoryCommercientSF8__ / __c1
Opportunity HeaderOpportunityExternalKey__c23vw_Opportunity_Headervw_SAGE100US_Opportunity_Header'' / ''1
Opportunity LineOpportunityLineItemExternalKey__c24vw_Opportunity_Detailvw_SAGE100US_Quote_Line'' / ''1
Quote_HeaderQuoteExternalKey__c25vw_Quote_Headervw_SAGE100US_Quote_Header'' / ''1
Quote_LineItemQuoteLineItemExternalKey__c26vw_Quote_Detailvw_SAGE100US_Quote_Line'' / ''1

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, Sync_Batch_Size 200. Text columns a template does not use are inserted as '' rather than left NULL. Get_SOQL_Query carries a query on GET USER, Create Standard PriceBook — those rows read records back from Salesforce 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_SAGE100US_AR_TermsCodeinsert + updatevw_SAGE100US_AR_TermsCode:ExternalKeySF_ERP_Salesforce_Clone_AR_TERMSCODE
vw_SAGE100US_AR_SalesPersoninsert + updatevw_SAGE100US_AR_SalesPerson:ExternalKeySF_ERP_Salesforce_Clone_AR_SALESPERSON
vw_SAGE100US_Accountinsert + updatevw_SAGE100US_Account:vw_SAGE100US_AR_SalesPerson:, vw_SAGE100_User:CommercientSF__Commercient_ArCustomerCode__cSF_ERP_Salesforce_Clone_AR_CUSTOMER, SF_ERP_Salesforce_Clone_SO_SHIPTOADDRESS
vw_SAGE100US_Customerinsert-onlyvw_SAGE100US_Customer:vw_SAGE100US_Account:, vw_SAGE100US_AR_SalesPerson:ExternalKeySF_ERP_Salesforce_Clone_AR_CUSTOMER
vw_SAGE100US_AR_ShipToAddressinsert + updatevw_SAGE100US_AR_ShipToAddress:vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_SalesPerson:ExternalKeySF_ERP_Salesforce_Clone_SO_SHIPTOADDRESS
vw_SAGE100US_CustomerToAccountLookupinsert + updatevw_SAGE100US_CustomerToAccountLookup:vw_SAGE100US_Customer:SF_ERP_Salesforce_Clone_AR_CUSTOMER
vw_SAGE100US_CI_Iteminsert + updatevw_SAGE100US_CI_Item:ExternalKeysSF_ERP_Salesforce_Clone_CI_ITEM, SF_ERP_Salesforce_Clone_CI_ExtendedDescription
vw_SAGE100US_Productinsert + updatevw_SAGE100US_Product:vw_SAGE100US_CI_Item:SF_ERP_Salesforce_Clone_CI_ITEM
vw_SAGE100US_ProductToItemReverseLookupinsert + updatevw_SAGE100US_ProductToItemReverseLookup:vw_SAGE100US_Product:SF_ERP_Salesforce_Clone_CI_ITEM, CRM_Configuration
vw_SAGE100US_SalesOrderHeaderinsert + updatevw_SAGE100US_SalesOrderHeader:vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_SalesPerson:SF_ERP_Salesforce_Clone_SO_SALESORDERHEADER, CommercientFlags
vw_SAGE100US_SalesOrderDetailinsert + updatevw_SAGE100US_SalesOrderDetail:vw_SAGE100US_SalesOrderHeader:, vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_SalesPerson:SF_ERP_Salesforce_Clone_SO_SALESORDERDETAIL, SF_ERP_Salesforce_Clone_SO_SALESORDERHEADER
vw_SAGE100US_SalesOrderHistoryHeaderinsert + updatevw_SAGE100US_SalesOrderHistoryHeader:vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_SalesPerson:, vw_SAGE100UK_Account:ExternalKeySF_ERP_Salesforce_Clone_SO_SalesOrderHistoryHeader, CommercientFlags
vw_SAGE100US_SalesOrderHistoryDetailinsert + updatevw_SAGE100US_SalesOrderHistoryDetail:vw_SAGE100US_SalesOrderHistoryHeader:, vw_SAGE100US_CI_Item:, vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_SalesPerson:SF_ERP_Salesforce_Clone_SO_SALESORDERHISTORYDETAIL, SF_ERP_Salesforce_Clone_SO_SalesOrderHistoryHeader
vw_SAGE100US_AR_Open_Invoiceinsert + updatevw_SAGE100US_AR_Open_Invoice:vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_SalesPerson:SF_ERP_Salesforce_Clone_AR_INVOICEHEADER
vw_SAGE100US_InvoiceHistoryHeaderinsert + updatevw_SAGE100US_InvoiceHistoryHeader:vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_SalesPerson:SF_ERP_Salesforce_Clone_AR_INVOICEHISTORYHEADER, CommercientFlags
vw_SAGE100US_InvoiceHistoryDetailinsert + updatevw_SAGE100US_InvoiceHistoryDetail:vw_SAGE100US_InvoiceHistoryHeader:, vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_SalesPerson:, vw_SAGE100US_CI_Item:ExternalKeySF_ERP_Salesforce_Clone_AR_INVOICEHISTORYDETAIL, SF_ERP_Salesforce_Clone_AR_INVOICEHISTORYHEADER
vw_SAGE100US_InvoicePaymentinsert + updatevw_SAGE100US_InvoicePayment:vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_InvoiceHistoryHeader:SF_ERP_Salesforce_Clone_AR_TRANSACTIONPAYMENTHISTORY, CommercientFlags
vw_SAGE100US_Item_WareHouseinsert + updatevw_SAGE100US_Item_WareHouse:vw_SAGE100US_Product:, vw_SAGE100US_CI_Item:ExternalKeySF_ERP_Salesforce_Clone_IM_ITEMWAREHOUSE
vw_SAGE100US_PriceBookEntryCreateinsert-onlyvw_SAGE100US_Product:ExternalKey__cSF_ERP_Salesforce_Clone_CI_ITEM
vw_SAGE100US_PriceBookEntryUpdateinsert-onlyvw_SAGE100US_Product:ExternalKey__cSF_ERP_Salesforce_Clone_CI_ITEM
vw_SAGE100US_Contactinsert + updatevw_SAGE100US_Contact:vw_SAGE100US_Account:, vw_SAGE100US_Customer:CommercientSF8__ExternalKey__cSF_ERP_Salesforce_Clone_AR_CUSTOMERCONTACT
vw_SAGE100US_ItemTransactionHistoryinsert + updatevw_SAGE100US_ItemTransactionHistory:vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_ShipToAddress:, vw_SAGE100US_Product:, vw_SAGE100US_CI_Item:SF_ERP_Salesforce_Clone_IM_ItemTransactionHistory, CommercientFlags
vw_SAGE100US_Opportunity_Headerinsert + updatevw_Opportunity_Header:vw_SAGE100US_Customer:, vw_SAGE100US_Account:, vw_SAGE100US_AR_SalesPerson:SF_ERP_Salesforce_Clone_SO_SALESORDERHEADER, CommercientFlags
vw_SAGE100US_Quote_Lineinsert-onlyvw_Quote_Header:, vw_SAGE100US_Product:, vw_Quote_Detail:SF_ERP_Salesforce_Clone_SO_SALESORDERDETAIL, SF_ERP_Salesforce_Clone_SO_SALESORDERHEADER
vw_SAGE100US_Quote_Headerinsert + updatevw_Quote_Header:vw_SAGE100US_Customer:, vw_SAGE100US_Account:, vw_Opportunity_Header:, vw_SAGE100US_AR_SalesPerson:SF_ERP_Salesforce_Clone_SO_SALESORDERHEADER, CommercientFlags
vw_SAGE100US_Quote_Lineinsert-onlyvw_Quote_Detail:vw_Quote_Header:, vw_SAGE100US_Product:SF_ERP_Salesforce_Clone_SO_SALESORDERDETAIL, SF_ERP_Salesforce_Clone_SO_SALESORDERHEADER

The repository key these templates build is <TimeStamp_Prefix>:<key>. The literal in the view and the TimeStamp_Prefix on the configuration row have to be the same string, case included.

4. Order of work

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

  • 0 — GET USER
  • 1 — Ar_Term
  • 2 — Sales Person
  • 3 — Account
  • 4 — Customer
  • 5 — Ship_TO_Address
  • 6 — AccountCustomerLookup
  • 7 — CIItem
  • 8 — Product
  • 9 — ItemProduct ReverseLookup
  • 10 — SalesOrder
  • 11 — SalesOrderLine
  • 12 — SalesOrder History Header
  • 13 — SalesOrder History Line
  • 14 — Open Invoice
  • 15 — Invoice Header
  • 16 — Invoice Details
  • 17 — Transcation Payment History
  • 18 — Item Warehouse
  • 19 — Create Standard PriceBook
  • 20 — Update Standard PriceBook
  • 21 — Contact
  • 22 — Item Transaction History
  • 23 — Opportunity Header
  • 24 — Opportunity Line
  • 25 — Quote_Header
  • 26 — Quote_LineItem

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_SAGE100US_Account reads vw_SAGE100US_AR_SalesPerson:, vw_SAGE100_User:
  • vw_SAGE100US_CustomerToAccountLookup reads vw_SAGE100US_Customer:
  • vw_SAGE100US_InvoicePayment reads vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_InvoiceHistoryHeader:
  • vw_SAGE100US_Contact reads vw_SAGE100US_Account:, vw_SAGE100US_Customer:
  • vw_SAGE100US_Opportunity_Header reads vw_SAGE100US_Customer:, vw_SAGE100US_Account:, vw_SAGE100US_AR_SalesPerson:
  • vw_SAGE100US_Quote_Line reads vw_Quote_Header:, vw_SAGE100US_Product:, vw_Quote_Detail:
  • vw_SAGE100US_Quote_Header reads vw_SAGE100US_Customer:, vw_SAGE100US_Account:, vw_Opportunity_Header:, vw_SAGE100US_AR_SalesPerson:
  • vw_SAGE100US_Quote_Line reads vw_Quote_Header:, vw_SAGE100US_Product:
  • vw_SAGE100US_Customer reads vw_SAGE100US_Account:, vw_SAGE100US_AR_SalesPerson:
  • vw_SAGE100US_AR_ShipToAddress reads vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_SalesPerson:
  • vw_SAGE100US_ProductToItemReverseLookup reads vw_SAGE100US_Product:
  • vw_SAGE100US_Item_WareHouse reads vw_SAGE100US_Product:, vw_SAGE100US_CI_Item:
  • vw_SAGE100US_ItemTransactionHistory reads vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_ShipToAddress:, vw_SAGE100US_Product:, vw_SAGE100US_CI_Item:
  • vw_SAGE100US_InvoiceHistoryHeader reads vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_SalesPerson:
  • vw_SAGE100US_InvoiceHistoryDetail reads vw_SAGE100US_InvoiceHistoryHeader:, vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_SalesPerson:, vw_SAGE100US_CI_Item:
  • vw_SAGE100US_AR_Open_Invoice reads vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_SalesPerson:
  • vw_SAGE100US_PriceBookEntryCreate reads vw_SAGE100US_Product:
  • vw_SAGE100US_PriceBookEntryUpdate reads vw_SAGE100US_Product:
  • vw_SAGE100US_Product reads vw_SAGE100US_CI_Item:
  • vw_SAGE100US_SalesOrderDetail reads vw_SAGE100US_SalesOrderHeader:, vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_SalesPerson:
  • vw_SAGE100US_SalesOrderHistoryDetail reads vw_SAGE100US_SalesOrderHistoryHeader:, vw_SAGE100US_CI_Item:, vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_SalesPerson:
  • vw_SAGE100US_SalesOrderHeader reads vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_SalesPerson:
  • vw_SAGE100US_SalesOrderHistoryHeader reads vw_SAGE100US_Account:, vw_SAGE100US_Customer:, vw_SAGE100US_AR_SalesPerson:, vw_SAGE100UK_Account:; no template in this set writes vw_SAGE100UK_Account:

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 → Salesforce pairs
Ar_TermCommercientSF8__SAGE100_TermsCode__c2TermsCodeCommercientSF8__ExternalKey__c, TermsCodeDescName
Sales PersonCommercientSF8__SAGE100_SalesPerson__c2SalespersonDivisionNo, SalespersonNoCommercientSF8__ExternalKey__c, SalespersonNameName
AccountAccount15ARDivisionNo, CustomerNoCommercientSF__Commercient_ArCustomerCode__c, CustomerName, ShipToNameName, SalespersonDivisionNo, SalespersonNoCommercientSF8__SAGE100_SalesPerson__c, TelephoneNoPhone, AddressLine1, AddressLine2, AddressLine3BillingStreet
CustomerCommercientSF8__AR_CUSTOMER__c96ARDivisionNo, CustomerNoCommercientSF8__ExternalKey__c, CustomerNameName, SFDCIDAccount, SFDCIDSalesPerson, ARDivisionNoARDivisionNo
Ship_TO_AddressCommercientSF8__SO_SHIPTOADDRESS__c5ARDivisionNo, CustomerNo, ShipToCodeCommercientSF8__ExternalKey__c, ShipToNameName, ARDivisionNo, CustomerNoAccount, ARDivisionNo, CustomerNoSage100_Customer_Records, SalespersonNoSalesPerson
AccountCustomerLookupAccount2ARDivisionNo, CustomerNoCommercientSF__Commercient_ArCustomerCode__c, SFDCIDCommercientSF8__Sage_Customer_Record__c
CIItemCommercientSF8__SAGE100_CI_Item__c2ItemCodeCommercientSF8__ExternalKeys__c, ItemCodeName
ProductProduct26ItemCodeCommercientSF__ExternalKey__c, ItemCodeName, ItemCodeProductCode, ItemCodeDescDescription, InactiveItemIsActive
ItemProduct ReverseLookupCommercientSF8__SAGE100_CI_Item__c2ItemCodeCommercientSF8__ExternalKeys__c, SFDCIDCommercientSF8__Product__c
SalesOrderCommercientSF8__SO_SALESORDERHEADER__c112ARDivisionNo, SalesOrderNoCommercientSF8__SALESORDERNO__c, SalesOrderNoName, ARDivisionNo, CustomerNoAccount, ARDivisionNo, CustomerNoSage100_Customer_Record, SalespersonDivisionNo, SalespersonNoSalesPerson
SalesOrderLineCommercientSF8__SO_SALESORDERDETAIL__c4SalesOrderNo, LineKeyCommercientSF8__ExternalKey__c, SFDCIDCommercientSF8__Sage100_Open_Sales_Orders__c, SFDCIDAccount, SalesOrderNo, LineKeyName
SalesOrder History HeaderCommercientSF8__SAGE100_SALESORDERHISTORYHEADER__c97ARDivisionNo,SalesOrderNoCommercientSF8__ExternalKey__c, SalesOrderNoName, ARDivisionNo,CustomerNoAccount, ARDivisionNo,CustomerNoCustomer, SalespersonDivisionNo,SalespersonNoSAGE100_SalesPerson
SalesOrder History LineCommercientSF8__SAGE100_SALESORDERHISTORYDETAIL__c4SalesOrderNo, SequenceNoCommercientSF8__ExternalKey__c, SalesOrderNo, SequenceNoCommercientSF8__Name__c, SFDCIDCommercientSF8__Salesorder_History_Header__c, SFDCIDCommercientSF8__CI_Item__c
Open InvoiceCommercientSF8__SAGE100_AR_OPENINVOICE__c5InvoiceNo,InvoiceTypeCommercientSF8__ExternalKey__c, InvoiceNo,InvoiceTypeName, ARDivisionNo,CustomerNoAccount, ARDivisionNo,CustomerNoSage100_Customer_Records, SalespersonDivisionNo,SalespersonNoSAGE100_SalesPerson
Invoice HeaderCommercientSF8__AR_INVOICEHISTORYHEADER__c5InvoiceNo, HeaderSeqNoCommercientSF8__ExternalKey__c, InvoiceNoName, ARDivisionNo, CustomerNoAccount, ARDivisionNo, CustomerNoSage100_Customer_Records, SalespersonDivisionNo, SalespersonNoSAGE100_SalesPerson
Invoice DetailsCommercientSF8__AR_INVOICEHISTORYDETAIL__c6InvoiceNo, HeaderSeqNo, DetailSeqNoCommercientSF8__ExternalKey__c, InvoiceNo, DetailSeqNoName, ARDivisionNo, CustomerNoAccount, ARDivisionNo, CustomerNoSage100_Customer_Records, InvoiceNo, HeaderSeqNoSage100_Invoice
Transcation Payment HistoryCommercientSF8__AR_TRANSACTIONPAYMENTHISTORY__c5InvoiceNoName, SFDCIDAccount, SFDCIDSage100_Customer_Record, SFDCIDSage100_Invoice
Item WarehouseCommercientSF8__SAGE100_ITEMWAREHOUSE__c4ItemCode, WarehouseCodeCommercientSF8__ExternalKey__c, ItemCode, WarehouseCodeName, SFDCIDCommercientSF8__Product__c, SFDCIDCommercientSF8__CIItem__c
Create Standard PriceBookPricebookEntry5ItemCodeExternalKey__c, StandardUnitPriceUnitPrice, SFDCIDPricebook2ID, SFDCIDProduct2ID
Update Standard PriceBookPricebookEntry3ItemCodeExternalKey__c, StandardUnitPriceUnitPrice
ContactContact13ARDivisionNo, CustomerNo, ContactCodeCommercientSF8__ExternalKey__c, SFDCIDAccountID, ContactNameLastName, EmailAddressEmail, TelephoneNo1Phone
Item Transaction HistoryCommercientSF8__SAGE100_IM_ITEMTRANSACTIONHISTORY__c7ARDivisionNo,CustomerNoAccount__c, ARDivisionNo,CustomerNoSage100_Customer_Records__c, ARDivisionNo,CustomerNo,ShipToCodeSage100_ShipTo_Address__c, ItemCodeProduct, ItemCodeSAGE100_CI_Item
Opportunity HeaderOpportunity7SalesOrderNoExternalKey__c, SalesOrderNoName, SFDCIDAccountId, TaxableAmtAmount, SFDCIDPricebook2ID
Opportunity LineOpportunityLineItem8SalesOrderNo, LineKeyExternalKey__c, SFDCIDQuoteId, SFDCIDProduct2Id, SFDCIDPricebookEntryId, PromiseDateServiceDate
Quote_HeaderQuote22SalesOrderNoExternalKey__c, SalesOrderNoName, SalesOrderNoOpportunityId, SalespersonDivisionNo,SalespersonNoSAGE100_SalesPerson__c, BillToNameBillingName
Quote_LineItemQuoteLineItem8SalesOrderNo, LineKeyExternalKey__c, SFDCIDQuoteId, SFDCIDProduct2Id, SFDCIDPricebookEntryId, PromiseDateServiceDate

6. Community templates

The catalogue carries 1310 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: 1310
  • Default operations: insert on 1310, update on 1310, delete on 1310
  • Marked circular-sync: 4
  • Licence groups they span: 17
  • Destination objects: Account, CommercientSF8__SAGE100_CI_Item__c, PricebookEntry, CommercientSF8__AR_CUSTOMER__c, Product2, CommercientSF8__SO_SALESORDERHEADER__c, CommercientSF8__AR_INVOICEHISTORYDETAIL__c, CommercientSF8__AR_INVOICEHISTORYHEADER__c, CommercientSF8__SO_SALESORDERDETAIL__c, CommercientSF8__SO_SHIPTOADDRESS__c, CommercientSF8__SAGE100_SalesPerson__c, CommercientSF8__SAGE100_SALESORDERHISTORYHEADER__c, CommercientSF8__SAGE100_ITEMWAREHOUSE__c, CommercientSF8__SAGE100_SALESORDERHISTORYDETAIL__c, CommercientSF8__SAGE100_TermsCode__c, CommercientSF8__SAGE100_AR_OPENINVOICE__c, Contact, CommercientSF8__AR_TRANSACTIONPAYMENTHISTORY__c, account, ACCOUNT, 72 more and 48 custom objects
  • Object display names: Account, Customer, AccountCustomerLookup, ItemProduct ReverseLookup, Product, SalesOrder, SalesOrderLine, Sales Person, SalesOrder History Header, Invoice Details, Invoice Header, Ship_TO_Address, 144 more and 55 further templates
  • Template groups: Account, Product, Salesorder, Invoice, CRM Quote and Line, CRM Opportunity and Line, Customer Multi Ship Addresses, Invoice History Headers, Purchase Order, Pricebook, 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:

  • vw_SAGE100_User
  • vw_SAGE100US_Account
  • vw_SAGE100US_CustomerToAccountLookup
  • vw_SAGE100US_InvoicePayment
  • vw_SAGE100US_AR_TermsCode
  • vw_SAGE100US_Contact
  • vw_Opportunity_Header
  • vw_Opportunity_Detail
  • vw_Quote_Header
  • vw_Quote_Detail
  • vw_SAGE100US_Customer
  • vw_SAGE100US_AR_ShipToAddress
  • vw_SAGE100US_CI_Item
  • vw_SAGE100US_ProductToItemReverseLookup
  • vw_SAGE100US_Item_WareHouse
  • vw_SAGE100US_ItemTransactionHistory
  • vw_SAGE100US_InvoiceHistoryHeader
  • vw_SAGE100US_InvoiceHistoryDetail
  • vw_SAGE100US_AR_Open_Invoice
  • vw_SAGE100US_PriceBookEntry
  • vw_SAGE100US_Product
  • vw_SAGE100US_SalesOrderDetail
  • vw_SAGE100US_SalesOrderHistoryDetail
  • vw_SAGE100US_SalesOrderHeader
  • vw_SAGE100US_SalesOrderHistoryHeader
  • vw_SAGE100US_AR_SalesPerson

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 (US) → Salesforce templates set up. dlake-crmpro-salesforce is the destination skill this page sits under: its own text is the authority for the Salesforce 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.