Source ERP · 50 of 105

CRMPro → Salesforce — JD Edwards: what the shipped templates set up

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

CRMPro → Salesforce — JD Edwards: 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/jd-edwards.md, and that skill’s ERP table is what points at it. What follows is only what the shipped JD Edwards → 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 USERSThe templates push User to Salesforce. New records are created, existing ones updated, and records removed in the ERP are deleted.User
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, CommercientSF17__F03012__c, CommercientSF17_F0005__cSF_ERP_Salesforce_Clone_F0101, SF_ERP_Salesforce_Clone_F03012, SF_ERP_Salesforce_Clone_F0116, SF_ERP_Salesforce_Clone_F0115, SF_ERP_Salesforce_Clone_F0005
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.CommercientSF17_F4006__c, CommercientSF17__F0101__c, CommercientSF17__F0115__cSF_ERP_Salesforce_Clone_F4006, SF_ERP_Salesforce_Clone_F0101, SF_ERP_Salesforce_Clone_F03012, SF_ERP_Salesforce_Clone_F0115
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.CommercientSF17_F03B13__c, CommercientSF17_F03B14__cSF_ERP_Salesforce_Clone_F03B13, SF_ERP_Salesforce_Clone_F03012, CommercientFlags, SF_ERP_Salesforce_Clone_F03B14
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.CommercientSF17__F4201__c, CommercientSF17__F4211__cSF_ERP_Salesforce_Clone_F4201, SF_ERP_Salesforce_Clone_F03012, CommercientFlags, SF_ERP_Salesforce_Clone_F4211

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 USERSUser0vw_JDEdwards_User1=0'' / ''1
JDEdward SalesPersonCommercientSF17_F0005__cExternalKey__c1vw_JDEdwards_SalesPersonvw_JDEdwards_SalesPerson'' / __c1
AccountAccountCommercientSF__Commercient_ArCustomerCode__c2vw_JDEdwards_Accountvw_JDEdwards_Account'' / ''1
JDEdwards CustomerCommercientSF17__F03012__cCommercientSF17__ExternalKey__c3vw_JDEdwards_Customervw_JDEdwards_CustomerCommercientSF17__ / __c1
AccountCustomerLookupAccountCommercientSF__Commercient_ArCustomerCode__c5vw_JDEdwards_CustomerToAccountLookupvw_JDEdwards_CustomerToAccountLookup'' / ''1
JDEdwards SalesOrderCommercientSF17__F4201__cCommercientSF17__ExternalKey__c6vw_JDEdwards_Sales_Order_Headervw_JDEdwards_Sales_Order_HeaderCommercientSF17__ / __c1
JDEdwards SalesOrderLineCommercientSF17__F4211__cCommercientSF17__ExternalKey__c7vw_JDEdwards_Sales_Order_Detail_Linevw_JDEdwards_Sales_Order_Detail_LineCommercientSF17__ / __c1
JDEdwards Invoice HeaderCommercientSF17_F03B13__cExternalKey__c8vw_JDEdwards_InvoiceHeadervw_JDEdwards_InvoiceHeader'' / __c1
JDEdwards Invoice DetailsCommercientSF17_F03B14__cExternalKey__c9vw_JDEdwards_InvoiceDetailvw_JDEdwards_InvoiceDetail'' / __c1
JDEdwards Order AddressCommercientSF17_F4006__cExternalKey__c17vw_JDEdwards_Order_Addressvw_JDEdwards_Order_Address'' / __c1
JDEdwards SalesOrder HistoryCommercientSF17__F4201__cCommercientSF17__ExternalKey__c18vw_JDEdwards_Sales_Order_Headervw_JDEdwards_Sales_Order_Header_HistoryCommercientSF17__ / __c1
JDEdwards SalesOrderLine HistoryCommercientSF17__F4211__cCommercientSF17__ExternalKey__c19vw_JDEdwards_Sales_Order_Detail_Linevw_JDEdwards_Sales_Order_Detail_Line_HistoryCommercientSF17__ / __c1
JDEdwards Address_Book_MasterCommercientSF17__F0101__cCommercientSF17__ExternalKey__c20vw_JDEdwards_Address_Book_Mastervw_JDEdwards_Address_Book_MasterCommercientSF17__ / __c1
JDEdwards Address_Book_Phone_NumberCommercientSF17__F0115__cCommercientSF17__ExternalKey__c21vw_JDEdwards_Address_Book_Phone_Numbervw_JDEdwards_Address_Book_Phone_NumberCommercientSF17__ / __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. Text columns a template does not use are inserted as '' rather than left NULL. Get_SOQL_Query carries a query on GET USERS, Account — those rows read records back from Salesforce as well as pushing. On JDEdwards SalesOrder History, JDEdwards SalesOrderLine History the SQL_Query names a view the same template’s CreateViewQuery does not create (vw_JDEdwards_Sales_Order_Header_History against vw_JDEdwards_Sales_Order_Header; vw_JDEdwards_Sales_Order_Detail_Line_History against vw_JDEdwards_Sales_Order_Detail_Line), 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_JDEdwards_SalesPersoninsert + updatevw_JDEdwards_SalesPerson:ExternalKeySF_ERP_Salesforce_Clone_F0005
vw_JDEdwards_Accountinsert + updatevw_JDEdwards_Account:vw_JDEdwards_PaymentTerms:SF_ERP_Salesforce_Clone_F0101, SF_ERP_Salesforce_Clone_F03012, SF_ERP_Salesforce_Clone_F0116, SF_ERP_Salesforce_Clone_F0115
vw_JDEdwards_Customerinsert + updatevw_JDEdwards_Customer:vw_JDEdwards_Account:ExternalKeySF_ERP_Salesforce_Clone_F03012, SF_ERP_Salesforce_Clone_F0101
vw_JDEdwards_CustomerToAccountLookupinsert + updatevw_JDEdwards_CustomerToAccountLookup:vw_JDEdwards_Customer:SF_ERP_Salesforce_Clone_F0101, SF_ERP_Salesforce_Clone_F03012
vw_JDEdwards_Sales_Order_Headerinsert + updatevw_JDEdwards_Sales_Order_Header:vw_JDEdwards_Account:, vw_JDEdwards_Customer:, vw_JDEdwards_PaymentTerms:ExternalKeySF_ERP_Salesforce_Clone_F4201, SF_ERP_Salesforce_Clone_F03012, CommercientFlags
vw_JDEdwards_Sales_Order_Detail_Lineinsert + updatevw_JDEdwards_Sales_Order_Detail_Line:vw_JDEdwards_Sales_Order_Header:ExternalKeySF_ERP_Salesforce_Clone_F4211
vw_JDEdwards_InvoiceHeaderinsert + updatevw_JDEdwards_InvoiceHeader:vw_JDEdwards_Account:, vw_JDEdwards_Customer:ExternalKeySF_ERP_Salesforce_Clone_F03B13, SF_ERP_Salesforce_Clone_F03012, CommercientFlags
vw_JDEdwards_InvoiceDetailinsert + updatevw_JDEdwards_InvoiceDetail:vw_JDEdwards_InvoiceHeader:ExternalKeySF_ERP_Salesforce_Clone_F03B14
vw_JDEdwards_Order_Addressinsert + updatevw_JDEdwards_Order_Address:vw_JDEdwards_Sales_Order_Header:ExternalKeySF_ERP_Salesforce_Clone_F4006
vw_JDEdwards_Sales_Order_Headerinsert-onlyvw_JDEdwards_Sales_Order_Header:vw_JDEdwards_Account:, vw_JDEdwards_Customer:, vw_JDEdwards_PaymentTerms:ExternalKeySF_ERP_Salesforce_Clone_F4201, SF_ERP_Salesforce_Clone_F03012, CommercientFlags
vw_JDEdwards_Sales_Order_Detail_Lineinsert + updatevw_JDEdwards_Sales_Order_Detail_Line:vw_JDEdwards_Sales_Order_Header:ExternalKeySF_ERP_Salesforce_Clone_F4211
vw_JDEdwards_Address_Book_Masterinsert + updatevw_JDEdwards_Address_Book_Master:vw_JDEdwards_Account:, vw_JDEdwards_Customer:ExternalKeySF_ERP_Salesforce_Clone_F0101, SF_ERP_Salesforce_Clone_F03012
vw_JDEdwards_Address_Book_Phone_Numberinsert + updatevw_JDEdwards_Address_Book_Phone_Number:vw_JDEdwards_Account:, vw_JDEdwards_Customer:ExternalKeySF_ERP_Salesforce_Clone_F0115, SF_ERP_Salesforce_Clone_F03012

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

  • 0 — GET USERS
  • 1 — JDEdward SalesPerson
  • 2 — Account
  • 3 — JDEdwards Customer
  • 5 — AccountCustomerLookup
  • 6 — JDEdwards SalesOrder
  • 7 — JDEdwards SalesOrderLine
  • 8 — JDEdwards Invoice Header
  • 9 — JDEdwards Invoice Details
  • 17 — JDEdwards Order Address
  • 18 — JDEdwards SalesOrder History
  • 19 — JDEdwards SalesOrderLine History
  • 20 — JDEdwards Address_Book_Master
  • 21 — JDEdwards Address_Book_Phone_Number

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_JDEdwards_Account reads vw_JDEdwards_PaymentTerms:; no template in this set writes vw_JDEdwards_PaymentTerms:
  • vw_JDEdwards_CustomerToAccountLookup reads vw_JDEdwards_Customer:
  • vw_JDEdwards_Customer reads vw_JDEdwards_Account:
  • vw_JDEdwards_Order_Address reads vw_JDEdwards_Sales_Order_Header:
  • vw_JDEdwards_Address_Book_Master reads vw_JDEdwards_Account:, vw_JDEdwards_Customer:
  • vw_JDEdwards_Address_Book_Phone_Number reads vw_JDEdwards_Account:, vw_JDEdwards_Customer:
  • vw_JDEdwards_InvoiceHeader reads vw_JDEdwards_Account:, vw_JDEdwards_Customer:
  • vw_JDEdwards_InvoiceDetail reads vw_JDEdwards_InvoiceHeader:
  • vw_JDEdwards_Sales_Order_Header reads vw_JDEdwards_Account:, vw_JDEdwards_Customer:, vw_JDEdwards_PaymentTerms:; no template in this set writes vw_JDEdwards_PaymentTerms:
  • vw_JDEdwards_Sales_Order_Detail_Line reads vw_JDEdwards_Sales_Order_Header:
  • vw_JDEdwards_Sales_Order_Header reads vw_JDEdwards_Account:, vw_JDEdwards_Customer:, vw_JDEdwards_PaymentTerms:; no template in this set writes vw_JDEdwards_PaymentTerms:
  • vw_JDEdwards_Sales_Order_Detail_Line reads vw_JDEdwards_Sales_Order_Header:

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
JDEdward SalesPersonCommercientSF17_F0005__c13DRSYdrsy__c, DRRTdrrt__c, DRKYdrky__c, DRDL01drdl01__c, DRDL02drdl02__c
AccountAccount16CommercientSFommercient_ArCustomerCodeCommercientSF__Commercient_ArCustomerCode__c, PhonePhone, BillingStreetBillingStreet, BillingPostalCodeBillingPostalCode, BillingCityBillingCity
JDEdwards CustomerCommercientSF17__F03012__c232AIABC2AIABC2, AIABC3AIABC3, AIABC1AIABC1, AIAB2CommercientSF17__AIAB2__c, AIAN8CommercientSF17__AIAN8__c
AccountCustomerLookupAccount2CommercientSFommercient_ArCustomerCodeCommercientSF__Commercient_ArCustomerCode__c, JDEdwards_Customer_MasterJDEdwards_Customer_Master__c
JDEdwards SalesOrderCommercientSF17__F4201__c136AccountAccount, JDEdwards_Customer_MasterJDEdwards_Customer_Master, Payment_Terms_CodePayment_Terms_Code, SHFUF1CommercientSF17__SHFUF1__c, SHCACTSHCACT
JDEdwards SalesOrderLineCommercientSF17__F4211__c269SDXPTYCommercientSF17__SDXPTY__c, SDAN8CommercientSF17__SDAN8__c, SDCCIDLNSDCCIDLN, SDCMCOSDCMCO, SDLITMCommercientSF17__SDLITM__c
JDEdwards Invoice HeaderCommercientSF17_F03B13__c99RYPYIDrypyid__c, RYCKNUrycknu__c, RYAN8ryan8__c, RYPYRrypyr__c, RYDMTJrydmtj__c
JDEdwards Invoice DetailsCommercientSF17_F03B14__c200LOOKUPTO_CommercientSF17_F03B13sf17f03b13__c, LOOKUPTO_CommercientSF17_F03B13sf17f03b13__c, RZPYIDRZPYID__c, RZPYIDrzpyid__c, RZRC5RZRC5
JDEdwards Order AddressCommercientSF17_F4006__c23LOOKUPTO_CommercientSF17__F4201sf17f4201__c, OADOCOoadoco__c, OADCTOoadcto__c, OAKCOOoakcoo__c, OAANTYoaanty__c
JDEdwards SalesOrder HistoryCommercientSF17__F4201__c136AccountAccount, JDEdwards_Customer_MasterJDEdwards_Customer_Master, Payment_Terms_CodePayment_Terms_Code, SHFUF1CommercientSF17__SHFUF1__c, SHCACTSHCACT
JDEdwards SalesOrderLine HistoryCommercientSF17__F4211__c269SDXPTYCommercientSF17__SDXPTY__c, SDAN8CommercientSF17__SDAN8__c, SDCCIDLNSDCCIDLN, SDCMCOSDCMCO, SDLITMCommercientSF17__SDLITM__c
JDEdwards Address_Book_MasterCommercientSF17__F0101__c98ABEFTBCommercientSF17__ABEFTB__c, ABPDICommercientSF17__ABPDI__c, ABURDTCommercientSF17__ABURDT__c, ABUPMJCommercientSF17__ABUPMJ__c, ABUPMT1CommercientSF17__ABUPMT1__c
JDEdwards Address_Book_Phone_NumberCommercientSF17__F0115__c19WPAN8CommercientSF17__WPAN8__c, WPIDLNCommercientSF17__WPIDLN__c, WPRCK7WPRCK7, WPCNLNWPCNLN, WPPHTPCommercientSF17__WPPHTP__c

