Source ERP · 81 of 105

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

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

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

Keep this skill current. dlake ships updates often and this text is embedded in the CLI you have installed. Before relying on it, compare dlake --version with npm view @commercient/dlake version; if they differ, run npm install -g @commercient/dlake@latest and then dlake skills install, which overwrites the installed skill files with the current text.

dlake-crmpro is the parent skill and the authority for everything general: the crmpro_* tools, CRM_Configuration and CRM_FieldList, TimeStampRepository, the three kinds of source view, the NULL-cursor rule and the silent zero-record run. Read it first; this page does not repeat it. dlake-crmpro-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-uk.md, and that skill’s ERP table is what points at it. What follows is only what the shipped Sage 200 UK → 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
SYNC COLOURERP PRODGROUPSEARCHCAT, PRODGROUPSEARCHVAL, PRODUCTGROUP data becomes SAGE200UK_Colour__c in Salesforce. New records are created and existing ones updated; none are deleted.SAGE200UK_Colour__cSF_ERP_Salesforce_Clone_ProductGroup, SF_ERP_Salesforce_Clone_stockitem, SF_ERP_Salesforce_Clone_ProdGroupSearchVal, SF_ERP_Salesforce_Clone_SearchValue, SF_ERP_Salesforce_Clone_ProdGroupSearchCat, SF_ERP_Salesforce_Clone_StockItemSearchCatVal
SYNC RANGEERP PRODGROUPSEARCHCAT, PRODGROUPSEARCHVAL, PRODUCTGROUP data becomes SAGE200UK_Range__c in Salesforce. New records are created and existing ones updated; none are deleted.SAGE200UK_Range__cSF_ERP_Salesforce_Clone_ProductGroup, SF_ERP_Salesforce_Clone_stockitem, SF_ERP_Salesforce_Clone_ProdGroupSearchCat, SF_ERP_Salesforce_Clone_SearchValue, SF_ERP_Salesforce_Clone_SearchCategory, SF_ERP_Salesforce_Clone_StockItemSearchCatVal
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__SAGE200UK_Customer__cSF_ERP_Salesforce_Clone_SLCustomerAccount, SF_ERP_Salesforce_Clone_SLCustomerLocation, SF_ERP_Salesforce_Clone_custdeliveryaddress, SF_ERP_Salesforce_Clone_SLCustomerContact, SF_ERP_Salesforce_Clone_SLCustomerContactValue, SF_ERP_Salesforce_Clone_priceband
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__SAGE200UK_Address__c, CommercientSF8__SAGE200UK_CUSTDELIVERYADDRESS__c, CommercientSF8__SAGE200UK_SOPDOCDELADDRESS__cSF_ERP_Salesforce_Clone_SLCustomerLocation, SF_ERP_Salesforce_Clone_custdeliveryaddress, SF_ERP_Salesforce_Clone_SOPDocDelAddress
ProductERP STOCKITEM, WAREHOUSE, WAREHOUSEITEM data becomes CommercientSF8__SAGE200UK_Item__c, CommercientSF8__SAGE200UK_WAREHOUSE__c, CommercientSF8__SAGE200UK_WarehouseItem__c in Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF8__SAGE200UK_Item__c, CommercientSF8__SAGE200UK_WAREHOUSE__c, CommercientSF8__SAGE200UK_WarehouseItem__c, Product_Group__c, Product2SF_ERP_Salesforce_Clone_stockitem, SF_ERP_Salesforce_Clone_warehouse, SF_ERP_Salesforce_Clone_warehouseitem, SF_ERP_Salesforce_Clone_ProductGroup
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__SAGE200UK_InvoiceHeader__c, CommercientSF8__SAGE200UK_InvoiceDetail__cSF_ERP_Salesforce_Clone_sopinvoicecredit, SF_ERP_Salesforce_Clone_SLPostedCustomerTran, CommercientFlags, SF_ERP_Salesforce_Clone_sopinvoicecreditline, SF_ERP_Salesforce_Clone_stockitem
PricebookERP PRICEBAND, STOCKITEM, STOCKITEMPRICE data becomes Pricebook2, PricebookEntry, PriceBookEntry in Salesforce. New records are created and existing ones updated; none are deleted.Pricebook2, PricebookEntry, PriceBookEntrySF_ERP_Salesforce_Clone_priceband, SF_ERP_Salesforce_Clone_stockitem, SF_ERP_Salesforce_Clone_stockitemprice
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__SAGE200UK_SalesOrderHeader__c, CommercientSF8__SAGE200UK_SalesOrderDetail__cSF_ERP_Salesforce_Clone_soporderreturn, SF_ERP_Salesforce_Clone_warehouse, SF_ERP_Salesforce_Clone_soporderreturnline, SF_ERP_Salesforce_Clone_stockitem

