Source ERP · 57 of 105

CRMPro → Salesforce — Microsoft Dynamics GP 2016: what the shipped templates set up

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

CRMPro → Salesforce — Microsoft Dynamics GP 2016: 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/microsoft-dynamics-gp-2016.md, and that skill’s ERP table is what points at it. What follows is only what the shipped Microsoft Dynamics GP 2016 → 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
Sale User Define & Track No Work HistoryERP SOP10106, SOP10107 data becomes CommercientSF9__SOP10106__c in Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF9__SOP10106__cSF_ERP_Salesforce_Clone_SOP10106, SF_ERP_Salesforce_Clone_SOP10107
AccountIn addition to creating the Account record from your ERP customer records, Commercient syncs over the entire Accounting AR Customer record into a Commercient AR Customer object which is a Managed Custom Object (MCO). A lookup field is provided to lookup to the default AR Customer record MCO from the Account record. New records are created and existing ones updated; none are deleted.Account, CommercientSF9__RM00101__c, CommercientSF9__RM00102__c, CommercientSF9__RM00103__c, CommercientSF9__RM00104__cCustomerCodeGUID, SF_ERP_Salesforce_Clone_RM00101, SF_ERP_Salesforce_Clone_RM00102, SF_ERP_Salesforce_Clone_RM00103, SF_ERP_Salesforce_Clone_RM00104
ProductERP IV00101, IV00102 data becomes CommercientSF9__IV00101__c, CommercientSF9__IV00102__c, Product2 in Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF9__IV00101__c, CommercientSF9__IV00102__c, Product2SF_ERP_Salesforce_Clone_IV00101, SF_ERP_Salesforce_Clone_IV00102
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.CommercientSF9__IVC10100__c, CommercientSF9__IVC10101__c, CommercientSF9__IVC30101__c, CommercientSF9__IVC30102__c, CommercientSF9__IVC10102__c, CommercientSF9__IVC10103__c, CommercientSF9__IVC10200__cSF_ERP_Salesforce_Clone_IVC10100, SF_ERP_Salesforce_Clone_IVC10101, SF_ERP_Salesforce_Clone_IVC30101, SF_ERP_Salesforce_Clone_IVC30102, SF_ERP_Salesforce_Clone_IVC10102, SF_ERP_Salesforce_Clone_IVC10103
PricebookERP IV00101, IV00108 data becomes PricebookEntry in Salesforce. New records are created and existing ones updated; none are deleted.PricebookEntrySF_ERP_Salesforce_Clone_IV00101, SF_ERP_Salesforce_Clone_IV00108
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.CommercientSF9__SOP10100__c, CommercientSF9__SOP10200__c, CommercientSF9__SOP30200__c, CommercientSF9__SOP30300__cSF_ERP_Salesforce_Clone_SOP10100, SF_ERP_Salesforce_Clone_SOP10200, SF_ERP_Salesforce_Clone_SOP30200, SF_ERP_Salesforce_Clone_SOP30300

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 / postfix
AccountAccountCommercientSF__Commercient_ArCustomerCode__c1Account1=0'' / ''
CustomerCommercientSF9__RM00101__cCommercientSF9__CUSTNMBR__c2RM00101vw_MSDYNAMICGP2016_SalesForceRM00101CommercientSF9__ / __C
Customer Master AddressCommercientSF9__RM00102__cCommercientSF9__ExternalKey__c3RM00102vw_MSDYNAMICGP2016_SalesForceRM00102CommercientSF9__ / __C
Customer Master SummaryCommercientSF9__RM00103__cCommercientSF9__CUSTNMBR__c4RM00103vw_MSDYNAMICGP2016_SalesForceRM00103CommercientSF9__ / __C
Customer Period SummaryCommercientSF9__RM00104__cCommercientSF9__ExternalKey__c5RM00104vw_MSDYNAMICGP2016_SalesForceRM00104CommercientSF9__ / __C
Sales Transaction WorksCommercientSF9__SOP10100__cCommercientSF9__ExternalKey__c6SOP10100vw_MSDYNAMICGP2016_SalesForceSOP10100CommercientSF9__ / __C
Sales Transaction Amounts WorkCommercientSF9__SOP10200__cCommercientSF9__ExternalKey__c7SOP10200vw_MSDYNAMICGP2016_SalesForceSOP10200CommercientSF9__ / __C
Sales Transaction HistoryCommercientSF9__SOP30200__cCommercientSF9__ExternalKey__c8SOP30200vw_MSDYNAMICGP2016_SalesForceSOP30200CommercientSF9__ / __C
Sales Transaction Amounts HistoryCommercientSF9__SOP30300__cCommercientSF9__ExternalKey__c9SOP30300vw_MSDYNAMICGP2016_SalesForceSOP30300CommercientSF9__ / __C
Sale User Define & Track No Work HistoryCommercientSF9__SOP10106__cCommercientSF9__ExternalKey__c10SOP10106vw_MSDYNAMICGP2016_SalesForceSOP10106CommercientSF9__ / __C
Invoicing Transaction WorkCommercientSF9__IVC10100__cCommercientSF9__ExternalKey__c11IVC10100vw_MSDYNAMICGP2016_SalesForceIVC10100CommercientSF9__ / __C
Invoicing Transaction Amounts WorkCommercientSF9__IVC10101__cCommercientSF9__ExternalKey__c12IVC10101vw_MSDYNAMICGP2016_SalesForceIVC10101CommercientSF9__ / __C
Invoicing Transaction HistoryCommercientSF9__IVC30101__cCommercientSF9__ExternalKey__c13IVC30101vw_MSDYNAMICGP2016_SalesForceIVC30101CommercientSF9__ / __C
Invoicing Transaction Amounts HistoryCommercientSF9__IVC30102__cCommercientSF9__ExternalKey__c14IVC30102vw_MSDYNAMICGP2016_SalesForceIVC30102CommercientSF9__ / __C
Invoicing Serial and Lot Number WorkCommercientSF9__IVC10102__cCommercientSF9__ExternalKey__c15IVC10102vw_MSDYNAMICGP2016_SalesForceIVC10102CommercientSF9__ / __C
Invoicing Line CommentsCommercientSF9__IVC10103__cCommercientSF9__ExternalKey__c16IVC10103vw_MSDYNAMICGP2016_SalesForceIVC10103CommercientSF9__ / __C
Invoicing Payments WorkCommercientSF9__IVC10200__cCommercientSF9__ExternalKey__c17IVC10200vw_MSDYNAMICGP2016_SalesForceIVC10200CommercientSF9__ / __C
ProductProduct2CommercientSF__ExternalKey__c18vw_Productvw_MSDYNAMICGP2016_Product'' / ''
Item MasterCommercientSF9__IV00101__cCommercientSF9__ExternalKey__c19IV00101vw_MSDYNAMICGP2016_IV00101CommercientSF9__ / __C
Item Quantity MasterCommercientSF9__IV00102__cCommercientSF9__ExternalKey__c20IV00102vw_MSDYNAMICGP2016_IV00102CommercientSF9__ / __C
Product Item reverse lookupProduct2CommercientSF__ExternalKey__c21vw_ProductReverseLookupvw_MSDYNAMICGP2016_PRODUCT_REVERSE_LOOKUPCommercientSF9__ / __C
Account Customer Reverse LookupAccountCommercientSF__Commercient_ArCustomerCode__c22Account_ReverseLookupvw_MSDYNAMICGP2016_AccountReverseLookup'' / ''
Create PriceBookPricebookEntryExternalKey__c23vw_PriceBookvw_MSDYNAMICGP2016_PriceBook_Create'' / ''
Update PriceBookPricebookEntryExternalKey__c24vw_PriceBookvw_MSDYNAMICGP2016_PriceBook_Update'' / ''

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_Delete_Records 0, IsAccountMatching 1. Is_Active_Get_Records is set on Create PriceBook. The insert column lists do not include Sync_Operation_Type, Sync_Batch_Size, Document_Source_Path, so those columns take their CRM_Configuration defaults. Text columns a template does not use are inserted as '' rather than left NULL. Get_SOQL_Query carries a query on Account, Create PriceBook — those rows read records back from Salesforce as well as pushing. On Product Item reverse lookup the SQL_Query names a view the same template’s CreateViewQuery does not create (vw_MSDYNAMICGP2016_PRODUCT_REVERSE_LOOKUP against vw_MSDYNAMICGP2016_Product), so check the view exists under the name the row selects from before activating it.

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_MSDYNAMICGP2016_SalesForceAccountExtract2insert + updateAccount:CustomerCodeGUID, SF_ERP_Salesforce_Clone_RM00101, SF_ERP_Salesforce_Clone_RM00102
vw_MSDYNAMICGP2016_SalesForceRM00101insert + updateRM00101:Account:SF_ERP_Salesforce_Clone_RM00101
vw_MSDYNAMICGP2016_SalesForceRM00102insert + updateRM00102:Account:, RM00101:SF_ERP_Salesforce_Clone_RM00102
vw_MSDYNAMICGP2016_SalesForceRM00103insert + updateRM00103:Account:, RM00101:SF_ERP_Salesforce_Clone_RM00103
vw_MSDYNAMICGP2016_SalesForceRM00104insert + updateRM00104:Account:, RM00101:SF_ERP_Salesforce_Clone_RM00104
vw_MSDYNAMICGP2016_SalesForceSOP10100insert + updateSOP10100:Account:SF_ERP_Salesforce_Clone_SOP10100
vw_MSDYNAMICGP2016_SalesForceSOP10200insert + updateSOP10200:SOP10100:SF_ERP_Salesforce_Clone_SOP10200
vw_MSDYNAMICGP2016_SalesForceSOP30200insert + updateSOP30200:Account:, RM00101:SF_ERP_Salesforce_Clone_SOP30200
vw_MSDYNAMICGP2016_SalesForceSOP30300insert + updateSOP30300:SOP30200:SF_ERP_Salesforce_Clone_SOP30300
vw_MSDYNAMICGP2016_SalesForceSOP10106insert + updateSOP10106:SOP10100:, SOP30200:SF_ERP_Salesforce_Clone_SOP10106, SF_ERP_Salesforce_Clone_SOP10107
vw_MSDYNAMICGP2016_SalesForceIVC10100insert + updateIVC10100:Account:, RM00101:SF_ERP_Salesforce_Clone_IVC10100
vw_MSDYNAMICGP2016_SalesForceIVC10101insert + updateIVC10101:IVC10100:SF_ERP_Salesforce_Clone_IVC10101
vw_MSDYNAMICGP2016_SalesForceIVC30101insert + updateIVC30101:Account:, RM00101:SF_ERP_Salesforce_Clone_IVC30101
vw_MSDYNAMICGP2016_SalesForceIVC30102insert + updateIVC30102:IVC30101:SF_ERP_Salesforce_Clone_IVC30102
vw_MSDYNAMICGP2016_SalesForceIVC10102insert + updateIVC10102:IVC10101:SF_ERP_Salesforce_Clone_IVC10102
vw_MSDYNAMICGP2016_SalesForceIVC10103insert + updateIVC10103:IVC10100:SF_ERP_Salesforce_Clone_IVC10103
vw_MSDYNAMICGP2016_SalesForceIVC10200insert + updateIVC10200:IVC30101:SF_ERP_Salesforce_Clone_IVC10200
vw_MSDYNAMICGP2016_Productinsert + updatevw_Product:CommercientSF__ExternalKey__cSF_ERP_Salesforce_Clone_IV00101
vw_MSDYNAMICGP2016_IV00101insert + updateIV00101:vw_Product:SF_ERP_Salesforce_Clone_IV00101
vw_MSDYNAMICGP2016_IV00102insert + updateIV00102:IV00101:, vw_Product:SF_ERP_Salesforce_Clone_IV00102
vw_MSDYNAMICGP2016_Productinsert + updatevw_Product:CommercientSF__ExternalKey__cSF_ERP_Salesforce_Clone_IV00101
vw_MSDYNAMICGP2016_AccountReverseLookupinsert + updateAccount_ReverseLookup:RM00101:SF_ERP_Salesforce_Clone_RM00101
vw_MSDYNAMICGP2016_PriceBook_Createinsert-onlyvw_PriceBook:vw_Product:SF_ERP_Salesforce_Clone_IV00101, SF_ERP_Salesforce_Clone_IV00108
vw_MSDYNAMICGP2016_PriceBook_Updateinsert + updatevw_PriceBook:vw_Product:SF_ERP_Salesforce_Clone_IV00101, SF_ERP_Salesforce_Clone_IV00108

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

  • 1 — Account
  • 2 — Customer
  • 3 — Customer Master Address
  • 4 — Customer Master Summary
  • 5 — Customer Period Summary
  • 6 — Sales Transaction Works
  • 7 — Sales Transaction Amounts Work
  • 8 — Sales Transaction History
  • 9 — Sales Transaction Amounts History
  • 10 — Sale User Define & Track No Work History
  • 11 — Invoicing Transaction Work
  • 12 — Invoicing Transaction Amounts Work
  • 13 — Invoicing Transaction History
  • 14 — Invoicing Transaction Amounts History
  • 15 — Invoicing Serial and Lot Number Work
  • 16 — Invoicing Line Comments
  • 17 — Invoicing Payments Work
  • 18 — Product
  • 19 — Item Master
  • 20 — Item Quantity Master
  • 21 — Product Item reverse lookup
  • 22 — Account Customer Reverse Lookup
  • 23 — Create PriceBook
  • 24 — Update PriceBook

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_MSDYNAMICGP2016_SalesForceSOP10106 reads SOP10100:, SOP30200:
  • vw_MSDYNAMICGP2016_AccountReverseLookup reads RM00101:
  • vw_MSDYNAMICGP2016_SalesForceRM00101 reads Account:
  • vw_MSDYNAMICGP2016_SalesForceRM00102 reads Account:, RM00101:
  • vw_MSDYNAMICGP2016_SalesForceRM00103 reads Account:, RM00101:
  • vw_MSDYNAMICGP2016_SalesForceRM00104 reads Account:, RM00101:
  • vw_MSDYNAMICGP2016_IV00101 reads vw_Product:
  • vw_MSDYNAMICGP2016_IV00102 reads IV00101:, vw_Product:
  • vw_MSDYNAMICGP2016_SalesForceIVC10100 reads Account:, RM00101:
  • vw_MSDYNAMICGP2016_SalesForceIVC10101 reads IVC10100:
  • vw_MSDYNAMICGP2016_SalesForceIVC30101 reads Account:, RM00101:
  • vw_MSDYNAMICGP2016_SalesForceIVC30102 reads IVC30101:
  • vw_MSDYNAMICGP2016_SalesForceIVC10102 reads IVC10101:
  • vw_MSDYNAMICGP2016_SalesForceIVC10103 reads IVC10100:
  • vw_MSDYNAMICGP2016_SalesForceIVC10200 reads IVC30101:
  • vw_MSDYNAMICGP2016_PriceBook_Create reads vw_Product:
  • vw_MSDYNAMICGP2016_PriceBook_Update reads vw_Product:
  • vw_MSDYNAMICGP2016_Product reads vw_Product:
  • vw_MSDYNAMICGP2016_SalesForceSOP10100 reads Account:
  • vw_MSDYNAMICGP2016_SalesForceSOP10200 reads SOP10100:
  • vw_MSDYNAMICGP2016_SalesForceSOP30200 reads Account:, RM00101:
  • vw_MSDYNAMICGP2016_SalesForceSOP30300 reads SOP30200:

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
AccountAccount14CUSTNMBRCommercientSF__Commercient_ArCustomerCode__c, CUSTNAMEName, CustomerGUIDCommercientSF__Commercient_CustomerGUID__c, ADDRESS1,ADDRESS2,ADDRESS3BillingStreet, CITYBillingCity
CustomerCommercientSF9__RM00101__c98CUSTNMBRCommercientSF9__CUSTNMBR__c, CUSTNAMEName, SFDCIDCommercientSF9__Account__c, CUSTCLASCUSTCLAS, CPRCSTNMCPRCSTNM
Customer Master AddressCommercientSF9__RM00102__c33CUSTNMBR, ADRSCODECommercientSF9__ExternalKey__c, CUSTNMBR, ADRSCODECommercientSF9__Name__c, SFDCIDCommercientSF9__Account__c, SFDCIDCommercientSF9__RM00101__c, SLPRSNIDCommercientSF9__SLPRSNID__c
Customer Master SummaryCommercientSF9__RM00103__c81CUSTNMBRCommercientSF9__CUSTNMBR__c, CUSTNMBRName, LASTAGEDCommercientSF9__LASTAGED__c, FRSTINDTCommercientSF9__FRSTINDT__c, LSTNSFCDCommercientSF9__LSTNSFCD__c
Customer Period SummaryCommercientSF9__RM00104__c16CUSTNMBR,PERIODID,YEAR1,HISTTYPECommercientSF9__ExternalKey__c, CUSTNMBRCommercientSF9__Account__c, CUSTNMBRCommercientSF9__RM00101__c, PERIODIDCommercientSF9__PERIODID__c, YEAR1CommercientSF9__YEAR1__c
Sales Transaction WorksCommercientSF9__SOP10100__c91SOPTYPE,SOPNUMBECommercientSF9__ExternalKey__c, CUSTNMBRCommercientSF9__Account__c, ORIGNUMBCommercientSF9__ORIGNUMB__c, DOCIDCommercientSF9__DOCID__c, DOCDATECommercientSF9__DOCDATE__c
Sales Transaction Amounts WorkCommercientSF9__SOP10200__c96SOPTYPE, SOPNUMBE, LNITMSEQ, CMPNTSEQExternalKey, SOPTYPE, SOPNUMBE, LNITMSEQ, CMPNTSEQName, SOPNUMBESOPNUMBE, SFDCIDSOP10100, ITEMNMBRITEMNMBR
Sales Transaction HistoryCommercientSF9__SOP30200__c96SOPTYPE, SOPNUMBECommercientSF9__ExternalKey__c, SOPTYPE, SOPNUMBECommercientSF9__Name__c, CUSTNMBRAccount, CUSTNMBRRM00101, ORIGNUMBCommercientSF9__ORIGNUMB__c
Sales Transaction Amounts HistoryCommercientSF9__SOP30300__c95SOPTYPE, SOPNUMBE, LNITMSEQ, CMPNTSEQCommercientSF9__ExternalKey__c, SOPTYPE, SOPNUMBE, LNITMSEQ, CMPNTSEQCommercientSF9__Name__c, SFDCIDCommercientSF9__SOP30200__c, ITEMNMBRCommercientSF9__ITEMNMBR__c, ITEMDESCCommercientSF9__ITEMDESC__c
Sale User Define & Track No Work HistoryCommercientSF9__SOP10106__c21SOPTYPE, SOPNUMBECommercientSF9__ExternalKey__c, SOPTYPE, SOPNUMBECommercientSF9__Name__c, SFDCIDSOP10100, SFDCIDSOP30200, SOPTYPECommercientSF9__SOPTYPE__c
Invoicing Transaction WorkCommercientSF9__IVC10100__c104DOCTYPE,INVCNMBRCommercientSF9__ExternalKey__c, CUSTNMBRCommercientSF9__Account__c, CUSTNMBRRM00101, BACHNUMBBACHNUMB, BCHSOURCBCHSOURC
Invoicing Transaction Amounts WorkCommercientSF9__IVC10101__c60DOCTYPE,INVCNMBR,LNITMSEQ,CMPNTSEQCommercientSF9__ExternalKey__c, DOCTYPE,INVCNMBR,LNITMSEQ,CMPNTSEQCommercientSF9__Name__c, SFDCIDCommercientSF9__IVC10100__c, ITEMNMBRCommercientSF9__ITEMNMBR__c, ITMTSHIDCommercientSF9__ITMTSHID__c
Invoicing Transaction HistoryCommercientSF9__IVC30101__c94DOCTYPE,INVCNMBRCommercientSF9__ExternalKey__c, DOCTYPE,INVCNMBRCommercientSF9__Name__c, CUSTNMBRCommercientSF9__Account__c, CUSTNMBRRM00101, BACHNUMBBACHNUMB
Invoicing Transaction Amounts HistoryCommercientSF9__IVC30102__c48DOCTYPE,INVCNMBR,LNITMSEQ,CMPNTSEQCommercientSF9__ExternalKey__c, DOCTYPE,INVCNMBR,LNITMSEQ,CMPNTSEQCommercientSF9__Name__c, IVC30101CommercientSF9__IVC30101__c, ITEMNMBRCommercientSF9__ITEMNMBR__c, ITMTSHIDCommercientSF9__ITMTSHID__c
Invoicing Serial and Lot Number WorkCommercientSF9__IVC10102__c14INVCNMBR,DOCTYPE,CMPNTSEQ,LNITMSEQ,QTYTYPE,SLTSQNUMCommercientSF9__ExternalKey__c, INVCNMBR,DOCTYPE,CMPNTSEQ,LNITMSEQ,QTYTYPE,SLTSQNUMCommercientSF9__Name__c, SFDCIDCommercientSF9__IVC10101__c, ITEMNMBRCommercientSF9__ITEMNMBR__c, SERLTNUMCommercientSF9__SERLTNUM__c
Invoicing Line CommentsCommercientSF9__IVC10103__c8DOCTYPE,INVCNMBR,LNITMSEQCommercientSF9__ExternalKey__c, DOCTYPE,INVCNMBR,LNITMSEQCommercientSF9__Name__c, SFDCIDIVC10100, COMMENT_1COMMENT_1, COMMENT_2COMMENT_2
Invoicing Payments WorkCommercientSF9__IVC10200__c16DOCTYPE,INVCNMBR,SEQNUMBRCommercientSF9__ExternalKey__c, SFDCIDCommercientSF9__IVC30101__c, DOCNUMBRDOCNUMBR, CURNCYIDCURNCYID, CHEKBKIDCHEKBKID
ProductProduct25ITEMNMBRCommercientSF__ExternalKey__c, ITEMDESCName, ITEMNMBRProductCode, ITEMDESCDescription, INACTIVEIsActive
Item MasterCommercientSF9__IV00101__c91ITEMNMBRCommercientSF9__ExternalKey__c, ITEMNMBRName, SFDCIDProduct, ITEMNMBRITEMNMBR, ITEMDESCITEMDESC
Item Quantity MasterCommercientSF9__IV00102__c81ITEMNMBR, LOCNCODE, RCRDTYPECommercientSF9__ExternalKey__c, ITEMNMBR, LOCNCODE, RCRDTYPECommercientSF9__Name__c, SFDCIDCommercientSF9__Item_Master__c, SFDCIDCommercientSF9__Product__c, LOCNCODECommercientSF9__LOCNCODE__c
Product Item reverse lookupProduct25ITEMNMBRCommercientSF__ExternalKey__c, ITEMDESCName, ITEMNMBRProductCode, ITEMDESCDescription, INACTIVEIsActive
Account Customer Reverse LookupAccount2CUSTNMBRCommercientSF__Commercient_ArCustomerCode__c, SFDCIDCommercientSF9__Customer__c
Create PriceBookPricebookEntry5PRCLEVEL, ITEMNMBRExternalKey__c, SFDCIDPricebook2Id, SFDCIDProduct2Id, IsActiveIsActive, UOMPRICEUnitPrice
Update PriceBookPricebookEntry3PRCLEVEL, ITEMNMBRExternalKey__c, UOMPRICEUnitPrice, IsActiveIsActive

6. Community templates

The catalogue carries 39 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: 39
  • Default operations: insert on 39, update on 39, delete on 39
  • Marked circular-sync: 0
  • Licence groups they span: 10
  • Destination objects: Account, PricebookEntry, Product2, Contact and 22 custom objects
  • Object display names: Account, Account Customer Reverse Lookup, Customer, Customer Master Address, Customer Master Summary, Customer Period Summary, Sales Transaction Amounts History, Sales Transaction Amounts Work, Sales Transaction History, Sales Transaction Works, AR Invoice Payments, Create PriceBook and 17 more
  • Template groups: Account, Product, Customer Multi Ship Addresses, AR Invoice Payments, Invoice, Open AR Invoice Header

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:

  • SOP10106
  • Account
  • Account_ReverseLookup
  • RM00101
  • RM00102
  • RM00103
  • RM00104
  • IV00101
  • IV00102
  • IVC10100
  • IVC10101
  • IVC30101
  • IVC30102
  • IVC10102
  • IVC10103
  • IVC10200
  • vw_PriceBook
  • vw_Product
  • vw_ProductReverseLookup
  • SOP10100
  • SOP10200
  • SOP30200
  • SOP30300

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 Microsoft Dynamics GP 2016 → 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.