Source ERP · 99 of 105

CRMPro → Salesforce — SYSPRO 6: what the shipped templates set up

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

CRMPro → Salesforce — SYSPRO 6: 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/syspro-6.md, and that skill’s ERP table is what points at it. What follows is only what the shipped SYSPRO 6 → 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
Sal AreaERP SF_SYSPRO61_SALAREA data becomes CommercientSF__SalArea__c in Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF__SalArea__cSF_SYSPRO61_SalArea
Sales MoveERP SF_SYSPRO61_ARSALESMOVE data becomes CommercientSF__ArSalesMove__c in Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF__ArSalesMove__cSF_SYSPRO61_ArSalesMove
Get_UsersThe 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 and existing ones updated; none are deleted.Account, CommercientSF__TblArTerms__c, CommercientSF__TblCustomerClass__c, CommercientSF__ArCustomer__c, CommercientSF__ArCustomerPlus__c, CommercientSF_SalSalesperson__c, CommercientSF__SalSalesPerson__cSF_SYSPRO61_ArCustomer, SF_SYSPRO61_TblArTerms, SF_SYSPRO61_TblCustomerClass, SF_SYSPRO61_SalSalesperson
Branch/Division DetailsERP SF_SYSPRO61_SALBRANCH data becomes CommercientSF__SalBranch__c in Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF__SalBranch__cSF_SYSPRO61_SalBranch
CRM Opportunity and LineERP SF_SYSPRO61_QOTMASTER, SF_SYSPRO61_QOTDETAIL data becomes Opportunity, OpportunityLineItem in Salesforce. New records are created and existing ones updated; none are deleted.Opportunity, OpportunityLineItemSF_SYSPRO61_QotMaster, SF_SYSPRO61_QotDetail
CRM Order and LineERP SF_SYSPRO61_ARCUSTOMER, VW_SYSPRO7_SORMASTERREP, VW_SYSPRO7_SORDETAILREP data becomes Order, OrderItem in Salesforce. New records are created and existing ones updated; none are deleted.Order, OrderItemvw_SYSPRO7_SorMasterRep, SF_SYSPRO61_ArCustomer, CommercientFlags, vw_SYSPRO7_SorDetailRep
CRM Quote and LineERP SF_SYSPRO61_ARCUSTOMER, SF_SYSPRO61_QOTMASTER, SF_SYSPRO61_QOTDETAIL data becomes Quote, QuoteLineItem in Salesforce. New records are created and existing ones updated; none are deleted.Quote, QuoteLineItemSF_SYSPRO61_QotMaster, SF_SYSPRO61_ArCustomer, SF_SYSPRO61_QotDetail
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.CommercientSF__ArMultAddress__cSF_SYSPRO61_ArMultAddress
ProductERP INVMASTE, SF_SYSPRO61_INVMASTER, SF_SYSPRO61_INVWAREHOUSE data becomes CommercientSF__InvMaster__c, CommercientSF__InvWarehouse__c, Product2 in Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF__InvMaster__c, CommercientSF__InvWarehouse__c, Product2SF_SYSPRO61_InvMaster, SF_SYSPRO61_InvWarehouse
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.CommercientSF__ArPermReprint__c, CommercientSF__ArInvoice__c, CommercientSF__ArInvoicePay__c, CommercientSF__ArTrnDetail__cSF_SYSPRO61_ArPermReprint, SF_SYSPRO61_ArInvoice, SF_SYSPRO61_TblArTerms, CommercientFlags, SF_SYSPRO61_SorMasterRep, SF_SYSPRO61_ArInvoicePay
PricebookERP SF_SYSPRO61_INVPRICE, SF_SYSPRO61_FLX_PRICEBOOK data becomes PriceBook2, PricebookEntry in Salesforce. New records are created and existing ones updated; none are deleted.PriceBook2, PricebookEntrySF_SYSPRO61_InvPrice
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.CommercientSF__SorMasterRep__c, CommercientSF__SorDetailRep__c, CommercientSF__SorDetailSerRep__cvw_SYSPRO7_SorMasterRep, CommercientFlags, SF_SYSPRO61_SorMasterRep, SF_SYSPRO61_MdnMasterRep, SF_SYSPRO61_ArInvoice, vw_SYSPRO7_SorDetailRep

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_SYSPRO_User1=0'' / ''1
Owner CacheCommercientSF_SalSalesperson__cCommercientSF__ExternalKey__c0vw_Ownervw_SYSPRO7_SalespersonCommercientSF__ / __c1
AccountAccountCommercientSF__Commercient_ArCustomerCode__c1vw_Accountvw_SYSPRO7_Account'' / ''1
Account ChildAccountCommercientSF__Commercient_ArCustomerCode__c1vw_Accountvw_SYSPRO7_Account_Child'' / ''1
Sal AreaCommercientSF__SalArea__cCommercientSF__Areas__c2vw_SalAreavw_SYSPRO7_SalAreaCommercientSF__ / __c1
Sal BranchCommercientSF__SalBranch__cCommercientSF__Branch__c3vw_SalBranchvw_SYSPRO7_SalBranchCommercientSF__ / __c1
Sales PersonCommercientSF__SalSalesPerson__cCommercientSF__ExternalKey__c4vw_SalesPersonvw_SYSPRO7_SalespersonCommercientSF__ / __C1
Ar TermsCommercientSF__TblArTerms__cCommercientSF__TermsCodes__c5vw_ArTermsvw_SYSPRO7_ArTermsCommercientSF__ / __C1
Customer ClassCommercientSF__TblCustomerClass__cCommercientSF__Class__c6vw_CustomerClassvw_SYSPRO7_CustomerClassCommercientSF__ / __c1
CustomerCommercientSF__ArCustomer__cCommercientSF__ArCustomer_Code__c7vw_Customervw_SYSPRO7_CustomerCommercientSF__ / __C1
Customer Reverse LookupAccountCommercientSF__Commercient_ArCustomerCode__c8vw_CustomerToAccountLookupvw_SYSPRO7_CustomerReverseLookup'' / ''1
SorMasterRepCommercientSF__SorMasterRep__cCommercientSF__ExternalKey__c10vw_SorMasterRepCall_vw_SYSPRO7_SorMasterRepCommercientSF__ / __C1
SorDetailRepCommercientSF__SorDetailRep__cCommercientSF__ExternalKey__c11vw_SorDetailRepCall_vw_SYSPRO7_SorDetailRepCommercientSF__ / __C1
SorDetailSerRepCommercientSF__SorDetailSerRep__cCommercientSF__ExternalKey__c12vw_SorDetailSerRepvw_SYSPRO7_SorDetailSerRepCommercientSF__ / __C1
Permanent Entry InvoicesCommercientSF__ArPermReprint__cCommercientSF__ExternalKey__c13vw_ArPermReprintvw_SYSPRO7_ArPermReprintCommercientSF__ / __C1
PriceBook2PriceBook2ExternalKey__c14vwPriceBook2vw_SYSPRO7_PriceBook2'' / ''1
ProductProduct2CommercientSF__ExternalKey__c14vwProductvw_SYSPRO7_Product'' / ''1
PricebookEntry Standard CreatePricebookEntryExternalKey__c16vwProductPriceBookvw_SYSPRO7_ProductPriceBook'' / ''1
PricebookEntry Standard UpdatePricebookEntryExternalKey__c17vwProductPriceBookvw_SYSPRO7_ProductPriceBook_StandardUpdate'' / ''1
Inventory MasterCommercientSF__InvMaster__cCommercientSF__ExternalKeys__c20vw_InvMastervw_SYSPRO7_InvMasterCommercientSF__ / __C1
Inventory WarehouseCommercientSF__InvWarehouse__cCommercientSF__ExternalKeys__c21vw_InvWarehousevw_SYSPRO7_InvWarehouseCommercientSF__ / __C1
Product Revserse LookupProduct2CommercientSF__ExternalKey__c22vw_ProductReverseLookupvw_SYSPRO7_ProductReverseLookup'' / ''1
Ar Multipal AddressCommercientSF__ArMultAddress__cCommercientSF__ExternalKey__c23vw_ArMultipalAddressvw_SYSPRO7_ArMultipalAddressCommercientSF__ / __C1
Invoice HeaderCommercientSF__ArInvoice__cCommercientSF__ExternalKey__c24vw_ArInvoicevw_SYSPRO7_ArInvoiceCommercientSF__ / __C1
Invoice PayCommercientSF__ArInvoicePay__cCommercientSF__ExternalKey__c25vw_ArInvoicePayvw_SYSPRO7_ArInvoicePayCommercientSF__ / __C1
Ar Tran DetailsCommercientSF__ArTrnDetail__cCommercientSF__ExternalKey__c26vw_ArTrnDetailvw_SYSPRO7_ArTrnDetailCommercientSF__ / __C1
Sales MoveCommercientSF__ArSalesMove__cCommercientSF__ExternalKey__c27vw_ArSalesMovevw_SYSPRO7_ArSalesMoveCommercientSF__ / __c1
OpportunityOpportunityExternalKey__c28vw_Opportunityvw_SYSPRO7_Opportunity'' / ''1
OpportunityLineItemOpportunityLineItemExternalKey__c29vw_OpportunityLineItemvw_SYSPRO7_OpportunityLineItem'' / ''1
QuoteQuoteExternalKey__c30vw_Quotevw_SYSPRO7_Quote'' / ''1
QuoteLineItemQuoteLineItemExternalKey__c31vw_QuoteLineItemvw_SYSPRO7_QuoteLineItem'' / ''1
Customer +CommercientSF__ArCustomerPlus__cCommercientSF__ExternalKey__c32vw_CustomerPlusvw_SYSPRO7_ArCustomerPlusCommercientSF__ / __c1
PricebookEntry Custom CreatePricebookEntryExternalKey__c33vwProductPriceBookvw_SYSPRO7_ProductPriceBookCreate'' / ''1
PricebookEntry Custom UpdatePricebookEntryExternalKey__c34vwProductPriceBookvw_SYSPRO7_ProductPriceBookUpdate'' / ''1
Standard OrderOrderExternalKey__c45vw_SYSPRO7_Standard_Order_Headervw_SYSPRO7_Standard_Order_Header'' / ''1
Standard_Order_LineOrderItemExternalKey__c46vw_SYSPRO7_Standard_Order_Linevw_SYSPRO7_Standard_Order_Line'' / ''1
Standard Order UpdateOrderExternalKey__c47vw_SYSPRO7_Standard_Order_Headervw_SYSPRO7_Standard_Order_Header_Update'' / ''1
Standard_Order_Line_UpdateOrderItemExternalKey__c48vw_SYSPRO7_Standard_Order_Linevw_SYSPRO7_Standard_Order_Line_Update'' / ''1

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, PricebookEntry Standard Create, Product, Owner Cache — 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_SYSPRO7_Salespersoninsert + updatevw_SalesPerson:SF_SYSPRO61_SalSalesperson
vw_SYSPRO7_Accountinsert + updatevw_Account:vw_SYSPRO_User:SF_SYSPRO61_ArCustomer
vw_SYSPRO7_Account_Childinsert + updatevw_Account:vw_SYSPRO_User:SF_SYSPRO61_ArCustomer
vw_SYSPRO7_SalAreainsert + updatevw_SalArea:CommercientSF__Areas__cSF_SYSPRO61_SalArea
vw_SYSPRO7_SalBranchinsert + updatevw_SalBranch:CommercientSF__Branch__cSF_SYSPRO61_SalBranch
vw_SYSPRO7_Salespersoninsert + updatevw_SalesPerson:SF_SYSPRO61_SalSalesperson
vw_SYSPRO7_ArTermsinsert + updatevw_ArTerms:SF_SYSPRO61_TblArTerms
vw_SYSPRO7_CustomerClassinsert + updatevw_CustomerClass:CommercientSF__Class__cSF_SYSPRO61_TblCustomerClass
vw_SYSPRO7_Customerinsert + updatevw_Customer:vw_Account:, vw_ArTerms:, vw_SalesPerson:, vw_CustomerClass:, vw_SalArea:, vw_SalBranch:CommercientSF__ArCustomer_Code__cSF_SYSPRO61_ArCustomer
vw_SYSPRO7_CustomerReverseLookupinsert + updatevw_CustomerToAccountLookup:vw_Customer:SF_SYSPRO61_ArCustomer
Call_vw_SYSPRO7_SorMasterRepinsert + updatevw_SorMasterRep:vw_Account:, vw_Customer:, vw_SalesPerson:, vwSalesForceAccountExtract2BASA:, vwSalesForceArCustomerExtract:, vwSalBranch:ExternalKeyvw_SYSPRO7_SorMasterRep, CommercientFlags, SF_SYSPRO61_SorMasterRep, SF_SYSPRO61_MdnMasterRep, SF_SYSPRO61_ArInvoice
Call_vw_SYSPRO7_SorDetailRepinsert + updatevw_SorDetailRep:vw_SorMasterRep:, vw_Account:ExternalKeyvw_SYSPRO7_SorDetailRep, CommercientFlags, SF_ERP_Salesforce_Clone_SorMasterRep, SF_ERP_Salesforce_Clone_MdnMasterRep, SF_ERP_Salesforce_Clone_ArInvoice
vw_SYSPRO7_SorDetailSerRepinsert + updatevw_SorDetailSerRep:vw_SorMasterRep:, vw_Account:, vw_SorDetailRep:SF_SYSPRO61_SorDetailSerRep, vw_SYSPRO7_SorMasterRep
vw_SYSPRO7_ArPermReprintinsert + updatevw_ArPermReprint:vw_ArInvoice:, vw_Account:ExternalKeySF_SYSPRO61_ArPermReprint, SF_SYSPRO61_ArInvoice
vw_SYSPRO7_PriceBook2insert-onlyvwPriceBook2:ExternalKey__cSF_SYSPRO61_InvPrice
vw_SYSPRO7_Productinsert + updatevwProduct:CommercientSF__ExternalKey__cSF_SYSPRO61_InvMaster
vw_SYSPRO7_ProductPriceBookinsert-onlyvwProductPriceBook:vwProduct:, vwPriceBook2:ExternalKey__cSF_SYSPRO61_InvPrice
vw_SYSPRO7_ProductPriceBook_StandardUpdateinsert + updatevwProductPriceBook:ExternalKey__cSF_SYSPRO61_InvPrice
vw_SYSPRO7_InvMasterinsert + updatevw_InvMaster:vwProduct:ExternalKeysSF_SYSPRO61_InvMaster
vw_SYSPRO7_InvWarehouseinsert + updatevw_InvWarehouse:vwProduct:ExternalKeysSF_SYSPRO61_InvWarehouse, SF_SYSPRO61_InvMaster
vw_SYSPRO7_ProductReverseLookupinsert + updatevw_ProductReverseLookup:vw_InvMaster:SF_SYSPRO61_InvMaster
vw_SYSPRO7_ArMultipalAddressinsert + updatevw_ArMultipalAddress:vw_Account:ExternalKeySF_SYSPRO61_ArMultAddress
vw_SYSPRO7_ArInvoiceinsert + updatevw_ArInvoice:vw_Account:, vw_Customer:, vw_ArTerms:, vw_SalesPerson:, vw_SalArea:, vw_SalBranch:ExternalKeySF_SYSPRO61_ArInvoice, SF_SYSPRO61_TblArTerms, CommercientFlags, SF_SYSPRO61_SorMasterRep
vw_SYSPRO7_ArInvoicePayinsert + updatevw_ArInvoicePay:vw_ArInvoice:, vw_Account:ExternalKeySF_SYSPRO61_ArInvoicePay, SF_SYSPRO61_ArInvoice
vw_SYSPRO7_ArTrnDetailinsert + updatevw_ArTrnDetail:vw_Account:, vw_Product:ExternalKeySF_SYSPRO61_ArTrnDetail
vw_SYSPRO7_ArSalesMoveinsert + updatevw_ArSalesMove:vw_Customer:, vw_ArInvoice:, vw_SorMasterRep:ExternalKeySF_SYSPRO61_ArSalesMove
vw_SYSPRO7_Opportunityinsert + updatevw_Opportunity:vw_Account:SF_SYSPRO61_QotMaster
vw_SYSPRO7_OpportunityLineIteminsert-onlyvw_OpportunityLineItem:vw_Opportunity:, vwProduct:, vwProductPriceBook:SF_SYSPRO61_QotDetail
vw_SYSPRO7_Quoteinsert + updatevw_Quote:vw_Account:, vw_Opportunity:ExternalKey__cSF_SYSPRO61_QotMaster, SF_SYSPRO61_ArCustomer
vw_SYSPRO7_QuoteLineIteminsert + updatevw_QuoteLineItem:vwProduct:, vw_Quote:, vwProductPriceBook:ExternalKey__cSF_SYSPRO61_QotDetail
vw_SYSPRO7_ProductPriceBookCreateinsert-onlyvwProductPriceBook:vwProduct:, vwPriceBook2:ExternalKey__cSF_SYSPRO61_InvPrice
vw_SYSPRO7_ProductPriceBookUpdateinsert + updatevwProductPriceBook:vwProduct:, vwPriceBook2:ExternalKey__cSF_SYSPRO61_InvPrice
vw_SYSPRO7_Standard_Order_Headerinsert + updatevw_SYSPRO7_Standard_Order_Header:vw_Account:, vw_Contact:, vw_Opportunity:, vw_Quote:vw_SYSPRO7_SorMasterRep, SF_SYSPRO61_ArCustomer, CommercientFlags
vw_SYSPRO7_Standard_Order_Lineinsert + updatevw_SYSPRO7_Standard_Order_Line:vw_SYSPRO7_Standard_Order_Header:, vwProduct:, vwProductPriceBook:, vw_QuoteLineItem:ExternalKey__cvw_SYSPRO7_SorDetailRep
vw_SYSPRO7_Standard_Order_Header_Updateinsert + updatevw_SYSPRO7_Standard_Order_Header:vw_Account:, vw_Contact:, vw_Opportunity:, vw_Quote:vw_SYSPRO7_SorMasterRep, SF_SYSPRO61_ArCustomer
vw_SYSPRO7_Standard_Order_Line_Updateinsert + updatevw_SYSPRO7_Standard_Order_Line:vw_SYSPRO7_Standard_Order_Header:, vwProduct:, vwProductPriceBook:, vw_QuoteLineItem:ExternalKey__cvw_SYSPRO7_SorDetailRep

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

  • 0 — GET USER, Owner Cache
  • 1 — Account, Account Child
  • 2 — Sal Area
  • 3 — Sal Branch
  • 4 — Sales Person
  • 5 — Ar Terms
  • 6 — Customer Class
  • 7 — Customer
  • 8 — Customer Reverse Lookup
  • 10 — SorMasterRep
  • 11 — SorDetailRep
  • 12 — SorDetailSerRep
  • 13 — Permanent Entry Invoices
  • 14 — PriceBook2, Product
  • 16 — PricebookEntry Standard Create
  • 17 — PricebookEntry Standard Update
  • 20 — Inventory Master
  • 21 — Inventory Warehouse
  • 22 — Product Revserse Lookup
  • 23 — Ar Multipal Address
  • 24 — Invoice Header
  • 25 — Invoice Pay
  • 26 — Ar Tran Details
  • 27 — Sales Move
  • 28 — Opportunity
  • 29 — OpportunityLineItem
  • 30 — Quote
  • 31 — QuoteLineItem
  • 32 — Customer +
  • 33 — PricebookEntry Custom Create
  • 34 — PricebookEntry Custom Update
  • 45 — Standard Order
  • 46 — Standard_Order_Line
  • 47 — Standard Order Update
  • 48 — Standard_Order_Line_Update

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_SYSPRO7_ArSalesMove reads vw_Customer:, vw_ArInvoice:, vw_SorMasterRep:
  • vw_SYSPRO7_Account reads vw_SYSPRO_User:
  • vw_SYSPRO7_Account_Child reads vw_SYSPRO_User:
  • vw_SYSPRO7_CustomerReverseLookup reads vw_Customer:
  • vw_SYSPRO7_Opportunity reads vw_Account:
  • vw_SYSPRO7_OpportunityLineItem reads vw_Opportunity:, vwProduct:, vwProductPriceBook:
  • vw_SYSPRO7_Standard_Order_Header reads vw_Account:, vw_Contact:, vw_Opportunity:, vw_Quote:; no template in this set writes vw_Contact:
  • vw_SYSPRO7_Standard_Order_Line reads vw_SYSPRO7_Standard_Order_Header:, vwProduct:, vwProductPriceBook:, vw_QuoteLineItem:
  • vw_SYSPRO7_Standard_Order_Header_Update reads vw_Account:, vw_Contact:, vw_Opportunity:, vw_Quote:; no template in this set writes vw_Contact:
  • vw_SYSPRO7_Standard_Order_Line_Update reads vw_SYSPRO7_Standard_Order_Header:, vwProduct:, vwProductPriceBook:, vw_QuoteLineItem:
  • vw_SYSPRO7_Quote reads vw_Account:, vw_Opportunity:
  • vw_SYSPRO7_QuoteLineItem reads vwProduct:, vw_Quote:, vwProductPriceBook:
  • vw_SYSPRO7_Customer reads vw_Account:, vw_ArTerms:, vw_SalesPerson:, vw_CustomerClass:, vw_SalArea:, vw_SalBranch:
  • vw_SYSPRO7_ArMultipalAddress reads vw_Account:
  • vw_SYSPRO7_InvMaster reads vwProduct:
  • vw_SYSPRO7_InvWarehouse reads vwProduct:
  • vw_SYSPRO7_ArPermReprint reads vw_ArInvoice:, vw_Account:
  • vw_SYSPRO7_ArInvoice reads vw_Account:, vw_Customer:, vw_ArTerms:, vw_SalesPerson:, vw_SalArea:, vw_SalBranch:
  • vw_SYSPRO7_ArInvoicePay reads vw_ArInvoice:, vw_Account:
  • vw_SYSPRO7_ArTrnDetail reads vw_Account:, vw_Product:; no template in this set writes vw_Product:
  • vw_SYSPRO7_ProductPriceBook reads vwProduct:, vwPriceBook2:
  • vw_SYSPRO7_ProductPriceBookCreate reads vwProduct:, vwPriceBook2:
  • vw_SYSPRO7_ProductPriceBookUpdate reads vwProduct:, vwPriceBook2:
  • vw_SYSPRO7_ProductReverseLookup reads vw_InvMaster:
  • Call_vw_SYSPRO7_SorMasterRep reads vw_Account:, vw_Customer:, vw_SalesPerson:, vwSalesForceAccountExtract2BASA:, vwSalesForceArCustomerExtract:, vwSalBranch:; no template in this set writes vwSalesForceAccountExtract2BASA:, vwSalesForceArCustomerExtract:, vwSalBranch:, vwSalSalesPerson:
  • Call_vw_SYSPRO7_SorDetailRep reads vw_SorMasterRep:, vw_Account:
  • vw_SYSPRO7_SorDetailSerRep reads vw_SorMasterRep:, vw_Account:, vw_SorDetailRep:
  • vw_SYSPRO7_Salesperson reads vw_SalesPerson:

