Source ERP · 88 of 105

CRMPro → Salesforce — Sage 500: what the shipped templates set up

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

CRMPro → Salesforce — Sage 500: 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-500.md, and that skill’s ERP table is what points at it. What follows is only what the shipped Sage 500 → 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
Sage500 Ship MethodsThe templates push CommercientSF8__SAGE500_ShipMethod__c to Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF8__SAGE500_ShipMethod__cSF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_tciShipMethod
Sage500 Customer Sales HistThe templates push CommercientSF8__SAGE500_CustSalesHist__c to Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF8__SAGE500_CustSalesHist__cSF_ERP_Salesforce_Clone_tarCustSalesHist, CommercientFlags
Sage500 UnitMeasureThe templates push CommercientSF8__SAGE500_UnitMeasure__c to Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF8__SAGE500_UnitMeasure__cSF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_tciUnitMeasure
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, existing ones updated, and records removed in the ERP are deleted.Account, Contact, CommercientSF8__SAGE500_customer__c, CommercientSF8__SAGE500_Salesperson__c, CommercientSF8__SAGE500_SalesTeam__c, CommercientSF8__SAGE500_SalesTeamMember__cSF_ERP_Salesforce_Clone_tarCustomer, SF_ERP_Salesforce_Clone_tarCustAddr, SF_ERP_Salesforce_Clone_tciAddress, SF_ERP_Salesforce_Clone_tciContact, SF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString
Customer Class DetailsYour ERP system divides your Customers into groupings, or ‘classes’. New records are created and existing ones updated; none are deleted.CommercientSF8__SAGE500_CustClass__cSF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_tarCustClass, SF_ERP_Salesforce_Clone_StgCustClass, SF_ERP_Salesforce_Clone_tciFOB, SF_ERP_Salesforce_Clone_tciPaymentTerms
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__SAGE500_Address__c, CommercientSF8__SAGE500_CustAddr__cSF_ERP_Salesforce_Clone_tciAddress, SF_ERP_Salesforce_Clone_tarCustomer, SF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_tarCustAddr, SF_ERP_Salesforce_Clone_tarCommPlan
ProductThe templates push CommercientSF8__SAGE500_Warehouse__c, CommercientSF8__SAGE500_Item__c, CommercientSF8__SAGE500_Inventory__c to Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF8__SAGE500_Warehouse__c, CommercientSF8__SAGE500_Item__c, CommercientSF8__SAGE500_Inventory__c, Product2SF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_timWarehouse, CommercientFlags, SF_ERP_Salesforce_Clone_timItem, SF_ERP_Salesforce_Clone_timItem_wri
InvoiceBoth Open and Historical invoices are synchronized. Open invoice changes, such as a balance change, or a terms change are reflected in the CRM as they sync based on the frequency of the sync you have chosen (e.g. every hour for example). New records are created and existing ones updated; none are deleted.CommercientSF8__SAGE500_Invoice__c, CommercientSF8__SAGE500_InvoiceDetl__cSF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_tarInvoice, SF_ERP_Salesforce_Clone_tarCustomer, SF_ERP_Salesforce_Clone_tciBatchLog, SF_ERP_Salesforce_Clone_tciAddress
PricebookThe templates push PricebookEntry, PriceBookEntry to Salesforce. New records are created and existing ones updated; none are deleted.PricebookEntry, PriceBookEntrySF_ERP_Salesforce_Clone_timItem
SalesorderCommercient will sync the Sales Orders from the ERP Sales Order Entry module to the Commercient Sales Order Header (MCO) objects in CRM. In the CRM, customer service and sales people can visualize the status of the order such as on hold, backorder, forward order, scheduled for delivery, whether it has shipped, and completion status. New records are created and existing ones updated; none are deleted.CommercientSF8__SAGE500_SalesOrder__c, CommercientSF8__SAGE500_SOLine__cSF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_tsoSalesOrder, SF_ERP_Salesforce_Clone_tarCustomer, SF_ERP_Salesforce_Clone_tarCustomer_pss, SF_ERP_Salesforce_Clone_tarSalesTeam

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_SAGE500_User1=0'' / ''1
Sage500 AddressCommercientSF8__SAGE500_Address__cCommercientSF8__ExternalKey__c1vw_SAGE500_Addressvw_SAGE500_AddressCommercientSF8__ / __c1
Sage500 SalespersonCommercientSF8__SAGE500_Salesperson__cCommercientSF8__ExternalKey__c2vw_SAGE500_Salespersonvw_SAGE500_SalespersonCommercientSF8__ / __c1
AccountAccountCommercientSF__Commercient_ArCustomerCode__c3vw_SAGE500_Accountvw_SAGE500_Account'' / ''1
Sage500 CustomerCommercientSF8__SAGE500_customer__cCommercientSF8__ExternalKey__c4vw_SAGE500_Customervw_SAGE500_CustomerCommercientSF8__ / __c1
Customer Reverse Lookup AccountAccountCommercientSF__Commercient_ArCustomerCode__c5vw_SAGE500_CustomerToAccountLookupvw_SAGE500_CustomerToAccountLookup'' / ''1
Sage500 Customer AddressCommercientSF8__SAGE500_CustAddr__cCommercientSF8__ExternalKey__c6vw_SAGE500_CustomerAddressvw_SAGE500_CustomerAddressCommercientSF8__ / __c1
Sage500 Ship MethodsCommercientSF8__SAGE500_ShipMethod__cCommercientSF8__ExternalKey__c7vw_SAGE500_ShipMethodvw_SAGE500_ShipMethodCommercientSF8__ / __c1
ContactContactCommercientSF8__ExternalKey__c7vw_SAGE500_Contactvw_SAGE500_Contact'' / ''1
Sage500 Customer ClassCommercientSF8__SAGE500_CustClass__cCommercientSF8__ExternalKey__c8vw_SAGE500_CustomerClassvw_SAGE500_CustomerClassCommercientSF8__ / __c1
Sage500 Customer Sales HistCommercientSF8__SAGE500_CustSalesHist__cCommercientSF8__ExternalKey__c9vw_SAGE500_CustomerSalesHistoryvw_SAGE500_CustomerSalesHistoryCommercientSF8__ / __c1
Sage500 Sales TeamCommercientSF8__SAGE500_SalesTeam__cCommercientSF8__ExternalKey__c10vw_SAGE500_SalesTeamvw_SAGE500_SalesTeamCommercientSF8__ / __c1
Sage500 Sales Team MemberCommercientSF8__SAGE500_SalesTeamMember__cCommercientSF8__ExternalKey__c11vw_SAGE500_SalesTeamMembervw_SAGE500_SalesTeamMemberCommercientSF8__ / __c1
Sage500 WarehouseCommercientSF8__SAGE500_Warehouse__cCommercientSF8__ExternalKey__c12vw_SAGE500_Warehousevw_SAGE500_WarehouseCommercientSF8__ / __c1
ProductProduct2CommercientSF__ExternalKey__c13vw_SAGE500_Productvw_SAGE500_Product'' / ''1
Create Standard PriceBookPricebookEntryExternalKey__C14vw_SAGE500_StandardPriceBookvw_SAGE500_StandardPriceBook'' / ''1
Update Standard PricebookPriceBookEntryExternalKey__C15vw_SAGE500_StandardPriceBookvw_SAGE500_StandardPriceBook_Update'' / ''1
Sage500 ItemCommercientSF8__SAGE500_Item__cCommercientSF8__ExternalKey__c16vw_SAGE500_Itemvw_SAGE500_ItemCommercientSF8__ / __c1
Item Reverse Lookup ProductProduct2CommercientSF__ExternalKey__c17vw_SAGE500_ItemToProductLookupvw_SAGE500_ItemToProductLookup'' / ''1
Sage500 UnitMeasureCommercientSF8__SAGE500_UnitMeasure__cCommercientSF8__ExternalKey__c18vw_SAGE500_UnitMeasurevw_SAGE500_UnitMeasureCommercientSF8__ / __c1
Sage500 InventoryCommercientSF8__SAGE500_Inventory__cCommercientSF8__ExternalKey__c19vw_SAGE500_Inventoryvw_SAGE500_InventoryCommercientSF8__ / __c1
Sage500 SalesOrderCommercientSF8__SAGE500_SalesOrder__cCommercientSF8__ExternalKey__c20vw_SAGE500_SalesOrdervw_SAGE500_SalesOrderCommercientSF8__ / __c1
Sage500 SalesOrderLineCommercientSF8__SAGE500_SOLine__cCommercientSF8__ExternalKey__c21vw_SAGE500_SalesOrderLinevw_SAGE500_SalesOrderLineCommercientSF8__ / __c1
Sage500 InvoiceCommercientSF8__SAGE500_Invoice__cCommercientSF8__ExternalKey__c22vw_SAGE500_Invoicevw_SAGE500_InvoiceCommercientSF8__ / __c1
Sage500 Invoice DetailCommercientSF8__SAGE500_InvoiceDetl__cCommercientSF8__ExternalKey__c23vw_SAGE500_InvoiceDetailvw_SAGE500_InvoiceDetailCommercientSF8__ / __c1

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 — 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_SAGE500_Addressvw_SAGE500_Address:ExternalKeySF_ERP_Salesforce_Clone_tciAddress, SF_ERP_Salesforce_Clone_tarCustomer
vw_SAGE500_Salespersoninsert + updatevw_SAGE500_Salesperson:vw_SAGE500_Address:ExternalKeySF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_tarSalesperson
vw_SAGE500_Accountvw_SAGE500_Account:SF_ERP_Salesforce_Clone_tarCustomer, SF_ERP_Salesforce_Clone_tarCustAddr, SF_ERP_Salesforce_Clone_tciAddress
vw_SAGE500_Customerinsert + updatevw_SAGE500_Customer:vw_SAGE500_Account:, vw_SAGE500_Address:, vw_SAGE500_Salesperson:ExternalKeySF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_tarCustomer, SF_ERP_Salesforce_Clone_tarCustAddr, SF_ERP_Salesforce_Clone_tciAddress
vw_SAGE500_CustomerToAccountLookupinsert + updatevw_SAGE500_CustomerToAccountLookup:vw_SAGE500_Customer:SF_ERP_Salesforce_Clone_tarCustomer
vw_SAGE500_CustomerAddressinsert + updatevw_SAGE500_CustomerAddress:vw_SAGE500_Customer:, vw_SAGE500_Account:, vw_SAGE500_Address:, vw_SAGE500_Salesperson:ExternalKeySF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_tarCustAddr, SF_ERP_Salesforce_Clone_tarCustomer, SF_ERP_Salesforce_Clone_tciAddress
vw_SAGE500_ShipMethodinsert + updatevw_SAGE500_ShipMethod:ExternalKeySF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_tciShipMethod
vw_SAGE500_Contactinsert + updatevw_SAGE500_Contact:vw_SAGE500_Account:SF_ERP_Salesforce_Clone_tciContact, SF_ERP_Salesforce_Clone_tarCustomer
vw_SAGE500_CustomerClassinsert + updatevw_SAGE500_CustomerClass:vw_SAGE500_Salesperson:ExternalKeySF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_tarCustClass, SF_ERP_Salesforce_Clone_StgCustClass, SF_ERP_Salesforce_Clone_tciFOB
vw_SAGE500_CustomerSalesHistoryinsert + updatevw_SAGE500_CustomerSalesHistory:vw_SAGE500_Customer:, vw_SAGE500_CustomerAddress:, vw_SAGE500_CustomerClass:ExternalKeySF_ERP_Salesforce_Clone_tarCustSalesHist, CommercientFlags
vw_SAGE500_SalesTeaminsert + updatevw_SAGE500_SalesTeam:ExternalKeySF_ERP_Salesforce_Clone_tarSalesTeam
vw_SAGE500_SalesTeamMemberinsert + updatevw_SAGE500_SalesTeamMember:vw_SAGE500_SalesTeam:, vw_SAGE500_Salesperson:ExternalKeySF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_tarSalesTeamMember
vw_SAGE500_Warehouseinsert + updatevw_SAGE500_Warehouse:ExternalKeySF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_timWarehouse, CommercientFlags
vw_SAGE500_Productinsert + updatevw_SAGE500_Product:CommercientSF__ExternalKey__cSF_ERP_Salesforce_Clone_timItem, SF_ERP_Salesforce_Clone_timWarehouse, SF_ERP_Salesforce_Clone_timItemDescription
vw_SAGE500_StandardPriceBookinsert + updatevw_SAGE500_StandardPriceBook:vw_SAGE500_Product:SF_ERP_Salesforce_Clone_timItem
vw_SAGE500_StandardPriceBook_Updateinsert + updatevw_SAGE500_StandardPriceBook:vw_SAGE500_Product:SF_ERP_Salesforce_Clone_timItem
vw_SAGE500_Iteminsert + updatevw_SAGE500_Item:vw_SAGE500_Product:, vw_SAGE500_UnitMeasure:, vw_SAGE500_Warehouse:ExternalKeySF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_timItem, SF_ERP_Salesforce_Clone_timWarehouse, SF_ERP_Salesforce_Clone_timItem_wri
vw_SAGE500_ItemToProductLookupinsert + updatevw_SAGE500_ItemToProductLookup:vw_SAGE500_Item:SF_ERP_Salesforce_Clone_timItem
vw_SAGE500_UnitMeasureinsert + updatevw_SAGE500_UnitMeasure:ExternalKeySF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_tciUnitMeasure
vw_SAGE500_Inventoryinsert + updatevw_SAGE500_Inventory:vw_SAGE500_Warehouse:, vw_SAGE500_Item:ExternalKeySF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_timInventory, SF_ERP_Salesforce_Clone_timWarehouse, SF_ERP_Salesforce_Clone_timInvtBinList
vw_SAGE500_SalesOrderinsert + updatevw_SAGE500_SalesOrder:vw_SAGE500_Account:, vw_SAGE500_Customer:, vw_SAGE500_Address:, vw_SAGE500_ShipMethod:, vw_SAGE500_Salesperson:ExternalKeySF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_tsoSalesOrder, SF_ERP_Salesforce_Clone_tarCustomer, SF_ERP_Salesforce_Clone_tarCustomer_pss
vw_SAGE500_SalesOrderLineinsert + updatevw_SAGE500_SalesOrderLine:vw_SAGE500_SalesOrder:, vw_SAGE500_Address:, vw_SAGE500_Item:ExternalKeySF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_tsoSalesOrder, SF_ERP_Salesforce_Clone_tarCustomer, SF_ERP_Salesforce_Clone_tarCustomer_pss
vw_SAGE500_Invoiceinsert + updatevw_SAGE500_Invoice:vw_SAGE500_Account:, vw_SAGE500_Customer:, vw_SAGE500_Address:, vw_SAGE500_ShipMethod:ExternalKeySF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_tarInvoice, SF_ERP_Salesforce_Clone_tarCustomer, SF_ERP_Salesforce_Clone_tciBatchLog
vw_SAGE500_InvoiceDetailinsert + updatevw_SAGE500_InvoiceDetail:vw_SAGE500_Invoice:, vw_SAGE500_Address:, vw_SAGE500_Item:ExternalKeySF_ERP_Salesforce_Clone_tsmListValidation, SF_ERP_Salesforce_Clone_tsmLocalString, SF_ERP_Salesforce_Clone_tarInvoiceDetl, SF_ERP_Salesforce_Clone_tarInvoice, SF_ERP_Salesforce_Clone_timItem

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 23. A run processes active rows in ascending Sync_Order, which is the order the templates put them in:

  • 0 — GET USER
  • 1 — Sage500 Address
  • 2 — Sage500 Salesperson
  • 3 — Account
  • 4 — Sage500 Customer
  • 5 — Customer Reverse Lookup Account
  • 6 — Sage500 Customer Address
  • 7 — Sage500 Ship Methods, Contact
  • 8 — Sage500 Customer Class
  • 9 — Sage500 Customer Sales Hist
  • 10 — Sage500 Sales Team
  • 11 — Sage500 Sales Team Member
  • 12 — Sage500 Warehouse
  • 13 — Product
  • 14 — Create Standard PriceBook
  • 15 — Update Standard Pricebook
  • 16 — Sage500 Item
  • 17 — Item Reverse Lookup Product
  • 18 — Sage500 UnitMeasure
  • 19 — Sage500 Inventory
  • 20 — Sage500 SalesOrder
  • 21 — Sage500 SalesOrderLine
  • 22 — Sage500 Invoice
  • 23 — Sage500 Invoice Detail

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_SAGE500_CustomerSalesHistory reads vw_SAGE500_Customer:, vw_SAGE500_CustomerAddress:, vw_SAGE500_CustomerClass:
  • vw_SAGE500_CustomerToAccountLookup reads vw_SAGE500_Customer:
  • vw_SAGE500_Contact reads vw_SAGE500_Account:
  • vw_SAGE500_Customer reads vw_SAGE500_Account:, vw_SAGE500_Address:, vw_SAGE500_Salesperson:
  • vw_SAGE500_CustomerClass reads vw_SAGE500_Salesperson:
  • vw_SAGE500_CustomerAddress reads vw_SAGE500_Customer:, vw_SAGE500_Account:, vw_SAGE500_Address:, vw_SAGE500_Salesperson:
  • vw_SAGE500_Item reads vw_SAGE500_Product:, vw_SAGE500_UnitMeasure:, vw_SAGE500_Warehouse:
  • vw_SAGE500_Inventory reads vw_SAGE500_Warehouse:, vw_SAGE500_Item:
  • vw_SAGE500_Invoice reads vw_SAGE500_Account:, vw_SAGE500_Customer:, vw_SAGE500_Address:, vw_SAGE500_ShipMethod:
  • vw_SAGE500_InvoiceDetail reads vw_SAGE500_Invoice:, vw_SAGE500_Address:, vw_SAGE500_Item:
  • vw_SAGE500_StandardPriceBook reads vw_SAGE500_Product:
  • vw_SAGE500_StandardPriceBook_Update reads vw_SAGE500_Product:
  • vw_SAGE500_ItemToProductLookup reads vw_SAGE500_Item:
  • vw_SAGE500_SalesOrder reads vw_SAGE500_Account:, vw_SAGE500_Customer:, vw_SAGE500_Address:, vw_SAGE500_ShipMethod:, vw_SAGE500_Salesperson:
  • vw_SAGE500_SalesOrderLine reads vw_SAGE500_SalesOrder:, vw_SAGE500_Address:, vw_SAGE500_Item:
  • vw_SAGE500_Salesperson reads vw_SAGE500_Address:
  • vw_SAGE500_SalesTeamMember reads vw_SAGE500_SalesTeam:, vw_SAGE500_Salesperson:

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
Sage500 AddressCommercientSF8__SAGE500_Address__c20AddrKeyCommercientSF8__ExternalKey__c, AddrKeyCommercientSF8__Name__c, AddrLine1CommercientSF8__AddrLine1__c, AddrLine2CommercientSF8__AddrLine2__c, AddrLine3CommercientSF8__AddrLine3__c
Sage500 SalespersonCommercientSF8__SAGE500_Salesperson__c18SperKeyCommercientSF8__ExternalKey__c, AddrKeyCommercientSF8__Address__c, CompanyIDCompanyID, CRMUserIDCRMUserID, EMailAddrEMailAddr
AccountAccount13CustIDCommercientSF__Commercient_ArCustomerCode__c, CustNameName, AddrLine1, AddrLine2, AddrLine3BillingStreet, CityBillingCity, StateIDBillingState
Sage500 CustomerCommercientSF8__SAGE500_customer__c81CustIDCommercientSF8__ExternalKey__c, SFDCIDCommercientSF8__Account__c, SFDCIDCommercientSF8__Address__c, SFDCIDCommercientSF8__Salesperson__c, ActiveStatusCommercientSF8__ActiveStatus__c
Customer Reverse Lookup AccountAccount2CustIDCommercientSF__Commercient_ArCustomerCode__c, SFDCIDCommercientSF8__SAGE500_Customer_Record__c
Sage500 Customer AddressCommercientSF8__SAGE500_CustAddr__c52BackOrdPriceCommercientSF8__BackOrdPriceValue__c, CarrierBillMethCommercientSF8__CarrierBillMethValue__c, CreateTypeCommercientSF8__CreateTypeValue__c, FreightMethodCommercientSF8__FreightMethodValue__c, PriceBaseCommercientSF8__PriceBaseValue__c
Sage500 Ship MethodsCommercientSF8__SAGE500_ShipMethod__c23CalcMethCommercientSF8__CalcMethValue__c, ShipMethKeyCommercientSF8__ExternalKey__c, CalcUnitCommercientSF8__CalcUnit__c, CompanyIDCommercientSF8__CompanyID__c, ShipMethDescCommercientSF8__ShipMethDesc__c
ContactContact7CommercientSF8__ExternalKeyCommercientSF8__ExternalKey__c, LastNameLastName, EmailEmail, AccountIdAccountId, TitleTitle
Sage500 Customer ClassCommercientSF8__SAGE500_CustClass__c63BillingTypeCommercientSF8__BillingTypeValue__c, CreateTypeCommercientSF8__CreateTypeValue__c, CreditLimitAgeCatCommercientSF8__CreditLimitAgeCatValue__c, FOBIDCommercientSF8__FOBID__c, PmtTermsIDCommercientSF8__PmtTermsID__c
Sage500 Customer Sales HistCommercientSF8__SAGE500_CustSalesHist__c19CustClassKey, CustKey, PostDate, ShipToCustAddrKeyCommercientSF8__ExternalKey__c, SFDCIDCustomer_Record, SFDCIDCustomer_Address, SFDCIDCustomer_Class, FiscYearFiscYear
Sage500 Sales TeamCommercientSF8__SAGE500_SalesTeam__c7SalesTeamKeyCommercientSF8__ExternalKey__c, CompanyIDCommercientSF8__CompanyID__c, SalesTeamIDCommercientSF8__SalesTeamID__c, DescriptionName, DescriptionDescription
Sage500 Sales Team MemberCommercientSF8__SAGE500_SalesTeamMember__c11SalesTeamMemberKeyCommercientSF8__ExternalKey__c, SalesTeamMemberKeyCommercientSF8__Name__c, SalesTeamKeyCommercientSF8__SalesTeam__c, SperKeyCommercientSF8__Salesperson__c, CanProcessTeamTransCommercientSF8__CanProcessTeamTrans__c
Sage500 WarehouseCommercientSF8__SAGE500_Warehouse__c68WhseKeyCommercientSF8__ExternalKey__c, CompanyIDCommercientSF8__CompanyID__c, DescriptionCommercientSF8__Description__c, ImmedPickPrinterDestCommercientSF8__ImmedPickPrinterDest__c, ImmedInvcPrinterDestCommercientSF8__ImmedInvcPrinterDest__c
ProductProduct26ItemIDCommercientSF__ExternalKey__c, ItemIDProductCode, DescriptionCommercientSF__Default_Warehouse__c, ShortDescName, LongDescDescription
Create Standard PriceBookPricebookEntry3ItemIDExternalKey__c, ItemIDProduct2ID, StdPriceUnitPrice
Update Standard PricebookPriceBookEntry3ItemIDExternalKey__c, IsActiveIsActive, StdPriceUnitPrice
Sage500 ItemCommercientSF8__SAGE500_Item__c64CommodityCodeIDCommercientSF8__CommodityCode__c, AdjQtyRoundMethCommercientSF8__AdjQtyRoundMeth__c, CreateTypeCommercientSF8__CreateType__c, ItemTypeCommercientSF8__ItemType__c, StatusCommercientSF8__Status__c
Item Reverse Lookup ProductProduct22ItemIDCommercientSF__ExternalKey__c, SFDCIDCommercientSF8__SAGE500_Item__c
Sage500 UnitMeasureCommercientSF8__SAGE500_UnitMeasure__c8MeasTypeCommercientSF8__MeasTypeValue__c, UnitMeasKeyCommercientSF8__ExternalKey__c, CompanyIDCommercientSF8__CompanyID__c, UnitMeasIDCommercientSF8__UnitMeasID__c, MeasTypeCommercientSF8__MeasType__c
Sage500 InventoryCommercientSF8__SAGE500_Inventory__c69CreateTypeCommercientSF8__CreateTypeValue__c, PickMethodCommercientSF8__PickMethodValue__c, ReordMethCommercientSF8__ReordMethValue__c, StatusCommercientSF8__StatusValue__c, ItemKey, WhseKeyCommercientSF8__ExternalKey__c
Sage500 SalesOrderCommercientSF8__SAGE500_SalesOrder__c92CreateTypeCommercientSF8__CreateTypeValue__c, DfltDeliveryMethCommercientSF8__DfltDeliveryMethValue__c, FreightMethodCommercientSF8__FreightMethodValue__c, StatusCommercientSF8__StatusValue__c, CustIDCommercientSF8__CustID__c
Sage500 SalesOrderLineCommercientSF8__SAGE500_SOLine__c72SOLineKeyCommercientSF8__ExternalKey__c, NameCommercientSF8__Name__c, SOKeyCommercientSF8__SalesOrder__c, BillToAddrKeyCommercientSF8__Bill_To_Address__c, DfltShipToAddrKeyCommercientSF8__ShipToAddress__c
Sage500 InvoiceCommercientSF8__SAGE500_Invoice__c69CreateTypeCommercientSF8__CreateTypeValue__c, SourceModuleCommercientSF8__SourceModuleValue__c, StatusCommercientSF8__StatusValue__c, InvcKeyCommercientSF8__ExternalKey__c, InvcKeyCommercientSF8__Name__c
Sage500 Invoice DetailCommercientSF8__SAGE500_InvoiceDetl__c58CommBaseCommercientSF8__CommBaseValue__c, RtrnTypeCommercientSF8__RtrnTypeValue__c, CustIDCommercientSF8__CustID__c, CustClassIDCommercientSF8__CustClassID__c, CustClassNameCommercientSF8__CustClassName__c