2. The process rows the templates create

Each template’s Insert_Query writes one CRM_Configuration row. These are the values it sets; a column the inserts never set is not listed.

Display nameCRM_Object_API_NameCRM_PK_API_NameSync_OrderTimeStamp_PrefixSQL_Query targetfield prefix / postfixSync_Operation_Type
GET USERusers0vw_SAGE200UK_User1=0'' / ''1
SYNC PRICEBANDPricebook2ExternalKey__c0vw_SAGE200UK_pricebandvw_SAGE200UK_priceband'' / ''
AccountAccountCommercientSF__Commercient_ArCustomerCode__c1vwAccountvw_SAGE200UK_Account'' / ''
AddressCommercientSF8__SAGE200UK_Address__cCommercientSF8__ExternalKey__c2vw_SAGE200UK_Addressvw_SAGE200UK_AddressCommercientSF8__ / __c
ContactsContactExternalKey__c3vw_SAGE200UK_Contactsvw_SAGE200UK_Contacts'' / ''1
CustomerCommercientSF8__SAGE200UK_Customer__cCommercientSF8__ExternalKey__c3vw_SAGE200UK_Customervw_SAGE200UK_CustomerCommercientSF8__ / __c
Account Reverse lookupAccountCommercientSF__Commercient_ArCustomerCode__c4AccountReverseLookupvw_SAGE200UK_AccountReverseLookup'' / ''
SYNC CUSTDELIVERYADDRESSCommercientSF8__SAGE200UK_CUSTDELIVERYADDRESS__cCommercientSF8__ExternalKey__c4vw_SAGE200UK_custdeliveryaddressvw_SAGE200UK_custdeliveryaddressCommercientSF8__ / __c
SYNC COLOURSAGE200UK_Colour__cExternalKey__c5vw_SAGE200UK_Colourvw_SAGE200UK_Colour'' / __c
SYNC RANGESAGE200UK_Range__cExternalKey__c5vw_SAGE200UK_Rangevw_SAGE200UK_Range'' / __c
SYNC PRODUCTGROUPProduct_Group__cExternalKey__c5vw_SAGE200UK_ProductGroupvw_SAGE200UK_ProductGroup'' / __c
ProductProduct2CommercientSF__ExternalKey__c5Product2vw_SAGE200UK_Product'' / ''
SYNC SOPDOCDELADDRESSCommercientSF8__SAGE200UK_SOPDOCDELADDRESS__cCommercientSF8__ExternalKey__c6vw_SAGE200UK_SOPDocDelAddressvw_SAGE200UK_SOPDocDelAddressCommercientSF8__ / __c
Price Book Entry CreatePricebookEntryExternalKey__c6PricebookEntryvw_SAGE200UK_ProductPriceBookCreate'' / ''
Price Book Entry UpdatePriceBookEntryExternalKey__c7PriceBookEntryvw_SAGE200UK_ProductPriceBookUpdate'' / ''
Item MasterCommercientSF8__SAGE200UK_Item__cCommercientSF8__ExternalKey__c8vw_SAGE200UK_Itemvw_SAGE200UK_ItemCommercientSF8__ / __c
SYNC WAREHOUSECommercientSF8__SAGE200UK_WAREHOUSE__cCommercientSF8__ExternalKey__c9vw_SAGE200UK_warehousevw_SAGE200UK_warehouseCommercientSF8__ / __c
Item WarehouseCommercientSF8__SAGE200UK_WarehouseItem__cCommercientSF8__ExternalKey__c10vw_SAGE200UK_WarehouseItemvw_SAGE200UK_WarehouseItemCommercientSF8__ / __c
Item Reverse lookupProduct2CommercientSF__ExternalKey__c11ItemReverseLookupvw_SAGE200UK_ItemReverseLookup'' / ''
Sales OrderCommercientSF8__SAGE200UK_SalesOrderHeader__cCommercientSF8__ExternalKey__c12vw_SAGE200UK_SalesOrderHeadervw_SAGE200UK_SalesOrderHeaderCommercientSF8__ / __c
Sales Order LineCommercientSF8__SAGE200UK_SalesOrderDetail__cCommercientSF8__ExternalKey__c13vw_SAGE200UK_SalesOrderDetailvw_SAGE200UK_SalesOrderDetailCommercientSF8__ / __c
InvoiceCommercientSF8__SAGE200UK_InvoiceHeader__cCommercientSF8__ExternalKey__c14vw_SAGE200UK_InvoiceHeadervw_SAGE200UK_InvoiceHeaderCommercientSF8__ / __c
Invoice LineCommercientSF8__SAGE200UK_InvoiceDetail__cCommercientSF8__ExternalKey__c15vw_SAGE200UK_InvoiceDetailvw_SAGE200UK_InvoiceDetailCommercientSF8__ / __c