5. Field mapping

CRM_FieldList carries one row per pushed column, with Object_Name equal to the CRM_Object_API_Name value — as dlake-crmpro puts it, an object with no CRM_FieldList rows pushes nothing and records no error. Each template carries its intended mapping in MappingJson. Read that with dlake admin crmpro_templates, then check crmpro_field_mapping on the created process before activating it.

TemplateObjectMapped fieldsFirst ERP → Salesforce pairs
Owner CacheCommercientSF_SalSalesperson__c29Branch, SalespersonCommercientSF__ExternalKey__c, Branch, SalespersonName, SalesBudget1SalesBudget1, SalesBudget2SalesBudget2, SalesBudget3SalesBudget3
AccountAccount14CustomerCommercientSF__Commercient_ArCustomerCode__c, NameName, TelephonePhone, SoldToAddr1, SoldToAddr2BillingStreet, SoldToAddr3BillingCity
Account ChildAccount15CustomerCommercientSF__Commercient_ArCustomerCode__c, NameName, TelephonePhone, SoldToAddr1, SoldToAddr2BillingStreet, SoldToAddr3BillingCity
Sal AreaCommercientSF__SalArea__c6AreaCommercientSF__Areas__c, DescriptionName, DescriptionDescription, TaxCodeTaxCode, ProvTaxFlagProvTaxFlag
Sal BranchCommercientSF__SalBranch__c29BranchCommercientSF__Branch__c, DescriptionName, DescriptionDescription, BranchAddr1BranchAddr1, BranchAddr2BranchAddr2
Sales PersonCommercientSF__SalSalesPerson__c29Branch, SalespersonCommercientSF__ExternalKey__c, Branch, SalespersonName, SalesBudget1SalesBudget1, SalesBudget2SalesBudget2, SalesBudget3SalesBudget3
Ar TermsCommercientSF__TblArTerms__c14TermsCodeCommercientSF__TermsCodes__c, DescriptionDescription, DiscPctDiscPct, DiscDaysDiscDays, DueDaysDueDays
Customer ClassCommercientSF__TblCustomerClass__c3ClassCommercientSF__Class__c, DescriptionName, DescriptionDescription
CustomerCommercientSF__ArCustomer__c96CustomerCommercientSF__ArCustomer_Code__c, NameName, NameCommercientSF__Name__c, ShortNameShortName, ExemptFinChgExemptFinChg
Customer Reverse LookupAccount2CustomerCommercientSF__Commercient_ArCustomerCode__c, SFDCIDCommercientSF__Syspro_Customer_Record__c
SorMasterRepCommercientSF__SorMasterRep__c60ExternalKeyCommercientSF__ExternalKey__c, NameName, AccountAccount, Syspro_Customer_RecordSyspro_Customer_Record__c, SalSalespersonSalSalesperson__c
SorDetailRepCommercientSF__SorDetailRep__c98Invoice, SalesOrder, SalesOrderLineCommercientSF__ExternalKey__c, Invoice, SalesOrder, SalesOrderLineName, SFDCIDSorMasterRep, SFDCIDCommercientSF__Account__c, DiscPct1DiscPct1
SorDetailSerRepCommercientSF__SorDetailSerRep__c15SalesOrder, SalesOrderLine, LotCommercientSF__ExternalKey__c, Invoice, SalesOrderCommercientSF__SorMasterRep__c, CustomerAccount, Invoice, SalesOrder, SalesOrderLine, LotCommercientSF__SorDetailRep__c, SalesOrder, SalesOrderLine, LotName
Permanent Entry InvoicesCommercientSF__ArPermReprint__c29Customer, InvoiceCommercientSF__ExternalKey__c, InvoiceCommercientSF__ArInvoice__c, CustomerCommercientSF__Account__c, DocumentTypeCommercientSF__DocumentType__c, InvoiceDateCommercientSF__InvoiceDate__c
PriceBook2PriceBook23PriceCodeExternalKey__c, PriceCodeName, TimeStampTimeStamp
ProductProduct27StockCodeName, StockCodeProductCode, StockCodeCommercientSF__ExternalKey__c, StockCodePGCODA__c, DescriptionDescription
PricebookEntry Standard CreatePricebookEntry6StockCode,PriceCodeExternalKey__c, SFDCIDProduct2Id, SellingPriceUnitPrice, SFDCIDPricebook2Id, PriceCodeCurrencyIsoCode
PricebookEntry Standard UpdatePricebookEntry3StockCode,PriceCodeExternalKey__c, SellingPriceUnitPrice, IsActiveIsActive
Inventory MasterCommercientSF__InvMaster__c98StockCodeName, SFDCIDProduct, StockCodeExternalKeys, DescriptionDescription, LongDescLongDesc
Inventory WarehouseCommercientSF__InvWarehouse__c96StockCode,WarehouseCommercientSF__ExternalKeys__c, StockCode,WarehouseName, StockCodeStockCode, WarehouseWarehouse, DefaultBinDefaultBin
Product Revserse LookupProduct22StockCodeCommercientSF__ExternalKey__c, SFDCIDCommercientSF__Syspro_Inventory_Master__c
Ar Multipal AddressCommercientSF__ArMultAddress__c17Customer, AddrCodeCommercientSF__ExternalKey__c, ShipToAddr1ShipToAddr1, ShipToAddr2ShipToAddr2, ShipToAddr3ShipToAddr3, ShipToAddr4ShipToAddr4
Invoice HeaderCommercientSF__ArInvoice__c47CustomerCommercientSF__Account__c, SalesOrderCommercientSF__SorMasterRep__c, SalespersonCommercientSF__SalSalesperson__c, BranchCommercientSF__SalBranch__c, AreaCommercientSF__SalArea__c
Invoice PayCommercientSF__ArInvoicePay__c23Customer, Invoice, DocumentType, EntryNumberCommercientSF__ExternalKey__c, Customer, Invoice, DocumentType, EntryNumberName, CustomerAccount, InvoiceArInvoice, TrnTypeTrnType
Ar Tran DetailsCommercientSF__ArTrnDetail__c82DetailLine,Invoice,Register,SummaryLine,TrnMonth,TrnYearCommercientSF__ExternalKey__c, DetailLine,Invoice,Register,SummaryLine,TrnMonth,TrnYearName, StockCodeCommercientSF__Product__c, CustomerCommercientSF__Account__c, InvoiceCommercientSF__Invoice__c
Sales MoveCommercientSF__ArSalesMove__c30CustomerCommercientSF__ArCustomer__c, InvoiceCommercientSF__ArInvoice__c, SalesOrderCommercientSF__SorMasterRep__c, Customer, Register, SummaryLine, DetailLineExternalKey, Register, SummaryLine, DetailLineName
OpportunityOpportunity7QuoteExternalKey__c, QuoteDescriptionName, QuoteDescriptionDescription, QuoteStatusStageName, DateDeliveryReqCloseDate
OpportunityLineItemOpportunityLineItem6Quote, LineExternalKey__c, QuantityQuantity, MCusRetailPriceUnitPrice, MDescriptionDescription, SFDCIDOpportunityId
QuoteQuote17QuoteExternalKey__c, QuoteName, TSO.SFDCIDOpportunityID, StatusStatus, DateDeliveryReqExpirationDate
QuoteLineItemQuoteLineItem7MStockCodeProduct2ID, QuoteQuoteID, MQtyPerQuantity, MLineShipDateServiceDate, MStockCodePricebookEntryId
Customer +CommercientSF__ArCustomerPlus__c1ExternalKeyCommercientSF__ExternalKey__c
PricebookEntry Custom CreatePricebookEntry5StockCode,PriceCodeExternalKey__c, SFDCIDProduct2Id, SellingPriceUnitPrice, SFDCIDpricebook2id, IsActiveIsActive
PricebookEntry Custom UpdatePricebookEntry3StockCode,PriceCodeExternalKey__c, SellingPriceUnitPrice, IsActiveIsActive
Standard OrderOrder22InvoiceNumber, SalesOrderExternalKey__c, SFDCIDAccountId, CustomerAccountNumber, DeliveryNoteDescription, InvoiceNumber, SalesOrderName
Standard_Order_LineOrderItem11Invoice, SalesOrder, SalesOrderLineExternalKey__c, Invoice, SalesOrderOrderId, StockCodeProduct2Id, StockCode, PriceCodePricebookEntryId, StockDescriptionDescription
Standard Order UpdateOrder24InvoiceNumber,SalesOrderExternalKey__c, SFDCIDAccountId, CustomerAccountNumber, DeliveryNoteDescription, InvoiceNumber,SalesOrderName
Standard_Order_Line_UpdateOrderItem9Invoice, SalesOrder, SalesOrderLineExternalKey__c, StockDescriptionDescription, CustRequestDateEndDate, PriceListPrice, OrderQtyQuantity