6. Community templates

The catalogue carries 135 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: 135
  • Default operations: insert on 135, update on 135, delete on 135
  • Marked circular-sync: 3
  • Licence groups they span: 14
  • Destination objects: Account, Product2, CommercientSF8__SAGE500_SalesOrder__c, CommercientSF8__SAGE500_customer__c, CommercientSF8__SAGE500_Address__c, CommercientSF8__SAGE500_Invoice__c, CommercientSF8__SAGE500_InvoiceDetl__c, CommercientSF8__SAGE500_Item__c, CommercientSF8__SAGE500_SOLine__c, Contact, PriceBookEntry, CommercientSF8__SAGE500_CustAddr__c, CommercientSF8__SAGE500_Salesperson__c, CommercientSF8__SAGE500_Warehouse__c, CommercientSF8__SAGE500_Inventory__c, CommercientSF8__SAGE500_Shipment__c, CommercientSF8__SAGE500_ShipMethod__c, CommercientSF8__SAGE500_CustClass__c, CommercientSF8__SAGE500_CustSalesHist__c, CommercientSF8__SAGE500_ShipLine__c, 13 more and 17 custom objects
  • Object display names: Account, Customer Reverse Lookup Account, Sage500 Address, Sage500 Customer, Sage500 SalesOrder, Item Reverse Lookup Product, Product, Sage500 Invoice, Sage500 Invoice Detail, Sage500 Item, Sage500 SalesOrderLine, Sage500 Customer Address, 66 more and 19 further templates
  • Template groups: Account, Product, Customer Multi Ship Addresses, Salesorder, Invoice, CRM Opportunity and Line, Opportunity, Pricebook

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_SAGE500_ShipMethod
  • vw_SAGE500_CustomerSalesHistory
  • vw_SAGE500_UnitMeasure
  • vw_SAGE500_User
  • vw_SAGE500_Account
  • vw_SAGE500_CustomerToAccountLookup
  • vw_SAGE500_Contact
  • vw_SAGE500_Customer
  • vw_SAGE500_CustomerClass
  • vw_SAGE500_Address
  • vw_SAGE500_CustomerAddress
  • vw_SAGE500_Warehouse
  • vw_SAGE500_Item
  • vw_SAGE500_Inventory
  • vw_SAGE500_Invoice
  • vw_SAGE500_InvoiceDetail
  • vw_SAGE500_StandardPriceBook
  • vw_SAGE500_Product
  • vw_SAGE500_ItemToProductLookup
  • vw_SAGE500_SalesOrder
  • vw_SAGE500_SalesOrderLine
  • vw_SAGE500_Salesperson
  • vw_SAGE500_SalesTeam
  • vw_SAGE500_SalesTeamMember

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 500 → 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.