Every one of these inserts Is_Active as 0, so an imported process is inactive until an operator activates it. Across the set they insert Is_Create_Entity 0, Is_Active_Delete_Records 0, Sync_Batch_Size 200. Is_Create_Fields is set on Price Book Entry Create; Is_Active_Get_Records is set on Price Book Entry Create; IsAccountMatching is set on Account. Text columns a template does not use are inserted as '' rather than left NULL. Get_SOQL_Query carries a query on GET USER, Price Book Entry Create — 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_SAGE200UK_pricebandinsert + updatevw_SAGE200UK_priceband:SF_ERP_Salesforce_Clone_priceband
vw_SAGE200UK_Accountinsert + updatevwAccount:SF_ERP_Salesforce_Clone_SLCustomerAccount, SF_ERP_Salesforce_Clone_SLCustomerLocation, SF_ERP_Salesforce_Clone_custdeliveryaddress
vw_SAGE200UK_Addressinsert-onlyvw_SAGE200UK_Address:vwAccount:ExternalKeySF_ERP_Salesforce_Clone_SLCustomerLocation
vw_SAGE200UK_Customerinsert-onlyvw_SAGE200UK_Customer:vw_SAGE200UK_Address:, vwAccount:ExternalKeySF_ERP_Salesforce_Clone_SLCustomerAccount, SF_ERP_Salesforce_Clone_priceband, SF_ERP_Salesforce_Clone_SLCustomerContact, SF_ERP_Salesforce_Clone_SLCustomerContactValue, SF_ERP_Salesforce_Clone_SLCustomerLocation
vw_SAGE200UK_AccountReverseLookupinsert + updateAccountReverseLookup:vw_SAGE200UK_Customer:SF_ERP_Salesforce_Clone_SLCustomerAccount
vw_SAGE200UK_custdeliveryaddressinsert + updatevw_SAGE200UK_custdeliveryaddress:vwAccount:SF_ERP_Salesforce_Clone_custdeliveryaddress
vw_SAGE200UK_Colourvw_SAGE200UK_Colour:SF_ERP_Salesforce_Clone_ProductGroup, SF_ERP_Salesforce_Clone_stockitem, SF_ERP_Salesforce_Clone_ProdGroupSearchVal, SF_ERP_Salesforce_Clone_SearchValue, SF_ERP_Salesforce_Clone_ProdGroupSearchCat
vw_SAGE200UK_Rangeinsert + updatevw_SAGE200UK_Range:SF_ERP_Salesforce_Clone_ProductGroup, SF_ERP_Salesforce_Clone_stockitem, SF_ERP_Salesforce_Clone_ProdGroupSearchCat, SF_ERP_Salesforce_Clone_SearchValue, SF_ERP_Salesforce_Clone_SearchCategory
vw_SAGE200UK_ProductGroupinsert + updatevw_SAGE200UK_ProductGroup:SF_ERP_Salesforce_Clone_ProductGroup
vw_SAGE200UK_Productinsert + updateProduct2:CommercientSF__ExternalKey__cSF_ERP_Salesforce_Clone_stockitem, SF_ERP_Salesforce_Clone_ProductGroup
vw_SAGE200UK_SOPDocDelAddressinsert + updatevw_SAGE200UK_SOPDocDelAddress:vw_SAGE200UK_SalesOrderHeader:SF_ERP_Salesforce_Clone_SOPDocDelAddress
vw_SAGE200UK_ProductPriceBookCreateinsert-onlyPriceBookEntry:vw_SAGE200UK_priceband:, Product2:ExternalKey__cSF_ERP_Salesforce_Clone_stockitem, SF_ERP_Salesforce_Clone_stockitemprice, SF_ERP_Salesforce_Clone_priceband
vw_SAGE200UK_ProductPriceBookUpdateinsert + updatePriceBookEntry:Product2:ExternalKey__cSF_ERP_Salesforce_Clone_stockitem, SF_ERP_Salesforce_Clone_stockitemprice, SF_ERP_Salesforce_Clone_priceband
vw_SAGE200UK_Iteminsert-onlyvw_SAGE200UK_Item:Product2:, vw_SAGE200UK_ProductGroup:, vw_SAGE200UK_Colour:, vw_SAGE200UK_Range:ExternalKeySF_ERP_Salesforce_Clone_stockitem
vw_SAGE200UK_warehouseinsert + updatevw_SAGE200UK_warehouse:SF_ERP_Salesforce_Clone_warehouse
vw_SAGE200UK_WarehouseIteminsert-onlyvw_SAGE200UK_WarehouseItem:Product2:, vw_SAGE200UK_Item:, vw_SAGE200UK_warehouse:ExternalKeySF_ERP_Salesforce_Clone_warehouseitem, SF_ERP_Salesforce_Clone_warehouse, SF_ERP_Salesforce_Clone_stockitem
vw_SAGE200UK_ItemReverseLookupinsert + updateItemReverseLookup:vw_SAGE200UK_Item:SF_ERP_Salesforce_Clone_stockitem
vw_SAGE200UK_SalesOrderHeaderinsert-onlyvw_SAGE200UK_SalesOrderHeader:vw_SAGE200UK_Customer:, vwAccount:, vw_SAGE200UK_warehouse:ExternalKeySF_ERP_Salesforce_Clone_soporderreturn, SF_ERP_Salesforce_Clone_warehouse
vw_SAGE200UK_SalesOrderDetailinsert-onlyvw_SAGE200UK_SalesOrderDetail:vw_SAGE200UK_Item:, vw_SAGE200UK_ProductGroup:, vw_SAGE200UK_Colour:, vw_SAGE200UK_Range:, vw_SAGE200UK_SalesOrderHeader:ExternalKeySF_ERP_Salesforce_Clone_soporderreturnline, SF_ERP_Salesforce_Clone_stockitem
vw_SAGE200UK_InvoiceHeaderinsert-onlyvw_SAGE200UK_InvoiceHeader:vw_SAGE200UK_Customer:, vwAccount:ExternalKeySF_ERP_Salesforce_Clone_sopinvoicecredit, SF_ERP_Salesforce_Clone_SLPostedCustomerTran, CommercientFlags
vw_SAGE200UK_InvoiceDetailinsert-onlyvw_SAGE200UK_InvoiceDetail:vw_SAGE200UK_Item:, vw_SAGE200UK_ProductGroup:, vw_SAGE200UK_Colour:, vw_SAGE200UK_Range:, vw_SAGE200UK_InvoiceHeader:ExternalKeySF_ERP_Salesforce_Clone_sopinvoicecreditline, SF_ERP_Salesforce_Clone_stockitem

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

  • 0 — GET USER, SYNC PRICEBAND
  • 1 — Account
  • 2 — Address
  • 3 — Contacts, Customer
  • 4 — Account Reverse lookup, SYNC CUSTDELIVERYADDRESS
  • 5 — SYNC COLOUR, SYNC RANGE, SYNC PRODUCTGROUP, Product
  • 6 — SYNC SOPDOCDELADDRESS, Price Book Entry Create
  • 7 — Price Book Entry Update
  • 8 — Item Master
  • 9 — SYNC WAREHOUSE
  • 10 — Item Warehouse
  • 11 — Item Reverse lookup
  • 12 — Sales Order
  • 13 — Sales Order Line
  • 14 — Invoice
  • 15 — Invoice Line