6. Community templates

The catalogue carries 47 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: 47
  • Default operations: insert on 47, update on 47, delete on 47
  • Marked circular-sync: 0
  • Licence groups they span: 11
  • Destination objects: PricebookEntry, Account, Product2, CommercientSF__ArCustomer__c, CommercientSF__InvMaster__c, CommercientSF__InvWarehouse__c, CommercientSF__ArMultAddress__c, CommercientSF__ArPermReprint__c, CommercientSF__ArSalesMove__c, CommercientSF__ArTrnDetail__c, CommercientSF__SalArea__c, CommercientSF__SalBranch__c, CommercientSF__SalSalesPerson__c, CommercientSF__SorDetailRep__c, CommercientSF__SorDetailSerRep__c, CommercientSF__SorMasterRep__c, CommercientSF__TblArTerms__c, CommercientSF__TblCustomerClass__c, CommercientSF_SalSalesperson__c, Opportunity, 5 more and 4 custom objects
  • Object display names: PricebookEntry Standard Create, PricebookEntry Standard Update, Product, Account, Account Child, Ar Multipal Address, Ar Terms, Ar Tran Details, ArCustomer Update Only, Customer, Customer Balance, Customer Class, 24 more and 5 further templates
  • Template groups: Product, Account, CRM Opportunity and Line, CRM Quote and Line, Customer Multi Ship Addresses, Invoice

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_SalArea
  • vw_ArSalesMove
  • vw_SYSPRO_User
  • vw_Account
  • vw_CustomerToAccountLookup
  • vw_ArTerms
  • vw_SalBranch
  • vw_Opportunity
  • vw_OpportunityLineItem
  • vw_SYSPRO7_Standard_Order_Header
  • vw_SYSPRO7_Standard_Order_Line
  • vw_Quote
  • vw_QuoteLineItem
  • vw_CustomerClass
  • vw_Customer
  • vw_CustomerPlus
  • vw_ArMultipalAddress
  • vw_InvMaster
  • vw_InvWarehouse
  • vw_ArPermReprint
  • vw_ArInvoice
  • vw_ArInvoicePay
  • vw_ArTrnDetail
  • vwPriceBook2
  • vwProductPriceBook
  • vwProduct
  • vw_ProductReverseLookup
  • vw_SorMasterRep
  • vw_SorDetailRep
  • vw_SorDetailSerRep
  • vw_Owner
  • vw_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 SYSPRO 6 → 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.