Source ERP · 22 of 105

CRMPro → Salesforce — Epicor Prophet 21 (P21): what the shipped templates set up

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

CRMPro → Salesforce — Epicor Prophet 21 (P21): 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/epicor-prophet-21-p21.md, and that skill’s ERP table is what points at it. What follows is only what the shipped Epicor Prophet 21 (P21) → 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
ShiptoERP CUSTOMER, SHIP_TO data becomes CommercientSF10__EPICOREP21_ShipToAddress__c in Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF10__EPICOREP21_ShipToAddress__cSF_ERP_Salesforce_Clone_Ship_to, SF_ERP_Salesforce_Clone_Customer
Inv_MasterThe templates push CommercientSF10__EPICOREP21_InvMaster__c to Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF10__EPICOREP21_InvMaster__cSF_ERP_Salesforce_Clone_inv_mast
ProductERP INV_MAST data becomes product2 in Salesforce. New records are created and existing ones updated; none are deleted.product2SF_ERP_Salesforce_Clone_inv_mast
WarehouseERP INV_LOC, INV_MAST, LOCATION data becomes CommercientSF10__EPICOREP21_Warehouse__c in Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF10__EPICOREP21_Warehouse__cSF_ERP_Salesforce_Clone_inv_loc, SF_ERP_Salesforce_Clone_inv_mast, SF_ERP_Salesforce_Clone_location, CommercientFlags
ProductItem ReverselookupERP INV_MAST data becomes CommercientSF10__EPICOREP21_InvMaster__c in Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF10__EPICOREP21_InvMaster__cSF_ERP_Salesforce_Clone_inv_mast
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, CommercientSF10__EPICOREP21_Term__c, Contact, CommercientSF10__EPICOREP21_Customer__c, CommercientSF10__EPICOREP21_SalesPerson__cSF_ERP_Salesforce_Clone_Customer, SF_ERP_Salesforce_Clone_Address, SF_ERP_Salesforce_Clone_Ship_to, SF_ERP_Salesforce_Clone_terms, SF_ERP_Salesforce_Clone_contacts, CommercientFlags
CRM Opportunity and LineERP OE_HDR, QUOTE_HDR, INV_MAST data becomes Opportunity, OpportunityLineItem in Salesforce. New records are created and existing ones updated; none are deleted.Opportunity, OpportunityLineItemSF_ERP_Salesforce_Clone_quote_hdr, SF_ERP_Salesforce_Clone_oe_hdr, SF_ERP_Salesforce_Clone_quote_line, SF_ERP_Salesforce_Clone_inv_mast
CRM Order and LineERP ADDRESS, OE_HDR, QUOTE_HDR data becomes Order, OrderItem in Salesforce. New records are created and existing ones updated; none are deleted.Order, OrderItemSF_ERP_Salesforce_Clone_oe_hdr, SF_ERP_Salesforce_Clone_Address, SF_ERP_Salesforce_Clone_quote_hdr, CommercientFlags, SF_ERP_Salesforce_Clone_oe_line, SF_ERP_Salesforce_Clone_inv_mast
CRM Quote and LineERP ADDRESS, OE_HDR, QUOTE_HDR data becomes Quote, QuoteLineItem in Salesforce. New records are created and existing ones updated; none are deleted.Quote, QuoteLineItemSF_ERP_Salesforce_Clone_quote_hdr, SF_ERP_Salesforce_Clone_oe_hdr, SF_ERP_Salesforce_Clone_Address, SF_ERP_Salesforce_Clone_quote_line, SF_ERP_Salesforce_Clone_oe_line, SF_ERP_Salesforce_Clone_inv_mast
Invoice History HeadersThe Invoices from the ERP invoice module are synchronized to the Commercient Invoice Header (MCO) object in CRM. Customer service and sales people can visualize the status of the Invoice such as open, closed, as well as the balance remaining and the due date. New records are created and existing ones updated; none are deleted.CommercientSF10__EPICOREP21_InvoiceHeader__cSF_ERP_Salesforce_Clone_invoice_hdr, CommercientFlags
Open AR Invoice HeaderThe detail lines on open invoices are visible too so that you are aware of what items you are awaiting payment on from your customer. New records are created and existing ones updated; none are deleted.CommercientSF10__EPICOREP21_InvoiceLine__cSF_ERP_Salesforce_Clone_invoice_line, CommercientFlags
PricebookERP INV_MAST data becomes PriceBook2, PricebookEntry, PriceBookEntry in Salesforce. New records are created and existing ones updated; none are deleted.PriceBook2, PricebookEntry, PriceBookEntrySF_ERP_Salesforce_Clone_inv_mast
SalesorderThe templates push CommercientSF10__EPICOREP21_SalesOrderDetail__c, CommercientSF10__EPICOREP21_SalesOrderHeader__c to Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF10__EPICOREP21_SalesOrderDetail__c, CommercientSF10__EPICOREP21_SalesOrderHeader__cSF_ERP_Salesforce_Clone_oe_line, CommercientFlags, SF_ERP_Salesforce_Clone_oe_hdr

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
TermscodeCommercientSF10__EPICOREP21_Term__cCommercientSF10__ExternalKey__c1vwTermsvw_EPICORP21_TermsCommercientSF10__ / __c1
SalesPersonCommercientSF10__EPICOREP21_SalesPerson__cCommercientSF10__ExternalKey__c2vw_EPICORP21_SalesPersonvw_EPICORP21_SalesPersonCommercientSF10__ / __c1
AccountAccountCommercientSF__Commercient_ArCustomerCode__c3vw_EPICORP21_CRM_Accountvw_EPICORP21_CRM_Account'' / ''1
CustomerCommercientSF10__EPICOREP21_Customer__cCommercientSF10__ExternalKey__c4vw_EPICORP21_Customervw_EPICORP21_CustomerCommercientSF10__ / __c1
ShiptoCommercientSF10__EPICOREP21_ShipToAddress__cCommercientSF10__ExternalKey__c5vw_EPICORP21_ShipToAddressvw_EPICORP21_ShipToAddressCommercientSF10__ / __c1
OrderHeaderCommercientSF10__EPICOREP21_SalesOrderHeader__cCommercientSF10__ExternalKey__c6vw_EPICORP21_SalesOrderHeadervw_EPICORP21_SalesOrderHeaderCommercientSF10__ / __c1
OrderLineCommercientSF10__EPICOREP21_SalesOrderDetail__cCommercientSF10__ExternalKey__c7vw_EPICORP21_SalesOrderDetailvw_EPICORP21_SalesOrderDetailCommercientSF10__ / __c1
InvoiceHeaderCommercientSF10__EPICOREP21_InvoiceHeader__cCommercientSF10__ExternalKey__c8vw_EPICORP21_InvoiceHeadervw_EPICORP21_InvoiceHeaderCommercientSF10__ / __c1
InvoiceLineCommercientSF10__EPICOREP21_InvoiceLine__cCommercientSF10__ExternalKey__c9vw_EPICORP21_InvoiceLinevw_EPICORP21_InvoiceLineCommercientSF10__ / __c1
Customer Reverse Lookup AccountAccountCommercientSF__Commercient_ArCustomerCode__c10vw_EPICORP21_CustomerToAccountLookupvw_EPICORP21_CustomerToAccountLookup'' / ''1
Inv_MasterCommercientSF10__EPICOREP21_InvMaster__cCommercientSF10__ExternalKey__c11vwinv_mastvw_EPICORP21_inv_mastCommercientSF10__ / __c1
Productproduct2CommercientSF__ExternalKey__c12vw_Productvw_EPICORP21_Product'' / ''1
WarehouseCommercientSF10__EPICOREP21_Warehouse__cCommercientSF10__ExternalKey__c13vwWarehousevw_EPICORP21_WarehouseCommercientSF10__ / __c1
PriceBook2PriceBook2ExternalKey__c14vwPriceBook2vw_EPICORP21_PriceBook2'' / ''1
Create Standard PriceBookPricebookEntryExternalKey__C15vw_StandardProductPriceBookvw_EPICORP21_ProductStandardPricebookCreate'' / ''1
Update Standard PricebookPriceBookEntryExternalKey__C16vw_StandardProductPriceBookvw_EPICORP21_ProductStandardPricebookUpdate'' / ''1
Custom Pricebook CreatePriceBookEntryExternalKey__c17vw_ProductPriceBookvw_EPICORP21_ProductPriceBookCreate'' / ''1
Custom Pricebook UpdatePriceBookEntryExternalKey__c18vw_ProductPriceBookvw_EPICORP21_ProductPriceBookUpdate'' / ''1
ProductItem ReverselookupCommercientSF10__EPICOREP21_InvMaster__cCommercientSF10__ExternalKey__c19vw_EPICORP21_ProductItemReverseLookupvw_EPICORP21_ProductItemReverseLookupNULL / NULL1
OpportunityOpportunityExternalKey__c19vwOpportunityvw_EPICORP21_Opportunity'' / ''
ContactsContactExternalKey__c20vw_EPICORP21_Contactvw_EPICORP21_Contact'' / ''1
Opportunity LineItemOpportunityLineItemExternalKey__c20vwOpportunityLineItemvw_EPICORP21_OpportunityLineItem'' / ''
QuoteQuoteExternalKey__c22vwSFQuotevw_EPICORP21_Quote'' / ''
Quote LineQuoteLineItemExternalKey__c23vwSFQuoteLinevw_EPICORP21_QuoteLineItem'' / ''
Standard OrderOrderExternalKey__c2510vw_EPICORP21_Standard_Order_Headervw_EPICORP21_Standard_Order_Header'' / ''1
Standard_Order_LineOrderItemExternalKey__c2610vw_EPICORP21_Standard_Order_Linevw_EPICORP21_Standard_Order_Line'' / ''1
Standard Order UpdateOrderExternalKey__c2710vw_EPICORP21_Standard_Order_Headervw_EPICORP21_Standard_Order_Header_Update'' / ''1
Standard_Order_Line_UpdateOrderItemExternalKey__c2810vw_EPICORP21_Standard_Order_Linevw_EPICORP21_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, IsAccountMatching '', 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 ProductItem Reverselookup, PriceBook2, Create Standard PriceBook — those rows read records back from Salesforce as well as pushing. On OrderLine, OrderHeader the SQL_Query names a view the same template’s CreateViewQuery does not create (vw_EPICORP21_SalesOrderDetail against vw_EPICOREP21_SalesOrderDetail; vw_EPICORP21_SalesOrderHeader against vw_EPICOREP21_SalesOrderHeader), 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_EPICORP21_Termsinsert + updatevwTerms:ExternalKeySF_ERP_Salesforce_Clone_terms
vw_EPICORP21_SalesPersoninsert + updatevw_EPICORP21_SalesPerson:ExternalKeySF_ERP_Salesforce_Clone_customer_salesrep
vw_EPICORP21_CRM_Accountinsert + updatevw_EPICORP21_CRM_Account:SF_ERP_Salesforce_Clone_Customer, SF_ERP_Salesforce_Clone_Address, SF_ERP_Salesforce_Clone_Ship_to
vw_EPICORP21_Customerinsert + updatevw_EPICORP21_Customer:vw_EPICORP21_CRM_Account:, vw_EPICORP21_SalesPerson:, vwTerms:ExternalKeySF_ERP_Salesforce_Clone_Customer, SF_ERP_Salesforce_Clone_terms, CommercientFlags
vw_EPICORP21_ShipToAddressinsert + updatevw_EPICORP21_ShipToAddress:vw_EPICORP21_CRM_Account:, vw_EPICORP21_Customer:ExternalKeySF_ERP_Salesforce_Clone_Ship_to, SF_ERP_Salesforce_Clone_Customer
vw_EPICOREP21_SalesOrderHeaderinsert-onlyvw_EPICORP21_CRM_Account:, vw_EPICORP21_Customer:, vwSalesPerson:, vwTerms:, vw_EPICOREP21_SalesOrderHeader:ExternalKeySF_ERP_Salesforce_Clone_oe_hdr, CommercientFlags
vw_EPICOREP21_SalesOrderDetailinsert-onlyvw_EPICORP21_SalesOrderHeader:, vw_EPICOREP21_SalesOrderDetail:ExternalKeySF_ERP_Salesforce_Clone_oe_line, CommercientFlags
vw_EPICORP21_InvoiceHeaderinsert + updatevw_EPICORP21_InvoiceHeader:vw_EPICORP21_CRM_Account:, vw_EPICORP21_Customer:, vw_EPICORP21_SalesOrderHeader:, vw_EPICORP21_SalesPerson:, vwTerms:ExternalKeySF_ERP_Salesforce_Clone_invoice_hdr, CommercientFlags
vw_EPICORP21_InvoiceLineinsert + updatevw_EPICORP21_InvoiceLine:vw_EPICORP21_InvoiceHeader:ExternalKeySF_ERP_Salesforce_Clone_invoice_line, CommercientFlags
vw_EPICORP21_CustomerToAccountLookupinsert + updatevw_EPICORP21_CustomerToAccountLookup:vw_EPICORP21_Customer:SF_ERP_Salesforce_Clone_Customer
vw_EPICORP21_inv_mastinsert + updatevwinv_mast:ExternalKeySF_ERP_Salesforce_Clone_inv_mast
vw_EPICORP21_Productinsert + updatevw_Product:vwinv_mast:SF_ERP_Salesforce_Clone_inv_mast
vw_EPICORP21_Warehouseinsert + updatevwWarehouse:vwinv_mast:, vw_Product:ExternalKeySF_ERP_Salesforce_Clone_inv_loc, SF_ERP_Salesforce_Clone_inv_mast, SF_ERP_Salesforce_Clone_location, CommercientFlags
vw_EPICORP21_PriceBook2vwPriceBook2:ExternalKey__c
vw_EPICORP21_ProductStandardPricebookCreateinsert-onlyvw_StandardProductPriceBook:vw_Product:ExternalKey__cSF_ERP_Salesforce_Clone_inv_mast
vw_EPICORP21_ProductStandardPricebookUpdateinsert + updatevw_StandardProductPriceBook:vw_Product:ExternalKey__cSF_ERP_Salesforce_Clone_inv_mast
vw_EPICORP21_ProductPriceBookCreateinsert-onlyvw_ProductPriceBook:vw_Product:, vwPriceBook2:, Price3:ExternalKey__cSF_ERP_Salesforce_Clone_inv_mast
vw_EPICORP21_ProductPriceBookUpdateinsert + updatevw_ProductPriceBook:vw_Product:, vwPriceBook2:, Price3:ExternalKey__cSF_ERP_Salesforce_Clone_inv_mast
vw_EPICORP21_ProductItemReverseLookupinsert + updatevw_EPICORP21_ProductItemReverseLookup:vw_Product:, vwinv_mast:SF_ERP_Salesforce_Clone_inv_mast
vw_EPICORP21_Opportunityinsert + updatevwOpportunity:vw_Account:ExternalKey__cSF_ERP_Salesforce_Clone_quote_hdr, SF_ERP_Salesforce_Clone_oe_hdr
vw_EPICORP21_Contactinsert-onlyvw_EPICORP21_CRM_Account:ExternalKey__cSF_ERP_Salesforce_Clone_contacts, SF_ERP_Salesforce_Clone_Customer, SF_ERP_Salesforce_Clone_Address
vw_EPICORP21_OpportunityLineIteminsert + updatevwOpportunityLineItem:vw_Product:, vwOpportunity:ExternalKeySF_ERP_Salesforce_Clone_quote_line, SF_ERP_Salesforce_Clone_quote_hdr, SF_ERP_Salesforce_Clone_inv_mast
vw_EPICORP21_Quoteinsert-onlyvwSFQuote:vw_Account:, vwOpportunity:ExternalKeySF_ERP_Salesforce_Clone_quote_hdr, SF_ERP_Salesforce_Clone_oe_hdr, SF_ERP_Salesforce_Clone_Address
vw_EPICORP21_QuoteLineIteminsert + updatevwSFQuoteLine:vwSFQuote:, vw_Product:ExternalKey__cSF_ERP_Salesforce_Clone_quote_line, SF_ERP_Salesforce_Clone_oe_line, SF_ERP_Salesforce_Clone_inv_mast
vw_EPICORP21_Standard_Order_Headerinsert + updatevw_EPICORP21_Standard_Order_Header:vw_Account:, vw_Contact:, vwOpportunity:, vwSFQuote:SF_ERP_Salesforce_Clone_oe_hdr, SF_ERP_Salesforce_Clone_Address, SF_ERP_Salesforce_Clone_quote_hdr, CommercientFlags
vw_EPICORP21_Standard_Order_Lineinsert + updatevw_EPICORP21_Standard_Order_Line:vw_EPICORP21_Standard_Order_Header:, vw_Product:, vw_StandardProductPriceBook:, vwSFQuoteLine:ExternalKey__cSF_ERP_Salesforce_Clone_oe_line, SF_ERP_Salesforce_Clone_inv_mast
vw_EPICORP21_Standard_Order_Header_Updateinsert + updatevw_EPICORP21_Standard_Order_Header:vw_Account:, vw_Contact:, vwOpportunity:, vwSFQuote:SF_ERP_Salesforce_Clone_oe_hdr, SF_ERP_Salesforce_Clone_Address, SF_ERP_Salesforce_Clone_quote_hdr, CommercientFlags
vw_EPICORP21_Standard_Order_Line_Updateinsert + updatevw_EPICORP21_Standard_Order_Line:vw_EPICORP21_Standard_Order_Header:, vw_Product:, vw_StandardProductPriceBook:, vwSFQuoteLine:ExternalKey__cSF_ERP_Salesforce_Clone_oe_line, SF_ERP_Salesforce_Clone_inv_mast

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

  • 1 — Termscode
  • 2 — SalesPerson
  • 3 — Account
  • 4 — Customer
  • 5 — Shipto
  • 6 — OrderHeader
  • 7 — OrderLine
  • 8 — InvoiceHeader
  • 9 — InvoiceLine
  • 10 — Customer Reverse Lookup Account
  • 11 — Inv_Master
  • 12 — Product
  • 13 — Warehouse
  • 14 — PriceBook2
  • 15 — Create Standard PriceBook
  • 16 — Update Standard Pricebook
  • 17 — Custom Pricebook Create
  • 18 — Custom Pricebook Update
  • 19 — ProductItem Reverselookup, Opportunity
  • 20 — Contacts, Opportunity LineItem
  • 22 — Quote
  • 23 — Quote Line
  • 2510 — Standard Order
  • 2610 — Standard_Order_Line
  • 2710 — Standard Order Update
  • 2810 — 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_EPICORP21_ShipToAddress reads vw_EPICORP21_CRM_Account:, vw_EPICORP21_Customer:
  • vw_EPICORP21_Product reads vwinv_mast:
  • vw_EPICORP21_Warehouse reads vwinv_mast:, vw_Product:
  • vw_EPICORP21_ProductItemReverseLookup reads vw_Product:, vwinv_mast:
  • vw_EPICORP21_CustomerToAccountLookup reads vw_EPICORP21_Customer:
  • vw_EPICORP21_Contact reads vw_EPICORP21_CRM_Account:
  • vw_EPICORP21_Opportunity reads vw_Account:; no template in this set writes vw_Account:
  • vw_EPICORP21_OpportunityLineItem reads vw_Product:, vwOpportunity:
  • vw_EPICORP21_Standard_Order_Header reads vw_Account:, vw_Contact:, vwOpportunity:, vwSFQuote:; no template in this set writes vw_Account:, vw_Contact:
  • vw_EPICORP21_Standard_Order_Line reads vw_EPICORP21_Standard_Order_Header:, vw_Product:, vw_StandardProductPriceBook:, vwSFQuoteLine:
  • vw_EPICORP21_Standard_Order_Header_Update reads vw_Account:, vw_Contact:, vwOpportunity:, vwSFQuote:; no template in this set writes vw_Account:, vw_Contact:
  • vw_EPICORP21_Standard_Order_Line_Update reads vw_EPICORP21_Standard_Order_Header:, vw_Product:, vw_StandardProductPriceBook:, vwSFQuoteLine:
  • vw_EPICORP21_Quote reads vw_Account:, vwOpportunity:; no template in this set writes vw_Account:
  • vw_EPICORP21_QuoteLineItem reads vwSFQuote:, vw_Product:
  • vw_EPICORP21_Customer reads vw_EPICORP21_CRM_Account:, vw_EPICORP21_SalesPerson:, vwTerms:
  • vw_EPICORP21_InvoiceHeader reads vw_EPICORP21_CRM_Account:, vw_EPICORP21_Customer:, vw_EPICORP21_SalesOrderHeader:, vw_EPICORP21_SalesPerson:, vwTerms:
  • vw_EPICORP21_InvoiceLine reads vw_EPICORP21_InvoiceHeader:
  • vw_EPICORP21_ProductStandardPricebookCreate reads vw_Product:
  • vw_EPICORP21_ProductStandardPricebookUpdate reads vw_Product:
  • vw_EPICORP21_ProductPriceBookCreate reads vw_Product:, vwPriceBook2:, Price3:; no template in this set writes Price3:
  • vw_EPICORP21_ProductPriceBookUpdate reads vw_Product:, vwPriceBook2:, Price3:; no template in this set writes Price3:
  • vw_EPICOREP21_SalesOrderDetail reads vw_EPICORP21_SalesOrderHeader:, vw_EPICOREP21_SalesOrderDetail:; no template in this set writes vw_EPICOREP21_SalesOrderDetail:
  • vw_EPICOREP21_SalesOrderHeader reads vw_EPICORP21_CRM_Account:, vw_EPICORP21_Customer:, vwSalesPerson:, vwTerms:, vw_EPICOREP21_SalesOrderHeader:; no template in this set writes vwSalesPerson:, vw_EPICOREP21_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
