Source ERP · 76 of 105

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

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

CRMPro → Salesforce — Sage 100 France: 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-france.md, and that skill’s ERP table is what points at it. What follows is only what the shipped Sage 100 France → 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, existing ones updated, and records removed in the ERP are deleted.Account, CommercientSF8__SAGE100_FRENCH_F_COMPTET__c, Commercient_SAGE100FR_CustPricebook__c, CommercientSF8__F_COLLABORATEUR__cSF_ERP_Salesforce_Clone_F_COMPTET, SF_ERP_Salesforce_Clone_F_LIVRAISON, SF_ERP_Salesforce_Clone_F_ARTCLIENT, SF_ERP_Salesforce_Clone_F_ARTICLE, SF_ERP_Salesforce_Clone_F_COLLABORATEUR
CRM Opportunity and LineERP F_COMPTET, F_DOCENTETE, F_DOCLIGNE data becomes Opportunity in Salesforce. New records are created, existing ones updated, and records removed in the ERP are deleted.OpportunitySF_ERP_Salesforce_Clone_F_DOCLIGNE, SF_ERP_Salesforce_Clone_F_DOCENTETE, SF_ERP_Salesforce_Clone_F_COMPTET, Calc_TotalMontant
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, existing ones updated, and records removed in the ERP are deleted.CommercientSF8__SAGE100FRANCE_ShipToAddress__cSF_ERP_Salesforce_Clone_F_LIVRAISON, CommercientFlags
ProductERP F_ARTICLE, F_DOCLIGNE, F_ARTFOURNISS data becomes CommercientSF8__SAGE100FRANCE_ITEM__c, Product2, PriceBookEntry in Salesforce. New records are created, existing ones updated, and records removed in the ERP are deleted.CommercientSF8__SAGE100FRANCE_ITEM__c, Product2, PriceBookEntry, Commercient_SAGE100FR_VendrPricebook__cSF_ERP_Salesforce_Clone_F_ARTICLE, SF_ERP_Salesforce_Clone_F_DOCLIGNE, cmup, SF_ERP_Salesforce_Clone_F_ARTFOURNISS, SF_ERP_Salesforce_Clone_F_COMPTET
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, existing ones updated, and records removed in the ERP are deleted.CommercientSF8__SAGE100_FRENCH_INV_F_DOCENTETE__c, CommercientSF8__SAGE100_FRENCH_INVLINE_F_DOCLIGNE__cSF_ERP_Salesforce_Clone_F_DOCENTETE, SF_ERP_Salesforce_Clone_F_LIVRAISON, SF_ERP_Salesforce_Clone_F_COMPTET, CommercientFlags, SF_ERP_Salesforce_Clone_F_DOCLIGNE
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, existing ones updated, and records removed in the ERP are deleted.CommercientSF8__SAGE100_FRENCH_SO_F_DOCENTETE__c, CommercientSF8__SAGE100_FRENCH_SOLINE_F_DOCLIGNE__cSF_ERP_Salesforce_Clone_F_DOCENTETE, CommercientFlags, SF_ERP_Salesforce_Clone_F_DOCLIGNE

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_SAGE100FRANCE_User1=0'' / ''1
SYNC SALESPERSONCommercientSF8__F_COLLABORATEUR__cCommercientSF8__ExternalKey__c1vw_SAGE100FRANCE_Salespersonvw_SAGE100FRANCE_SalespersonCommercientSF8__ / __c1
AccountAccountCommercientSF__Commercient_ArCustomerCode__c2vw_SAGE100FRANCE_Accountvw_SAGE100FRANCE_Account'' / ''1
Customer SyncCommercientSF8__SAGE100_FRENCH_F_COMPTET__cCommercientSF8__ExternalKey__c3vw_SAGE100FRANCE_Customervw_SAGE100FRANCE_CustomerCommercientSF8__ / __c1
CUSTOMERTOACCOUNTLOOKUPAccountCommercientSF__Commercient_ArCustomerCode__c4vw_SAGE100FRANCE_CustomerToAccountLookupvw_SAGE100FRANCE_CustomerToAccountLookup'' / ''1
ShipToCustomer SyncCommercientSF8__SAGE100FRANCE_ShipToAddress__cCommercientSF8__ExternalKey__c5vw_SAGE100FRANCE_ShipToCustomervw_SAGE100FRANCE_ShipToCustomerCommercientSF8__ / __c1
ProductProduct2CommercientSF__ExternalKey__c6vw_SAGE100FRANCE_Productvw_SAGE100FRANCE_Product'' / ''1
sage100 FR ItemMasterCommercientSF8__SAGE100FRANCE_ITEM__cCommercientSF8__ExternalKey__c7vw_SAGE100FRANCE_ItemMastervw_SAGE100FRANCE_ItemMasterCommercientSF8__ / __c1
Salesorder Header SyncCommercientSF8__SAGE100_FRENCH_SO_F_DOCENTETE__cCommercientSF8__ExternalKey__c8vw_SAGE100FRANCE_SalesOrderHeadervw_SAGE100FRANCE_SalesOrderHeaderCommercientSF8__ / __c1
SalesorderLine SyncCommercientSF8__SAGE100_FRENCH_SOLINE_F_DOCLIGNE__cCommercientSF8__ExternalKey__c9vw_SAGE100FRANCE_SalesOrderLinevw_SAGE100FRANCE_SalesOrderLineCommercientSF8__ / __c1
Invoice Header SyncCommercientSF8__SAGE100_FRENCH_INV_F_DOCENTETE__cCommercientSF8__ExternalKey__c10vw_SAGE100FRANCE_InvoiceHeadervw_SAGE100FRANCE_InvoiceHeaderCommercientSF8__ / __c1
Invoice Line SyncCommercientSF8__SAGE100_FRENCH_INVLINE_F_DOCLIGNE__cCommercientSF8__ExternalKey__c11vw_SAGE100FRANCE_InvoiceLinevw_SAGE100FRANCE_InvoiceLineCommercientSF8__ / __c1
SYNC VENDORAccountCommercientSF__Commercient_ArCustomerCode__c12vw_SAGE100FRANCE_Vendorvw_SAGE100FRANCE_Vendor'' / ''1
ITEM TO PRODUCT LOOKUPProduct2CommercientSF__ExternalKey__c13vw_SAGE100FRANCE_ItemReverseLookupvw_SAGE100FRANCE_ItemReverseLookup'' / ''1
StandardPricebook_CreatePriceBookEntryExternalKey__c14vw_SAGE100FRANCE_PriceBookEntryvw_SAGE100FRANCE_PriceBookEntryCreate'' / ''1
StandardPricebook_UpdatePriceBookEntryExternalKey__c15vw_SAGE100FRANCE_PriceBookEntryvw_SAGE100FRANCE_PriceBookEntryUpdate'' / ''1
OpportunityOpportunityExternalKey__c16vw_SAGE100FRANCE_Opportunityvw_SAGE100FRANCE_Opportunity'' / ''1
sage100 fr CustomerPricebookCommercient_SAGE100FR_CustPricebook__cExternalKey__c17vw_SAGE100FRANCE_CustomerPricebookvw_SAGE100FRANCE_CustomerPricebook'' / __c1
SAGE100 FR VendorPricebookCommercient_SAGE100FR_VendrPricebook__cExternalKey__c18vw_SAGE100FRANCE_VendorPricebookvw_SAGE100FRANCE_VendorPricebook'' / __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, IsAccountMatching False, 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_SAGE100FRANCE_Salespersoninsert + updatevw_SAGE100FRANCE_Salesperson:ExternalKeySF_ERP_Salesforce_Clone_F_COLLABORATEUR
vw_SAGE100FRANCE_Accountinsert + updatevw_SAGE100FRANCE_Account:CommercientSF__Commercient_ArCustomerCode__cSF_ERP_Salesforce_Clone_F_COMPTET, SF_ERP_Salesforce_Clone_F_LIVRAISON
vw_SAGE100FRANCE_Customerinsert + updatevw_SAGE100FRANCE_Customer:vw_SAGE100FRANCE_Account:ExternalKeySF_ERP_Salesforce_Clone_F_COMPTET
vw_SAGE100FRANCE_CustomerToAccountLookupinsert + updatevw_SAGE100FRANCE_CustomerToAccountLookup:vw_SAGE100FRANCE_Account:, vw_SAGE100FRANCE_Customer:CommercientSF__Commercient_ArCustomerCode__cSF_ERP_Salesforce_Clone_F_COMPTET
vw_SAGE100FRANCE_ShipToCustomerinsert + updatevw_SAGE100FRANCE_ShipToCustomer:vw_SAGE100FRANCE_Account:, vw_SAGE100FRANCE_Customer:ExternalKeySF_ERP_Salesforce_Clone_F_LIVRAISON, CommercientFlags
vw_SAGE100FRANCE_Productinsert + updatevw_SAGE100FRANCE_Product:CommercientSF__ExternalKey__cSF_ERP_Salesforce_Clone_F_DOCLIGNE, SF_ERP_Salesforce_Clone_F_ARTICLE, cmup
vw_SAGE100FRANCE_ItemMasterinsert + updatevw_SAGE100FRANCE_ItemMaster:vw_SAGE100FRANCE_Product:ExternalKeySF_ERP_Salesforce_Clone_F_ARTICLE
vw_SAGE100FRANCE_SalesOrderHeaderinsert + updatevw_SAGE100FRANCE_SalesOrderHeader:vw_SAGE100FRANCE_Account:, vw_SAGE100FRANCE_Customer:ExternalKeySF_ERP_Salesforce_Clone_F_DOCENTETE, CommercientFlags
vw_SAGE100FRANCE_SalesOrderLineinsert-onlyvw_SAGE100FRANCE_SalesOrderLine:vw_SAGE100FRANCE_Account:, vw_SAGE100FRANCE_Customer:, vw_SAGE100FRANCE_SalesOrderHeader:SF_ERP_Salesforce_Clone_F_DOCLIGNE, SF_ERP_Salesforce_Clone_F_DOCENTETE, CommercientFlags
vw_SAGE100FRANCE_InvoiceHeaderinsert + updatevw_SAGE100FRANCE_InvoiceHeader:vw_SAGE100FRANCE_Account:, vw_SAGE100FRANCE_Customer:SF_ERP_Salesforce_Clone_F_DOCENTETE, SF_ERP_Salesforce_Clone_F_LIVRAISON, SF_ERP_Salesforce_Clone_F_COMPTET, CommercientFlags
vw_SAGE100FRANCE_InvoiceLineinsert + updatevw_SAGE100FRANCE_InvoiceLine:vw_SAGE100FRANCE_Account:, vw_SAGE100FRANCE_Customer:, vw_SAGE100FRANCE_InvoiceHeader:, vw_SAGE100FRANCE_Product:, vw_SAGE100FRANCE_ItemMaster:SF_ERP_Salesforce_Clone_F_DOCLIGNE, SF_ERP_Salesforce_Clone_F_DOCENTETE
vw_SAGE100FRANCE_Vendorinsert + updatevw_SAGE100FRANCE_Vendor:CommercientSF__Commercient_ArCustomerCode__cSF_ERP_Salesforce_Clone_F_COMPTET, SF_ERP_Salesforce_Clone_F_LIVRAISON
vw_SAGE100FRANCE_ItemReverseLookupinsert + updatevw_SAGE100FRANCE_ItemReverseLookup:vw_SAGE100FRANCE_Product:, vw_SAGE100FRANCE_ItemMaster:SF_ERP_Salesforce_Clone_F_ARTICLE
vw_SAGE100FRANCE_PriceBookEntryCreateinsert-onlyvw_SAGE100FRANCE_Product:ExternalKey__cSF_ERP_Salesforce_Clone_F_ARTICLE
vw_SAGE100FRANCE_PriceBookEntryUpdateinsert-onlyvw_SAGE100FRANCE_Product:ExternalKey__cSF_ERP_Salesforce_Clone_F_ARTICLE
vw_SAGE100FRANCE_Opportunityinsert + updatevw_SAGE100FRANCE_Opportunity:vw_SAGE100FRANCE_Account:ExternalKey__cSF_ERP_Salesforce_Clone_F_DOCLIGNE, SF_ERP_Salesforce_Clone_F_DOCENTETE, SF_ERP_Salesforce_Clone_F_COMPTET, Calc_TotalMontant
vw_SAGE100FRANCE_CustomerPricebookinsert + updatevw_SAGE100FRANCE_CustomerPricebook:vw_SAGE100FRANCE_Product:, vw_SAGE100FRANCE_Account:ExternalkeySF_ERP_Salesforce_Clone_F_ARTCLIENT, SF_ERP_Salesforce_Clone_F_COMPTET, SF_ERP_Salesforce_Clone_F_ARTICLE
vw_SAGE100FRANCE_VendorPricebookinsert + updatevw_SAGE100FRANCE_VendorPricebook:vw_SAGE100FRANCE_Product:, vw_SAGE100FRANCE_Account:ExternalkeySF_ERP_Salesforce_Clone_F_ARTFOURNISS, SF_ERP_Salesforce_Clone_F_COMPTET, SF_ERP_Salesforce_Clone_F_ARTICLE

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

  • 0 — GET USER
  • 1 — SYNC SALESPERSON
  • 2 — Account
  • 3 — Customer Sync
  • 4 — CUSTOMERTOACCOUNTLOOKUP
  • 5 — ShipToCustomer Sync
  • 6 — Product
  • 7 — sage100 FR ItemMaster
  • 8 — Salesorder Header Sync
  • 9 — SalesorderLine Sync
  • 10 — Invoice Header Sync
  • 11 — Invoice Line Sync
  • 12 — SYNC VENDOR
  • 13 — ITEM TO PRODUCT LOOKUP
  • 14 — StandardPricebook_Create
  • 15 — StandardPricebook_Update
  • 16 — Opportunity
  • 17 — sage100 fr CustomerPricebook
  • 18 — SAGE100 FR VendorPricebook

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_SAGE100FRANCE_CustomerToAccountLookup reads vw_SAGE100FRANCE_Account:, vw_SAGE100FRANCE_Customer:
  • vw_SAGE100FRANCE_Opportunity reads vw_SAGE100FRANCE_Account:
  • vw_SAGE100FRANCE_Customer reads vw_SAGE100FRANCE_Account:
  • vw_SAGE100FRANCE_CustomerPricebook reads vw_SAGE100FRANCE_Product:, vw_SAGE100FRANCE_Account:
  • vw_SAGE100FRANCE_ShipToCustomer reads vw_SAGE100FRANCE_Account:, vw_SAGE100FRANCE_Customer:
  • vw_SAGE100FRANCE_ItemMaster reads vw_SAGE100FRANCE_Product:
  • vw_SAGE100FRANCE_InvoiceHeader reads vw_SAGE100FRANCE_Account:, vw_SAGE100FRANCE_Customer:
  • vw_SAGE100FRANCE_InvoiceLine reads vw_SAGE100FRANCE_Account:, vw_SAGE100FRANCE_Customer:, vw_SAGE100FRANCE_InvoiceHeader:, vw_SAGE100FRANCE_Product:, vw_SAGE100FRANCE_ItemMaster:
  • vw_SAGE100FRANCE_ItemReverseLookup reads vw_SAGE100FRANCE_Product:, vw_SAGE100FRANCE_ItemMaster:
  • vw_SAGE100FRANCE_PriceBookEntryCreate reads vw_SAGE100FRANCE_Product:
  • vw_SAGE100FRANCE_PriceBookEntryUpdate reads vw_SAGE100FRANCE_Product:
  • vw_SAGE100FRANCE_VendorPricebook reads vw_SAGE100FRANCE_Product:, vw_SAGE100FRANCE_Account:
  • vw_SAGE100FRANCE_SalesOrderHeader reads vw_SAGE100FRANCE_Account:, vw_SAGE100FRANCE_Customer:
  • vw_SAGE100FRANCE_SalesOrderLine reads vw_SAGE100FRANCE_Account:, vw_SAGE100FRANCE_Customer:, vw_SAGE100FRANCE_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 SALESPERSONCommercientSF8__F_COLLABORATEUR__c12CO_NoCommercientSF8__CO_No__c, CO_AdresseCommercientSF8__CO_Adresse__c, CO_CodePostalCO_CodePostal, CO_VilleCommercientSF8__CO_Ville__c, CO_CodeRegionCO_CodeRegion
