Source ERP · 82 of 105

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

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

CRMPro → Salesforce — Sage 200 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-200-us.md, and that skill’s ERP table is what points at it. What follows is only what the shipped Sage 200 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
SAGE200US Vendor MasterERP APVEND data becomes APVEND__c in Salesforce. New records are created and existing ones updated; none are deleted.APVEND__cSF_ERP_Salesforce_Clone_APVEND
LocationERP ICLOCT data becomes CommercientSF7__ICLOCT__c in Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF7__ICLOCT__cSF_ERP_Salesforce_Clone_ICLOCT
SAGE200US WorkOrder HeaderERP ARCUST, SOMAST, SOSLSM data becomes WOMAST__c in Salesforce. New records are created and existing ones updated; none are deleted.WOMAST__cSF_ERP_Salesforce_Clone_WOMAST, SF_ERP_Salesforce_Clone_SOMAST, SF_ERP_Salesforce_Clone_ARCUST, SF_ERP_Salesforce_Clone_SOSLSM, CommercientFlags
SAGE200US WorkOrder LineERP ICITEM, WOMAST, WOTRAN data becomes WOTRAN__c in Salesforce. New records are created and existing ones updated; none are deleted.WOTRAN__cSF_ERP_Salesforce_Clone_WOTRAN, SF_ERP_Salesforce_Clone_WOMAST, SF_ERP_Salesforce_Clone_ICITEM
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, CommercientSF7__SOSLSM__cSF_ERP_Salesforce_Clone_ARCUST, SF_ERP_Salesforce_Clone_ARCADR, SF_ERP_Salesforce_Clone_SOSLSM
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.Sage200US_Invoice_Payments__cSF_ERP_Salesforce_Clone_ARCASH, SF_ERP_Salesforce_Clone_ARMAST, SF_ERP_Salesforce_Clone_ARCUST
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.CommercientSF7__ARCADR__c, CommercientSF7__ARADDR__cSF_ERP_Salesforce_Clone_ARCADR, SF_ERP_Salesforce_Clone_ARCUST, SF_ERP_Salesforce_Clone_SOSLSM, SF_ERP_Salesforce_Clone_ARADDR, SF_ERP_Salesforce_Clone_ARMAST
ProductERP ICILOC, ICITEM, ICLOCT data becomes CommercientSF7__ICILOC__c, CommercientSF7__ICITEM__c, PEBMHD__c in Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF7__ICILOC__c, CommercientSF7__ICITEM__c, PEBMHD__c, PEBMDT__c, Product2SF_ERP_Salesforce_Clone_ICILOC, SF_ERP_Salesforce_Clone_ICITEM, from, to, SF_ERP_Salesforce_Clone_ICLOCT, SF_ERP_Salesforce_Clone_PEBMHD
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.CommercientSF7__ARMAST__c, CommercientSF7__ARTRAN__cSF_ERP_Salesforce_Clone_ARMAST, SF_ERP_Salesforce_Clone_SOMAST, SF_ERP_Salesforce_Clone_ARCUST, CommercientFlags, SF_ERP_Salesforce_Clone_ARTRAN, SF_ERP_Salesforce_Clone_ICITEM
PricebookERP ICITEM data becomes PricebookEntry in Salesforce. New records are created and existing ones updated; none are deleted.PricebookEntrySF_ERP_Salesforce_Clone_ICITEM
Purchase OrderERP POMAST, APVEND, ICLOCT data becomes POMAST__c in Salesforce. New records are created and existing ones updated; none are deleted.POMAST__cSF_ERP_Salesforce_Clone_POMAST, SF_ERP_Salesforce_Clone_APVEND, SF_ERP_Salesforce_Clone_ICLOCT, SF_ERP_Salesforce_Clone_SOSLSM, CommercientFlags
Purchase Order LineERP POTRAN, POMAST, ICITEM data becomes POTRAN__c in Salesforce. New records are created and existing ones updated; none are deleted.POTRAN__cSF_ERP_Salesforce_Clone_POTRAN, SF_ERP_Salesforce_Clone_POMAST, SF_ERP_Salesforce_Clone_ICITEM
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.CommercientSF7__ARCUST__c, CommercientSF7__SOMAST__c, CommercientSF7__SOTRAN__cSF_ERP_Salesforce_Clone_ARCUST, SF_ERP_Salesforce_Clone_SOSLSM, SF_ERP_Salesforce_Clone_SOMAST, SF_ERP_Salesforce_Clone_ICLOCT, CommercientFlags, SF_ERP_Salesforce_Clone_SOTRAN

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_SAGE200US_User1=0'' / ''1
SAGE200US SalespersonCommercientSF7__SOSLSM__cCommercientSF7__ExternalKey__c1vw_SAGE200US_SalesPersonvw_SAGE200US_SalesPersonCommercientSF7__ / __c1
SAGE200US SalespersonCommercientSF7__SOSLSM__cCommercientSF7__ExternalKey__c1vw_SAGE200US_SalesPersonvw_SAGE200US_SalesPersonCommercientSF7__ / __c1
AccountAccountCommercientSF__Commercient_ArCustomerCode__c2vw_SAGE200US_Accountvw_SAGE200US_Account'' / ''1
SAGE200US Customer MasterCommercientSF7__ARCUST__cCommercientSF7__ExternalKey__c3vw_SAGE200US_Customervw_SAGE200US_CustomerCommercientSF7__ / __c1
Customer To Account Reverse LookupAccountCommercientSF__Commercient_ArCustomerCode__c4vw_SAGE200US_CustomerToAccountLookupvw_SAGE200US_CustomerToAccountLookup'' / ''1
SAGE200US Vendor MasterAPVEND__cExternalKey__c5vw_SAGE200US_Vendorvw_SAGE200US_Vendor'' / __c1
Contact syncContactCommercientSF8__ExternalKey__c6vw_SAGE200US_Contactvw_SAGE200US_Contact'' / ''1
SAGE200US Customer Ship To AddressCommercientSF7__ARCADR__cCommercientSF7__ExternalKey__c7vw_SAGE200US_ShipToAddressvw_SAGE200US_ShipToAddressCommercientSF7__ / __c1
ProductProduct2CommercientSF__ExternalKey__c8vw_SAGE200US_Productvw_SAGE200US_Product'' / ''1
LocationCommercientSF7__ICLOCT__cCommercientSF7__ExternalKey__c9vw_SAGE200US_Locationvw_SAGE200US_LocationCommercientSF7__ / __c1
Item LocationCommercientSF7__ICILOC__cCommercientSF7__ExternalKey__c10vw_SAGE200US_ItemLocationvw_SAGE200US_ItemLocationCommercientSF7__ / __c1
Item MasterCommercientSF7__ICITEM__cCommercientSF7__ExternalKey__c11vw_SAGE200US_ItemMastervw_SAGE200US_ItemMasterCommercientSF7__ / __c1
Create Standard PriceBookPricebookEntryExternalKey__c12vw_SAGE200US_PriceBookEntryvw_SAGE200US_CreateStandardPriceBook'' / ''1
Update Standard PriceBookPricebookEntryExternalKey__c13vw_SAGE200US_PriceBookEntryvw_SAGE200US_UpdateStandardPriceBook'' / ''1
Item Master Reverse Lookup With ProductProduct2CommercientSF__ExternalKey__c14vw_SAGE200US_ItemProductReverseLookupvw_SAGE200US_ItemProductReverseLookup'' / ''1
SAGE200US Sales Order HeaderCommercientSF7__SOMAST__cCommercientSF7__ExternalKey__c15vw_SAGE200US_SalesOrderHeadervw_SAGE200US_SalesOrderHeaderCommercientSF7__ / __c1
SAGE200US Sales Order DetailCommercientSF7__SOTRAN__cCommercientSF7__ExternalKey__c16vw_SAGE200US_SalesOrderDetailvw_SAGE200US_SalesOrderDetailCommercientSF7__ / __c1
SAGE200US Invoice HeaderCommercientSF7__ARMAST__cCommercientSF7__ExternalKey__c17vw_SAGE200US_InvoiceHeadervw_SAGE200US_InvoiceHeaderCommercientSF7__ / __c1
SAGE200US Invoice DetailCommercientSF7__ARTRAN__cCommercientSF7__ExternalKey__c18vw_SAGE200US_InvoiceDetailvw_SAGE200US_InvoiceDetailCommercientSF7__ / __c1
SAGE200 US BOM HeaderPEBMHD__cExternalKey__c19vw_SAGE200US_BOMHeadervw_SAGE200US_BOMHeader'' / __c1
SAGE200 US BOMLinePEBMDT__cExternalKey__c20vw_SAGE200US_BOMLinevw_SAGE200US_BOMLine'' / __c1
Sage 200US Invoice PaymentsSage200US_Invoice_Payments__cExternalKey__c21vw_SAGE200US_InvoicePaymentvw_SAGE200US_InvoicePayment'' / __c1
SAGE200US PurchaseOrder HeaderPOMAST__cExternalKey__c22vw_SAGE200US_PurchaseOrderHeadervw_SAGE200US_PurchaseOrderHeader'' / __c1
SAGE200US PurchaseOrder LinePOTRAN__cExternalKey__c23vw_SAGE200US_PurchaseOrderLinevw_SAGE200US_PurchaseOrderLine'' / __c1
SAGE200US WorkOrder HeaderWOMAST__cExternalKey__c24vw_SAGE200US_WorkOrderHeadervw_SAGE200US_WorkOrderHeader'' / __c1
SAGE200US WorkOrder LineWOTRAN__cExternalKey__c25vw_SAGE200US_WorkOrderDetailvw_SAGE200US_WorkOrderDetail'' / __c1
SAGE200 ShipToAddress ARADDRCommercientSF7__ARADDR__cCommercientSF7__ExternalKey__c26vw_SAGE200US_shipToAddress_ARADDRvw_SAGE200US_shipToAddress_ARADDRCommercientSF7__ / __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, Account, Contact sync, 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_SAGE200US_SalesPersoninsert + updatevw_SAGE200US_SalesPerson:SF_ERP_Salesforce_Clone_SOSLSM
vw_SAGE200US_SalesPersoninsert + updatevw_SAGE200US_SalesPerson:SF_ERP_Salesforce_Clone_SOSLSM
vw_SAGE200US_Accountinsert + updatevw_SAGE200US_Account:vw_SAGE200US_SalesPerson:, vw_SAGE200US_User:SF_ERP_Salesforce_Clone_ARCUST, SF_ERP_Salesforce_Clone_ARCADR, SF_ERP_Salesforce_Clone_SOSLSM
vw_SAGE200US_Customerinsert + updatevw_SAGE200US_Customer:vw_SAGE200US_SalesPerson:, vw_SAGE200US_Account:SF_ERP_Salesforce_Clone_ARCUST, SF_ERP_Salesforce_Clone_SOSLSM
vw_SAGE200US_CustomerToAccountLookupinsert + updatevw_SAGE200US_CustomerToAccountLookup:vw_SAGE200US_Customer:SF_ERP_Salesforce_Clone_ARCUST
vw_SAGE200US_Vendorinsert + updatevw_SAGE200US_Vendor:vw_SAGE200US_VendorAccount:SF_ERP_Salesforce_Clone_APVEND
vw_SAGE200US_Contactinsert + updatevw_SAGE200US_Contact:vw_SAGE200US_Account:SF_ERP_Salesforce_Clone_ARCUST
vw_SAGE200US_ShipToAddressinsert + updatevw_SAGE200US_ShipToAddress:vw_SAGE200US_Account:, vw_SAGE200US_Customer:, vw_SAGE200US_SalesPerson:SF_ERP_Salesforce_Clone_ARCADR, SF_ERP_Salesforce_Clone_ARCUST, SF_ERP_Salesforce_Clone_SOSLSM
vw_SAGE200US_Productinsert + updatevw_SAGE200US_Product:CommercientSF__ExternalKey__cSF_ERP_Salesforce_Clone_ICITEM
vw_SAGE200US_Locationinsert + updatevw_SAGE200US_Location:SF_ERP_Salesforce_Clone_ICLOCT
vw_SAGE200US_ItemLocationinsert + updatevw_SAGE200US_ItemLocation:vw_SAGE200US_Product:, vw_SAGE200US_ItemMaster:, vw_SAGE200US_Location:SF_ERP_Salesforce_Clone_ICILOC, SF_ERP_Salesforce_Clone_ICITEM, from, to, SF_ERP_Salesforce_Clone_ICLOCT
vw_SAGE200US_ItemMasterinsert + updatevw_SAGE200US_ItemMaster:vw_SAGE200US_Product:ExternalKeySF_ERP_Salesforce_Clone_ICITEM
vw_SAGE200US_CreateStandardPriceBookinsert + updatevw_SAGE200US_PriceBookEntry:vw_SAGE200US_Product:ExternalKey__cSF_ERP_Salesforce_Clone_ICITEM
vw_SAGE200US_UpdateStandardPriceBookinsert + updatevw_SAGE200US_PriceBookEntry:vw_SAGE200US_Product:ExternalKey__cSF_ERP_Salesforce_Clone_ICITEM
vw_SAGE200US_ItemProductReverseLookupinsert + updatevw_SAGE200US_ItemProductReverseLookup:vw_SAGE200US_ItemMaster:SF_ERP_Salesforce_Clone_ICITEM
vw_SAGE200US_SalesOrderHeaderinsert + updatevw_SAGE200US_SalesOrderHeader:vw_SAGE200US_Account:, vw_SAGE200US_Customer:, vw_SAGE200US_SalesPerson:, vw_SAGE200US_Location:SF_ERP_Salesforce_Clone_SOMAST, SF_ERP_Salesforce_Clone_ARCUST, SF_ERP_Salesforce_Clone_SOSLSM, SF_ERP_Salesforce_Clone_ICLOCT, CommercientFlags
vw_SAGE200US_SalesOrderDetailinsert + updatevw_SAGE200US_SalesOrderDetail:vw_SAGE200US_SalesOrderHeader:, vw_SAGE200US_Product:, vw_SAGE200US_ItemMaster:SF_ERP_Salesforce_Clone_SOTRAN, SF_ERP_Salesforce_Clone_SOMAST, SF_ERP_Salesforce_Clone_ICITEM
vw_SAGE200US_InvoiceHeaderinsert + updatevw_SAGE200US_InvoiceHeader:vw_SAGE200US_Account:, vw_SAGE200US_Customer:, vw_SAGE200US_SalesOrderHeader:SF_ERP_Salesforce_Clone_ARMAST, SF_ERP_Salesforce_Clone_SOMAST, SF_ERP_Salesforce_Clone_ARCUST, CommercientFlags
vw_SAGE200US_InvoiceDetailinsert + updatevw_SAGE200US_InvoiceDetail:vw_SAGE200US_InvoiceHeader:, vw_SAGE200US_Product:, vw_SAGE200US_ItemMaster:, vw_SAGE200US_Location:SF_ERP_Salesforce_Clone_ARTRAN, SF_ERP_Salesforce_Clone_ARMAST, SF_ERP_Salesforce_Clone_ICITEM, SF_ERP_Salesforce_Clone_ICLOCT
vw_SAGE200US_BOMHeaderinsert + updatevw_SAGE200US_BOMHeader:vw_SAGE200US_ItemMaster:, vw_SAGE200US_Product:, vw_SAGE200US_Location:ExternalKeySF_ERP_Salesforce_Clone_PEBMHD, SF_ERP_Salesforce_Clone_ICITEM, SF_ERP_Salesforce_Clone_ICILOC, SF_ERP_Salesforce_Clone_ICLOCT
vw_SAGE200US_BOMLineinsert + updatevw_SAGE200US_BOMLine:vw_SAGE200US_BOMHeader:, vw_SAGE200US_ItemMaster:, vw_SAGE200US_Location:SF_ERP_Salesforce_Clone_PEBMDT, SF_ERP_Salesforce_Clone_PEBMHD, SF_ERP_Salesforce_Clone_ICITEM, SF_ERP_Salesforce_Clone_ICLOCT
vw_SAGE200US_InvoicePaymentinsert + updatevw_SAGE200US_InvoicePayment:vw_SAGE200US_InvoiceHeader:, vw_SAGE200US_Account:, vw_SAGE200US_Customer:SF_ERP_Salesforce_Clone_ARCASH, SF_ERP_Salesforce_Clone_ARMAST, SF_ERP_Salesforce_Clone_ARCUST
vw_SAGE200US_PurchaseOrderHeaderinsert + updatevw_SAGE200US_PurchaseOrderHeader:vw_SAGE200US_Account:, vw_SAGE200US_Customer:, vw_SAGE200US_Vendor:, vw_SAGE200US_Location:, vw_SAGE200US_SalesPerson:SF_ERP_Salesforce_Clone_POMAST, SF_ERP_Salesforce_Clone_APVEND, SF_ERP_Salesforce_Clone_ICLOCT, SF_ERP_Salesforce_Clone_SOSLSM, CommercientFlags
vw_SAGE200US_PurchaseOrderLineinsert + updatevw_SAGE200US_PurchaseOrderLine:vw_SAGE200US_PurchaseOrderHeader:, vw_SAGE200US_Product:, vw_SAGE200US_ItemMaster:SF_ERP_Salesforce_Clone_POTRAN, SF_ERP_Salesforce_Clone_POMAST, SF_ERP_Salesforce_Clone_ICITEM
vw_SAGE200US_WorkOrderHeaderinsert + updatevw_SAGE200US_WorkOrderHeader:vw_SAGE200US_Account:, vw_SAGE200US_Customer:, vw_SAGE200US_SalesPerson:, vw_SAGE200US_SalesOrderHeader:SF_ERP_Salesforce_Clone_WOMAST, SF_ERP_Salesforce_Clone_SOMAST, SF_ERP_Salesforce_Clone_ARCUST, SF_ERP_Salesforce_Clone_SOSLSM, CommercientFlags
vw_SAGE200US_WorkOrderDetailinsert + updatevw_SAGE200US_WorkOrderDetail:vw_SAGE200US_WorkOrderHeader:, vw_SAGE200US_Product:, vw_SAGE200US_ItemMaster:SF_ERP_Salesforce_Clone_WOTRAN, SF_ERP_Salesforce_Clone_WOMAST, SF_ERP_Salesforce_Clone_ICITEM
vw_SAGE200US_shipToAddress_ARADDRinsert + updatevw_SAGE200US_shipToAddress_ARADDR:vw_SAGE200US_Customer:, vw_SAGE200US_Account:, vw_SAGE200US_ShipToAddress:, vw_SAGE200US_InvoiceHeader:SF_ERP_Salesforce_Clone_ARADDR, SF_ERP_Salesforce_Clone_ARMAST, SF_ERP_Salesforce_Clone_ARCADR, SF_ERP_Salesforce_Clone_ARCUST

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 — SAGE200US Salesperson
  • 2 — Account
  • 3 — SAGE200US Customer Master
  • 4 — Customer To Account Reverse Lookup
  • 5 — SAGE200US Vendor Master
  • 6 — Contact sync
  • 7 — SAGE200US Customer Ship To Address
  • 8 — Product
  • 9 — Location
  • 10 — Item Location
  • 11 — Item Master
  • 12 — Create Standard PriceBook
  • 13 — Update Standard PriceBook
  • 14 — Item Master Reverse Lookup With Product
  • 15 — SAGE200US Sales Order Header
  • 16 — SAGE200US Sales Order Detail
  • 17 — SAGE200US Invoice Header
  • 18 — SAGE200US Invoice Detail
  • 19 — SAGE200 US BOM Header
  • 20 — SAGE200 US BOMLine
  • 21 — Sage 200US Invoice Payments
  • 22 — SAGE200US PurchaseOrder Header
  • 23 — SAGE200US PurchaseOrder Line
  • 24 — SAGE200US WorkOrder Header
  • 25 — SAGE200US WorkOrder Line
  • 26 — SAGE200 ShipToAddress ARADDR

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_SAGE200US_Vendor reads vw_SAGE200US_VendorAccount:; no template in this set writes vw_SAGE200US_VendorAccount:
  • vw_SAGE200US_WorkOrderHeader reads vw_SAGE200US_Account:, vw_SAGE200US_Customer:, vw_SAGE200US_SalesPerson:, vw_SAGE200US_SalesOrderHeader:
  • vw_SAGE200US_WorkOrderDetail reads vw_SAGE200US_WorkOrderHeader:, vw_SAGE200US_Product:, vw_SAGE200US_ItemMaster:
  • vw_SAGE200US_Account reads vw_SAGE200US_SalesPerson:, vw_SAGE200US_User:
  • vw_SAGE200US_CustomerToAccountLookup reads vw_SAGE200US_Customer:
  • vw_SAGE200US_InvoicePayment reads vw_SAGE200US_InvoiceHeader:, vw_SAGE200US_Account:, vw_SAGE200US_Customer:
  • vw_SAGE200US_Contact reads vw_SAGE200US_Account:
  • vw_SAGE200US_ShipToAddress reads vw_SAGE200US_Account:, vw_SAGE200US_Customer:, vw_SAGE200US_SalesPerson:
  • vw_SAGE200US_shipToAddress_ARADDR reads vw_SAGE200US_Customer:, vw_SAGE200US_Account:, vw_SAGE200US_ShipToAddress:, vw_SAGE200US_InvoiceHeader:
  • vw_SAGE200US_ItemLocation reads vw_SAGE200US_Product:, vw_SAGE200US_ItemMaster:, vw_SAGE200US_Location:
  • vw_SAGE200US_ItemMaster reads vw_SAGE200US_Product:
  • vw_SAGE200US_BOMHeader reads vw_SAGE200US_ItemMaster:, vw_SAGE200US_Product:, vw_SAGE200US_Location:
  • vw_SAGE200US_BOMLine reads vw_SAGE200US_BOMHeader:, vw_SAGE200US_ItemMaster:, vw_SAGE200US_Location:
  • vw_SAGE200US_InvoiceHeader reads vw_SAGE200US_Account:, vw_SAGE200US_Customer:, vw_SAGE200US_SalesOrderHeader:
  • vw_SAGE200US_InvoiceDetail reads vw_SAGE200US_InvoiceHeader:, vw_SAGE200US_Product:, vw_SAGE200US_ItemMaster:, vw_SAGE200US_Location:
  • vw_SAGE200US_CreateStandardPriceBook reads vw_SAGE200US_Product:
  • vw_SAGE200US_UpdateStandardPriceBook reads vw_SAGE200US_Product:
  • vw_SAGE200US_ItemProductReverseLookup reads vw_SAGE200US_ItemMaster:
  • vw_SAGE200US_PurchaseOrderHeader reads vw_SAGE200US_Account:, vw_SAGE200US_Customer:, vw_SAGE200US_Vendor:, vw_SAGE200US_Location:, vw_SAGE200US_SalesPerson:
  • vw_SAGE200US_PurchaseOrderLine reads vw_SAGE200US_PurchaseOrderHeader:, vw_SAGE200US_Product:, vw_SAGE200US_ItemMaster:
  • vw_SAGE200US_Customer reads vw_SAGE200US_SalesPerson:, vw_SAGE200US_Account:
  • vw_SAGE200US_SalesOrderHeader reads vw_SAGE200US_Account:, vw_SAGE200US_Customer:, vw_SAGE200US_SalesPerson:, vw_SAGE200US_Location:
  • vw_SAGE200US_SalesOrderDetail reads vw_SAGE200US_SalesOrderHeader:, vw_SAGE200US_Product:, vw_SAGE200US_ItemMaster:

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
SAGE200US SalespersonCommercientSF7__SOSLSM__c33id_colCommercientSF7__ExternalKey__c, salesmnName, salesmnCommercientSF7__salesmn__c, saletypCommercientSF7__saletyp__c, salegrpCommercientSF7__salegrp__c
SAGE200US SalespersonCommercientSF7__SOSLSM__c32salesmnCommercientSF7__salesmn__c, saletypCommercientSF7__saletyp__c, salegrpCommercientSF7__salegrp__c, lnameCommercientSF7__lname__c, fnameCommercientSF7__fname__c
AccountAccount13id_colCommercientSF__Commercient_ArCustomerCode__c, companyName, phonePhone, address1, address2BillingStreet, cityBillingCity
SAGE200US Customer MasterCommercientSF7__ARCUST__c91id_colCommercientSF7__ExternalKey__c, companyName, SFDCIDAccount, SFDCIDProcessPro_Salesperson, custnocustno
Customer To Account Reverse LookupAccount2id_colCommercientSF__Commercient_ArCustomerCode__c, SFDCIDCommercientSF7__ProcessPro_Customer_Master__c
SAGE200US Vendor MasterAPVEND__c73id_colExternalKey__c, companyName, vendnovendno, companycompany, contactcontact
Contact syncContact12id_colCommercientSF8__ExternalKey__c, contactLastName, contactFirstName, SFDCIDAccountID, emailEmail
SAGE200US Customer Ship To AddressCommercientSF7__ARCADR__c47id_colCommercientSF7__ExternalKey__c, companyName, custnoAccount, custnoProcessPro_Customer_Master, salesmnProcessPro_Salesperson__c
ProductProduct25id_colCommercientSF__ExternalKey__c, itemName, itemProductCode, itmdescDescription
LocationCommercientSF7__ICLOCT__c32id_colCommercientSF7__ExternalKey__c, loctidName, loctidloctid, locdesclocdesc, addrs1addrs1
Item LocationCommercientSF7__ICILOC__c72id_colCommercientSF7__ExternalKey__c, item, loctidName, SFDCIDCommercientSF7__Product__c, SFDCIDCommercientSF7__ProcessPro_Location__c, SFDCIDCommercientSF7__ProcessPro_Item_Master__c
Item MasterCommercientSF7__ICITEM__c82id_colCommercientSF7__ExternalKey__c, itemName, SFDCIDProduct, itemCommercientSF7__Item__c, itmdescCommercientSF7__ItemDescription__c
Create Standard PriceBookPricebookEntry5id_colExternalKey__c, stdcostUnitPrice, SFDCIDPricebook2ID, SFDCIDProduct2ID
Update Standard PriceBookPricebookEntry3id_colExternalKey__c, typeIsActive, stdcostUnitPrice
Item Master Reverse Lookup With ProductProduct22id_colCommercientSF__ExternalKey__c, SFDCIDCommercientSF7__ProcessPro_Item_Master__c
SAGE200US Sales Order HeaderCommercientSF7__SOMAST__c78id_colCommercientSF7__ExternalKey__c, sonoName, custnoAccount, custnoProcessPro_Customer_Master, salesmnProcessPro_Salesperson
SAGE200US Sales Order DetailCommercientSF7__SOTRAN__c86id_colCommercientSF7__ExternalKey__c, sono, tranlinenoName, itemProduct, itemProcessPro_Item_Master, sonoProcessPro_Sales_Order_Header
SAGE200US Invoice HeaderCommercientSF7__ARMAST__c73id_colCommercientSF7__ExternalKey__c, invnoName, SFDCIDAccount, SFDCIDProcessPro_Customer_Master, invnoinvno
SAGE200US Invoice DetailCommercientSF7__ARTRAN__c69id_colCommercientSF7__ExternalKey__c, invno, tranlinenoName, id_colProcessPro_Invoice_Header, itemProduct, itemProcessPro_Item_Master
SAGE200 US BOM HeaderPEBMHD__c34id_colExternalKey__c, bomnoName, SFDCIDProduct__c, SFDCIDSAGE200US_Item_Master__c, bomnobomno
SAGE200 US BOMLinePEBMDT__c43bomnoName, id_colExternalKey__c, SFDCIDSAGE200_US_BOM_Header__c, SFDCIDSAGE200_US_Item_Master__c, SFDCIDProcessPro_Location__c
Sage 200US Invoice PaymentsSage200US_Invoice_Payments__c46id_colExternalKey__c, invnoName, invnoinvno, invdteinvdte, custnocustno
SAGE200US PurchaseOrder HeaderPOMAST__c57id_colExternalKey__c, purnoName, vendnoSAGE200US_Vendor_Master__c, loctidProcessPro_Location__c, purnopurno
SAGE200US PurchaseOrder LinePOTRAN__c68id_colExternalKey__c, purno, tranlinenoName, itemProduct__c, itemSage200US_Item_Master__c, purnoSAGE200US_PurchaseOrder_Header__c
SAGE200US WorkOrder HeaderWOMAST__c43id_colExternalKey__c, wonoName, SFDCIDAccount__c, SFDCIDSAGE_200US_Customer_Master__c, SFDCIDSage200US_Salesperson__c
SAGE200US WorkOrder LineWOTRAN__c66id_colExternalKey__c, wono, tranlinenoName, itemProduct__c, itemSage200_US_ItemMaster__c, wonoSAGE200US_WorkOrder_Header__c
SAGE200 ShipToAddress ARADDRCommercientSF7__ARADDR__c28id_colCommercientSF7__ExternalKey__c, companyCommercientSF7__Name__c, custnoCommercientSF7__custno__c, invnoProcessPro_Invoice_Header__c, custnoProcessPro_Customer_Master__c