TermscodeCommercientSF10__EPICOREP21_Term__c28terms_idCommercientSF10__ExternalKey__c, terms_idName, billing_cycle_cutoff_dayCommercientSF10__billing_cycle_cutoff_day__c, cash_discount_eligible_flagCommercientSF10__cash_discount_eligible_flag__c, creditcard_required_flagCommercientSF10__creditcard_required_flag__c
SalesPersonCommercientSF10__EPICOREP21_SalesPerson__c13company_id, customer_salesrep_uidCommercientSF10__ExternalKey__c, company_id, customer_salesrep_uidName, commission_percentageCommercientSF10__commission_percentage__c, company_idCommercientSF10__company_id__c, created_byCommercientSF10__created_by__c
AccountAccount15company_id,customer_idCommercientSF__Commercient_ArCustomerCode__c, customer_nameName, central_phone_numberPhone, central_fax_numberFax, mail_address1,mail_address2,mail_address3BillingStreet
CustomerCommercientSF10__EPICOREP21_Customer__c96company_id,customer_idCommercientSF10__ExternalKey__c, company_id,customer_nameName, accept_partial_ordersaccept_partial_orders, allow_advance_billingallow_advance_billing, allowed_account_noallowed_account_no
ShiptoCommercientSF10__EPICOREP21_ShipToAddress__c91company_id, ship_to_idCommercientSF10__ExternalKey__c, customer_nameName, acceptable_wait_timeacceptable_wait_time, accept_partial_ordersaccept_partial_orders, alt_tax_rate_eligible_flagalt_tax_rate_eligible_flag
OrderHeaderCommercientSF10__EPICOREP21_SalesOrderHeader__c87company_id, order_noCommercientSF10__ExternalKey__c, company_id, order_noName, address_idaddress_id, approvedapproved, architect_idarchitect_id
OrderLineCommercientSF10__EPICOREP21_SalesOrderDetail__c97company_no, line_no, order_noCommercientSF10__ExternalKey__c, company_no, line_no, order_noName, allocate_usage_to_original_itemallocate_usage_to_original_item, assemblyassembly, base_ut_pricebase_ut_price
InvoiceHeaderCommercientSF10__EPICOREP21_InvoiceHeader__c96company_no,invoice_noCommercientSF10__ExternalKey__c, company_no,invoice_noName, allowedallowed, amount_paidamount_paid, approvedapproved
InvoiceLineCommercientSF10__EPICOREP21_InvoiceLine__c79company_id,invoice_no,line_noCommercientSF10__ExternalKey__c, company_id,invoice_no,line_noName, admin_feeadmin_fee, budget_cdbudget_cd, buyerbuyer
Customer Reverse Lookup AccountAccount2company_id, customer_idCommercientSF__Commercient_ArCustomerCode__c, SFDCIDCommercientSF10__Customer__c
Inv_MasterCommercientSF10__EPICOREP21_InvMaster__c91inv_mast_uid,item_idCommercientSF10__ExternalKey__c, inv_mast_uid,item_idName, attribute_group_uidattribute_group_uid, avail_for_sch_delivery_flagavail_for_sch_delivery_flag, base_unitbase_unit
Productproduct26inv_mast_uid, item_idCommercientSF__ExternalKey__c, item_id, item_descName, inactiveIsActive, item_idProductCode, item_descDescription
WarehouseCommercientSF10__EPICOREP21_Warehouse__c93company_id, inv_mast_uid, location_idCommercientSF10__ExternalKey__c, location_name, location_idName, allow_ds_discontinued_itemsallow_ds_discontinued_items, allow_sp_discontinued_itemsallow_sp_discontinued_items, alt_tax_group_idalt_tax_group_id
PriceBook2PriceBook23ExternalKey__cExternalKey__c, NameName, TimeStampTimeStamp
Create Standard PriceBookPricebookEntry6SFDCIDProduct2ID, SFDCIDPricebook2ID, IsActiveIsActive, UnitPriceUnitPrice, inv_mast_uid, item_idExternalKey__c
Update Standard PricebookPriceBookEntry4IsActiveIsActive, UnitPriceUnitPrice, inv_mast_uid, item_idExternalKey__c, fulltext_timestampTimeStamp
Custom Pricebook CreatePriceBookEntry6SFDCIDProduct2ID, SFDCIDPricebook2ID, IsActiveIsActive, price3UnitPrice, inv_mast_uid, item_idExternalKey__c
Custom Pricebook UpdatePriceBookEntry4price3IsActive, price3UnitPrice, inv_mast_uid, item_idExternalKey__c, fulltext_timestampTimeStamp
ProductItem ReverselookupCommercientSF10__EPICOREP21_InvMaster__c2inv_mast_uid, item_idCommercientSF10__ExternalKey__c, SFDCIDCommercientSF10__Product__c
OpportunityOpportunity6quote_hdr_uidExternalKey__c, company_id, customer_id, address_idAccountID, quote_hdr_uidName, expiration_dateCloseDate
ContactsContact11id, address_idExternalKey__c, SFDCIDAccountID, idP21_Contact_ID__c, first_nameFirstName, last_nameLastName
Opportunity LineItemOpportunityLineItem6SFDCIDProduct2Id, SFDCIDOpportunityId, SFDCIDPricebookEntryId, quote_line_uidExternalKey, price1UnitPrice
QuoteQuote21order_noExternalKey__c, order_noName, SFDCIDOpportunityId, SFDCIDAccountId, Pricebook2IdPricebook2Id
Quote LineQuoteLineItem6order_no, line_noExternalKey__c, inv_mast_uid, item_idProduct2ID, qty_orderedQuantity, unit_priceUnitPrice, inv_mast_uid, item_idPricebookEntryId
Standard OrderOrder28company_id, order_noExternalKey__c, customer_idAccountId, contact_idBillToContactId, contact_idShipToContactId, oe_hdr_uidOpportunityId
Standard_Order_LineOrderItem12company_no, line_no, order_noExternalKey__c, order_noOrderId, inv_mast_uid, item_idProduct2Id, inv_mast_uid, item_idPricebookEntryId, order_no, line_noQuoteLineItemId
Standard Order UpdateOrder26company_id, order_noExternalKey__c, customer_idAccountId, contact_idBillToContactId, contact_idShipToContactId, quote_hdr_uidOpportunityId
Standard_Order_Line_UpdateOrderItem10company_no, line_no, order_noExternalKey__c, order_noOrderId, order_no, line_noQuoteLineItemId, extended_descDescription, required_dateEndDate