AccountAccount14CommercientSFommercient_ArCustomerCodeCommercientSF__Commercient_ArCustomerCode__c, CommercientSF8__SAGE100_SalesPersonCommercientSF8__SAGE100_SalesPerson__c, TypeType, PhonePhone, BillingStreetBillingStreet
Customer SyncCommercientSF8__SAGE100_FRENCH_F_COMPTET__c103AccountIDCommercientSF8__accountid__c, CO_Noco_no__c, cbCO_Nocbco_no__c, DE_Node_no__c, cbDE_Nocbde_no__c
CUSTOMERTOACCOUNTLOOKUPAccount2CommercientSFommercient_ArCustomerCodeCommercientSF__Commercient_ArCustomerCode__c, CommercientSF8__SAGE100_ClientCommercientSF8__SAGE100_Client__c
ShipToCustomer SyncCommercientSF8__SAGE100FRANCE_ShipToAddress__c26AccountAccount, ClientCommercientSF8__Client__c, cbCreateurcbCreateur, cbCT_NumcbCT_Num, cbFlagCommercientSF8__cbFlag__c
ProductProduct26CommercientSF__ExternalKeyCommercientSF__ExternalKey__c, ProductCodeProductCode, DescriptionDescription, FamilyFamily, Co_t_moyen_pond_rCo_t_moyen_pond_r__c
sage100 FR ItemMasterCommercientSF8__SAGE100FRANCE_ITEM__c144Product2IDproduct2id__c, Unit_Poidsunit_poids__c, Nomenclaturenomenclature__c, Suivi_de_stocksuivi_de_stock__c, AR_RefCommercientSF8__ar_ref__c
Salesorder Header SyncCommercientSF8__SAGE100_FRENCH_SO_F_DOCENTETE__c93AccountIDCommercientSF8__accountid__c, SAGE100_ClientCommercientSF8__sage100_client__c, CO_Noco_no__c, cbCO_Nocbco_no__c, DE_Node_no__c
SalesorderLine SyncCommercientSF8__SAGE100_FRENCH_SOLINE_F_DOCLIGNE__c96DL_Lignedl_ligne__c, CO_Noco_no__c, cbCO_Nocbco_no__c, AG_No1ag_no1__c, AG_No2ag_no2__c
Invoice Header SyncCommercientSF8__SAGE100_FRENCH_INV_F_DOCENTETE__c113AccountIDCommercientSF8__accountid__c, SAGE100_ClientCommercientSF8__sage100_client__c, CO_Noco_no__c, cbCO_Nocbco_no__c, DE_Node_no__c
Invoice Line SyncCommercientSF8__SAGE100_FRENCH_INVLINE_F_DOCLIGNE__c97SAGE100_FactureCommercientSF8__sage100_facture__c, DL_Lignedl_ligne__c, CO_Noco_no__c, cbCO_Nocbco_no__c, AG_No1ag_no1__c
SYNC VENDORAccount14CommercientSFommercient_ArCustomerCodeCommercientSF__Commercient_ArCustomerCode__c, CommercientSF8__SAGE100_SalesPersonCommercientSF8__SAGE100_SalesPerson__c, TypeType, PhonePhone, BillingStreetBillingStreet
ITEM TO PRODUCT LOOKUPProduct22CommercientSF__ExternalKeyCommercientSF__ExternalKey__c, CommercientSF8__FRANCE_ItemCommercientSF8__FRANCE_Item__c
StandardPricebook_CreatePriceBookEntry4IsActiveIsActive, UnitPriceUnitPrice, Pricebook2IDPricebook2ID, Product2IDProduct2ID
StandardPricebook_UpdatePriceBookEntry2IsActiveIsActive, UnitPriceUnitPrice
OpportunityOpportunity13AccountIdAccountId, AmountAmount, CloseDateCloseDate, DescriptionDescription, Date_passage_clientDate_passage_client__c
sage100 fr CustomerPricebookCommercient_SAGE100FR_CustPricebook__c35CT_Intitulect_intitule__c, AR_Refar_ref__c, cbAR_Refcbar_ref__c, AR_Designar_design__c, AC_Categorieac_categorie__c
SAGE100 FR VendorPricebookCommercient_SAGE100FR_VendrPricebook__c37AR_Refar_ref__c, cbAR_Refcbar_ref__c, CT_Numct_num__c, cbCT_Numcbct_num__c, AF_RefFournissaf_reffourniss__c