Several of these rows share a Sync_Order value: each template group carries its own numbering, so give the imported processes an order across the whole set rather than taking the template values as one.

These views read another process’s repository prefix, which is what makes the order a dependency order: the row appears in the view only once the process that writes that prefix has run, so a parent flows on one run and its children on the next.

  • vw_SAGE200UK_AccountReverseLookup reads vw_SAGE200UK_Customer:
  • Contacts reads Contacts:; no template in this set writes Contacts:
  • vw_SAGE200UK_Customer reads vw_SAGE200UK_Address:, vwAccount:
  • vw_SAGE200UK_Address reads vwAccount:
  • vw_SAGE200UK_custdeliveryaddress reads vwAccount:
  • vw_SAGE200UK_SOPDocDelAddress reads vw_SAGE200UK_SalesOrderHeader:
  • vw_SAGE200UK_Item reads Product2:, vw_SAGE200UK_ProductGroup:, vw_SAGE200UK_Colour:, vw_SAGE200UK_Range:
  • vw_SAGE200UK_WarehouseItem reads Product2:, vw_SAGE200UK_Item:, vw_SAGE200UK_warehouse:
  • vw_SAGE200UK_InvoiceHeader reads vw_SAGE200UK_Customer:, vwAccount:
  • vw_SAGE200UK_InvoiceDetail reads vw_SAGE200UK_Item:, vw_SAGE200UK_ProductGroup:, vw_SAGE200UK_Colour:, vw_SAGE200UK_Range:, vw_SAGE200UK_InvoiceHeader:
  • vw_SAGE200UK_ProductPriceBookCreate reads vw_SAGE200UK_priceband:, Product2:
  • vw_SAGE200UK_ProductPriceBookUpdate reads Product2:
  • vw_SAGE200UK_ItemReverseLookup reads vw_SAGE200UK_Item:
  • vw_SAGE200UK_SalesOrderHeader reads vw_SAGE200UK_Customer:, vwAccount:, vw_SAGE200UK_warehouse:
  • vw_SAGE200UK_SalesOrderDetail reads vw_SAGE200UK_Item:, vw_SAGE200UK_ProductGroup:, vw_SAGE200UK_Colour:, vw_SAGE200UK_Range:, vw_SAGE200UK_SalesOrderHeader:

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
SYNC PRICEBANDPricebook25PriceBandIDExternalKey__c, NameName, DescriptionDescription, OpLockOpLock, IsActiveIsActive
AccountAccount10SLCustomerAccountIDCommercientSF__Commercient_ArCustomerCode__c, CustomerAccountNameName, AddressLine1, AddressLine2, AddressLine3BillingStreet, CityBillingCity, CountryBillingCountry
AddressCommercientSF8__SAGE200UK_Address__c14AddressLine1AddressLine1, AddressLine2AddressLine2, AddressLine3AddressLine3, AddressLine4AddressLine4, PostCodePostCode
ContactsContact19RecordNumberRecordNumber, CustomerIDCustomerID, LastNameLastName, MiddleNameMiddleName, FirstNameFirstName
CustomerCommercientSF8__SAGE200UK_Customer__c105SLCustomerLocationIDCommercientSF8__Address__c, CustomerAccountNameName, SLCustomerAccountIDCommercientSF8__Account__c, SLCustomerAccountIDCommercientSF8__ExternalKey__c, CustomerAccountNumberCustomerAccountNumber
Account Reverse lookupAccount2SLCustomerAccountIDCommercientSF__Commercient_ArCustomerCode__c, SFDCIDSAGE200UK_Customer__c
SYNC CUSTDELIVERYADDRESSCommercientSF8__SAGE200UK_CUSTDELIVERYADDRESS__c19CustDeliveryAddressIDCommercientSF8__ExternalKey__c, DescriptionCommercientSF8__Name__c, AddressLine1CommercientSF8__AddressLine1__c, AddressLine2CommercientSF8__AddressLine2__c, AddressLine3CommercientSF8__AddressLine3__c
SYNC COLOURSAGE200UK_Colour__c4CodeExternalKey__c, NameDesc, NameName, OpLockOpLock
SYNC RANGESAGE200UK_Range__c5CodeExternalKey__c, OpLockTimeStamp, NameDesc, NameRange, DescriptionDescription
SYNC PRODUCTGROUPProduct_Group__c34ProductGroupIDExternalKey__c, DescriptionName, CodeCode, UseDescriptionOnDocsUseDescriptionOnDocs, StockItemTypeIDStockItemTypeID
ProductProduct25CodeCommercientSF__ExternalKey__c, NameName, CodeProductCode, StockItemStatusIDIsActive, DescriptionDescription
SYNC SOPDOCDELADDRESSCommercientSF8__SAGE200UK_SOPDOCDELADDRESS__c19SOPOrderReturnIDCommercientSF8__SAGE200UK_SalesOrderHeader__c, SOPDocDelAddressIDCommercientSF8__ExternalKey__c, DescriptionName, PostalNamePostalName, AddressLine1AddressLine1
Price Book Entry CreatePricebookEntry4Code, PriceBandIDExternalKey__c, IsActiveIsActive, PriceUnitPrice, CodeProduct2ID
Price Book Entry UpdatePriceBookEntry3CodeExternalKey__c, IsActiveIsActive, PriceUnitPrice
Item MasterCommercientSF8__SAGE200UK_Item__c76CodeCommercientSF8__Product__c, StockItemStatusIDCurrentStatus, ProductGroupIDProduct_Group__c, CodeSAGE200UK_Colour__c, CodeSAGE200UK_Range__c
SYNC WAREHOUSECommercientSF8__SAGE200UK_WAREHOUSE__c36WarehouseIDCommercientSF8__ExternalKey__c, NameName, DescriptionDescription, UseForSalesTradingUseForSalesTrading, PostalNamePostalName
Item WarehouseCommercientSF8__SAGE200UK_WarehouseItem__c27WarehouseIDCommercientSF8__SAGE200UK_Warehouse__c, ItemIDCommercientSF8__Product__c, ItemIDCommercientSF8__Item__c, WarehouseItemIDName, WarehouseItemIDExternalKey
Item Reverse lookupProduct22CodeCommercientSF__ExternalKey__c, SFDCIDCommercientSF8__SAGE200UK_Item__c
Sales OrderCommercientSF8__SAGE200UK_SalesOrderHeader__c100CustomerIDCommercientSF8__Customer__c, CustomerIDCommercientSF8__Account__c, WarehouseIDSAGE200UK_Warehouse__c, SOPOrderReturnIDName, WarehouseIDWarehouseName
Sales Order LineCommercientSF8__SAGE200UK_SalesOrderDetail__c102SOPOrderReturnIDCommercientSF8__SalesOrderHeader__c, ItemCodeSAGE200UK_Colour__c, ItemCodeItemCode, NominalAccountRefNominalAccountRef, NominalCostCentreNominalCostCentre
InvoiceCommercientSF8__SAGE200UK_InvoiceHeader__c54CustomerIDCommercientSF8__Customer__c, CustomerIDCommercientSF8__Account__c, DocumentStatusIDDocumentStatus__c, SOPInvoiceCreditTypeIDInvoiceCreditTypeName__c, SOPInvoiceCreditIDName
Invoice LineCommercientSF8__SAGE200UK_InvoiceDetail__c28SOPInvoiceCreditIDCommercientSF8__InvoiceHeader__c, PrintSequenceNumber,SOPInvoiceCreditLineIDCommercientSF8__ExternalKey__c, DespatchReceiptNosDespatchReceiptNos, UserNameUserName, OrderReturnNoOrderReturnNo