6. Community templates

The catalogue carries 637 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: 637
  • Default operations: insert on 637, update on 637, delete on 637
  • Marked circular-sync: 4
  • Licence groups they span: 17
  • Destination objects: Account, CommercientSF10__EPICOREP21_InvMaster__c, PriceBookEntry, CommercientSF10__EPICOREP21_Customer__c, Contact, CommercientSF10__EPICOREP21_SalesOrderHeader__c, CommercientSF10__EPICOREP21_ShipToAddress__c, CommercientSF10__EPICOREP21_InvoiceHeader__c, CommercientSF10__EPICOREP21_InvoiceLine__c, product2, CommercientSF10__EPICOREP21_SalesOrderDetail__c, CommercientSF10__EPICOREP21_Term__c, CommercientSF10__EPICOREP21_SalesPerson__c, OrderItem, User, Opportunity, PricebookEntry, CommercientSF10__EPICOREP21_Warehouse__c, OpportunityLineItem, CommercientSF10__EPICOREP21_Address__c, 39 more and 19 custom objects
  • Object display names: Account, Customer Reverse Lookup Account, Shipto, Contacts, Customer, InvoiceLine, InvoiceHeader, Product, OrderHeader, SalesPerson, Termscode, Inv_Master, 125 more and 30 further templates
  • Template groups: Account, Product, Invoice, Salesorder, Customer Multi Ship Addresses, CRM Order and Line, CRM Opportunity and Line, CRM Quote and Line, Opportunity, Pricebook, Vendor

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_EPICORP21_ShipToAddress
  • vwinv_mast
  • vw_Product
  • vwWarehouse
  • vw_EPICORP21_ProductItemReverseLookup
  • vw_EPICORP21_CRM_Account
  • vw_EPICORP21_CustomerToAccountLookup
  • vwTerms
  • vw_EPICORP21_Contact
  • vwOpportunity
  • vwOpportunityLineItem
  • vw_EPICORP21_Standard_Order_Header
  • vw_EPICORP21_Standard_Order_Line
  • vwSFQuote
  • vwSFQuoteLine
  • vw_EPICORP21_Customer
  • vw_EPICORP21_InvoiceHeader
  • vw_EPICORP21_InvoiceLine
  • vwPriceBook2
  • vw_StandardProductPriceBook
  • vw_ProductPriceBook
  • vw_EPICORP21_SalesOrderDetail
  • vw_EPICORP21_SalesOrderHeader
  • vw_EPICORP21_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 Epicor Prophet 21 (P21) → 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.