6. Community templates

The catalogue carries 79 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: 79
  • Default operations: insert on 79, update on 79, delete on 79
  • Marked circular-sync: 0
  • Licence groups they span: 13
  • Destination objects: Account, Product2, CommercientSF17__F4201__c, CommercientSF17__F4211__c, Pricebookentry, CommercientSF17_F03B13__c, CommercientSF17_F03B14__c, CommercientSF17__F0101__c, CommercientSF17_F0005__c, CommercientSF17_F4006__c, Contact, Opportunity, PricebookEntry, User, CommercientSF17__F0115__c, Custom_Pricing__c, JDEdwards_Invoice_Detail__c, JDEdwards_Invoice_Header__c and 10 custom objects
  • Object display names: Account, AccountCustomerLookup, JDEdwards Customer, JDEdwards Invoice Header, JDEdwards SalesOrder, JDEdwards SalesOrderLine, Product, JDEdwards Invoice Details, JDEdwards Item Master, Product Reverse Lookup, Contact, Create Standard PriceBook, 26 more and 4 further templates
  • Template groups: Account, Product, Salesorder, Invoice, Customer Multi Ship Addresses, CRM Opportunity and Line, Opportunity

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_JDEdwards_User
  • vw_JDEdwards_Account
  • vw_JDEdwards_CustomerToAccountLookup
  • vw_JDEdwards_Customer
  • vw_JDEdwards_Order_Address
  • vw_JDEdwards_Address_Book_Master
  • vw_JDEdwards_Address_Book_Phone_Number
  • vw_JDEdwards_InvoiceHeader
  • vw_JDEdwards_InvoiceDetail
  • vw_JDEdwards_Sales_Order_Header
  • vw_JDEdwards_Sales_Order_Detail_Line
  • vw_JDEdwards_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 JD Edwards → 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.