6. Community templates

The catalogue carries 114 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: 114
  • Default operations: insert on 114, update on 114, delete on 114
  • Marked circular-sync: 2
  • Licence groups they span: 12
  • Destination objects: Account, CommercientSF8__SAGE200UK_Address__c, CommercientSF8__SAGE200UK_Customer__c, CommercientSF8__SAGE200UK_InvoiceDetail__c, CommercientSF8__SAGE200UK_InvoiceHeader__c, CommercientSF8__SAGE200UK_SalesOrderDetail__c, CommercientSF8__SAGE200UK_SalesOrderHeader__c, Contact, Product2, SAGE200UK_OpenARInvoiceHeader__c, PriceBookEntry, CommercientSF8__SAGE200UK_Item__c, CommercientSF8__SAGE200UK_WAREHOUSE__c, CommercientSF8__SAGE200UK_WarehouseItem__c, Pricebook2, CommercientSF8__ACCOUNT__c, CommercientSF8__SAGE200UK_CUSTDELIVERYADDRESS__c, CommercientSF8__SAGE200UK_SOPDOCDELADDRESS__c, CommercientSF8_SAGE200UK_InvoiceDetail__c, Pricebookentry, 5 more and 15 custom objects
  • Object display names: Account, Account Reverse lookup, Customer, Address, Invoice, Invoice Line, Sales Order Line, Sales Order, Contact, Sage200UK Open AR_Invoice Header, Contacts, Item Master, 26 more and 13 further templates
  • Template groups: Account, Invoice, Salesorder, Product, Customer Multi Ship Addresses, Open AR Invoice Header, 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_SAGE200UK_Colour
  • vw_SAGE200UK_Range
  • vw_SAGE200UK_User
  • vwAccount
  • AccountReverseLookup
  • vw_SAGE200UK_Contacts
  • vw_SAGE200UK_Customer
  • vw_SAGE200UK_Address
  • vw_SAGE200UK_custdeliveryaddress
  • vw_SAGE200UK_SOPDocDelAddress
  • vw_SAGE200UK_Item
  • vw_SAGE200UK_warehouse
  • vw_SAGE200UK_WarehouseItem
  • vw_SAGE200UK_InvoiceHeader
  • vw_SAGE200UK_InvoiceDetail
  • vw_SAGE200UK_priceband
  • PricebookEntry
  • PriceBookEntry
  • vw_SAGE200UK_ProductGroup
  • Product2
  • ItemReverseLookup
  • vw_SAGE200UK_SalesOrderHeader
  • vw_SAGE200UK_SalesOrderDetail

8. Where this sits

dlake-crmpro is the general operating surface — the crmpro_* tools, the setup and transaction tables, field mapping, and the source-view contract that applies to every destination. This page adds what the shipped Sage 200 UK → 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.