6. Community templates

The catalogue carries 18 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: 18
  • Default operations: insert on 18, update on 18, delete on 18
  • Marked circular-sync: 0
  • Licence groups they span: 9
  • Destination objects: Account, PriceBookEntry, Product2, Commercient_SAGE100FR_CustPricebook__c, Commercient_SAGE100FR_VendrPricebook__c, CommercientSF8__SAGE100FRANCE_ITEM__c, CommercientSF8__SAGE100FRANCE_ShipToAddress__c, Opportunity and 6 custom objects
  • Object display names: Account, Customer Sync, CUSTOMERTOACCOUNTLOOKUP, Invoice Header Sync, Invoice Line Sync, ITEM TO PRODUCT LOOKUP, Opportunity, Product, sage100 fr CustomerPricebook, sage100 FR ItemMaster, SAGE100 FR VendorPricebook, Salesorder Header Sync and 6 more
  • Template groups: Account, Product, Invoice, Salesorder, CRM Opportunity and Line, Customer Multi Ship Addresses

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_SAGE100FRANCE_User
  • vw_SAGE100FRANCE_Account
  • vw_SAGE100FRANCE_CustomerToAccountLookup
  • vw_SAGE100FRANCE_Vendor
  • vw_SAGE100FRANCE_Opportunity
  • vw_SAGE100FRANCE_Customer
  • vw_SAGE100FRANCE_CustomerPricebook
  • vw_SAGE100FRANCE_ShipToCustomer
  • vw_SAGE100FRANCE_ItemMaster
  • vw_SAGE100FRANCE_InvoiceHeader
  • vw_SAGE100FRANCE_InvoiceLine
  • vw_SAGE100FRANCE_Product
  • vw_SAGE100FRANCE_ItemReverseLookup
  • vw_SAGE100FRANCE_PriceBookEntry
  • vw_SAGE100FRANCE_VendorPricebook
  • vw_SAGE100FRANCE_SalesOrderHeader
  • vw_SAGE100FRANCE_SalesOrderLine
  • vw_SAGE100FRANCE_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 France → 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.