6. Community templates

The catalogue carries 28 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: 28
  • Default operations: insert on 28, update on 28, delete on 28
  • Marked circular-sync: 0
  • Licence groups they span: 11
  • Destination objects: Account, Contact, PricebookEntry, Product2, APVEND__c, CommercientSF7__ARADDR__c, CommercientSF7__ARCADR__c, CommercientSF7__ARCUST__c, CommercientSF7__ARMAST__c, CommercientSF7__ARTRAN__c, CommercientSF7__ICILOC__c, CommercientSF7__ICITEM__c, CommercientSF7__ICLOCT__c, CommercientSF7__SOMAST__c, CommercientSF7__SOSLSM__c, CommercientSF7__SOTRAN__c, PEBMDT__c, PEBMHD__c, POMAST__c, POTRAN__c and 4 more
  • Object display names: Account, Contact sync, Create Standard PriceBook, Customer To Account Reverse Lookup, Get Contacts, Item Location, Item Master, Item Master Reverse Lookup With Product, Location, Product, Sage 200US Invoice Payments, SAGE200 ShipToAddress ARADDR and 16 more
  • Template groups: Product, Account, Salesorder, Invoice, Customer Multi Ship Addresses, Purchase Order

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_SAGE200US_Vendor
  • vw_SAGE200US_Location
  • vw_SAGE200US_WorkOrderHeader
  • vw_SAGE200US_WorkOrderDetail
  • vw_SAGE200US_User
  • vw_SAGE200US_Account
  • vw_SAGE200US_CustomerToAccountLookup
  • vw_SAGE200US_InvoicePayment
  • vw_SAGE200US_Contact
  • vw_SAGE200US_ShipToAddress
  • vw_SAGE200US_shipToAddress_ARADDR
  • vw_SAGE200US_ItemLocation
  • vw_SAGE200US_ItemMaster
  • vw_SAGE200US_BOMHeader
  • vw_SAGE200US_BOMLine
  • vw_SAGE200US_InvoiceHeader
  • vw_SAGE200US_InvoiceDetail
  • vw_SAGE200US_PriceBookEntry
  • vw_SAGE200US_Product
  • vw_SAGE200US_ItemProductReverseLookup
  • vw_SAGE200US_PurchaseOrderHeader
  • vw_SAGE200US_PurchaseOrderLine
  • vw_SAGE200US_Customer
  • vw_SAGE200US_SalesOrderHeader
  • vw_SAGE200US_SalesOrderDetail
  • vw_SAGE200US_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 200 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.