Source ERP · 55 of 105

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

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

CRMPro → Salesforce — Microsoft Dynamics AX: 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-ax.md, and that skill’s ERP table is what points at it. What follows is only what the shipped Microsoft Dynamics AX → 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
SYNC SALESQUOTATIONTABLEThe templates push CommercientSF9__SALESQUOTATIONTABLE__c to Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF9__SALESQUOTATIONTABLE__cSF_ERP_Salesforce_Clone_SalesQuotationTable
Get Salesforce UserThe 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, CommercientSF9__MSDYNAMICAX_PaymentTerms__c, Contact, CommercientSF9__MSDYNAMICAX_Customer__c, CommercientSF9__MSDYNAMICAX_SalesPerson__cSF_ERP_Salesforce_Clone_CUSTTABLE, SF_ERP_Salesforce_Clone_CompanyInfo, SF_ERP_Salesforce_Clone_PAYMTERM, SF_ERP_Salesforce_Clone_CONTACTPERSON
CRM Opportunity and LineThe templates push OPPORTUNITY to Salesforce. New records are created and existing ones updated; none are deleted.OPPORTUNITYSF_ERP_Salesforce_Clone_smmOpportunityTable, SF_ERP_Salesforce_Clone_CUSTTABLE
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.CommercientSF9__MSDYNAMICAX_Address__cSF_ERP_Salesforce_Clone_ADDRESS
ProductThe templates push CommercientSF9__MSDYNAMICAX_ItemWarehouse__c, CommercientSF9__MSDYNAMICAX_Item__c, Product2 to Salesforce. New records are created and existing ones updated; none are deleted.CommercientSF9__MSDYNAMICAX_ItemWarehouse__c, CommercientSF9__MSDYNAMICAX_Item__c, Product2SF_ERP_Salesforce_Clone_INVENTLOCATION, SF_ERP_Salesforce_Clone_INVENTTABLE
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__MSDYNAMICAX_InvoiceHeader__c, CommercientSF9__MSDYNAMICAX_InvoiceDetail__cSF_ERP_Salesforce_Clone_SALESLINE, SF_ERP_Salesforce_Clone_CUSTINVOICETRANS, CT, SF_ERP_Salesforce_Clone_CUSTINVOICEJOUR
PricebookThe templates push PricebookEntry to Salesforce. New records are created and existing ones updated; none are deleted.PricebookEntrySF_ERP_Salesforce_Clone_INVENTTABLE
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__MSDYNAMICAX_SalesOrderHeader__c, CommercientSF9__MSDYNAMICAX_SalesOrderDetail__cSF_ERP_Salesforce_Clone_SALESTABLE, S, CommercientFlags, SF_ERP_Salesforce_Clone_SALESLINE

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 Salesforce UserUserCommercientSF6__SalespersonCode__c0vw_MSDYNAMICAX_GetUser1=0'' / ''1
SYNC PAYMTERMCommercientSF9__MSDYNAMICAX_PaymentTerms__cCommercientSF9__ExternalKey__c1vw_MSDYNAMICAX_PAYMTERMvw_MSDYNAMICAX_PAYMTERMCommercientSF9__ / __c
SYNC ADDRESSCommercientSF9__MSDYNAMICAX_Address__cCommercientSF9__ExternalKey__c2vw_MSDYNAMICAX_Addressvw_MSDYNAMICAX_AddressCommercientSF9__ / __c
MSDYNAMICAX SalesPersonCommercientSF9__MSDYNAMICAX_SalesPerson__cCommercientSF9__ExternalKey__c3vw_MSDYNAMICAX_SalesPersonvw_MSDYNAMICAX_SalesPersonCommercientSF9__ / __c
AccountAccountCommercientSF__Commercient_ArCustomerCode__c4vw_MSDYNAMICAX_Accountvw_MSDYNAMICAX_Account'' / ''
SYNC CUSTOMERCommercientSF9__MSDYNAMICAX_Customer__cCommercientSF9__ExternalKey__c5vw_MSDYNAMICAX_Customervw_MSDYNAMICAX_CustomerCommercientSF9__ / __c
SYNC CUSTOMERTOACCOUNTLOOKUPAccountCommercientSF__Commercient_ArCustomerCode__c6vw_MSDYNAMICAX_CustomerToAccountLookupvw_MSDYNAMICAX_CustomerToAccountLookup'' / ''
SYNC ITEMWAREHOUSECommercientSF9__MSDYNAMICAX_ItemWarehouse__cCommercientSF9__ExternalKey__c7vw_MSDYNAMICAX_ItemWarehousevw_MSDYNAMICAX_ItemWarehouseCommercientSF9__ / __C
SYNC PRODUCTProduct2CommercientSF__ExternalKey__c8vw_MSDYNAMICAX_Productvw_MSDYNAMICAX_Product'' / ''
SYNC ITEMCommercientSF9__MSDYNAMICAX_Item__cCommercientSF9__ExternalKey__c9vw_MSDYNAMICAX_Itemvw_MSDYNAMICAX_ItemCommercientSF9__ / __C
SYNC ITEMTOPRODUCTLOOKUPProduct2CommercientSF__ExternalKey__c10vw_MSDYNAMICAX_ItemToProductLookupvw_MSDYNAMICAX_ItemToProductLookup'' / ''
SYNC STANDARDPRICEBOOKPricebookEntryExternalKey__c11vw_MSDYNAMICAX_StandardPriceBookvw_MSDYNAMICAX_StandardPriceBook'' / ''
SYNC STANDARDPRICEBOOKUPDATEPricebookEntryExternalKey__c12vw_MSDYNAMICAX_StandardPriceBook_Updatevw_MSDYNAMICAX_StandardPriceBook_Update'' / ''
SYNC OPPORTUNITYOPPORTUNITYExternalKey__c13vw_MSDYNAMICAX_Opportunityvw_MSDYNAMICAX_Opportunity'' / ''
SYNC SALESORDERHEADERCommercientSF9__MSDYNAMICAX_SalesOrderHeader__cCommercientSF9__ExternalKey__c15vw_MSDYNAMICAX_SALESORDERHEADERvw_MSDYNAMICAX_SALESORDERHEADERCommercientSF9__ / __c
SYNC SALESORDERDETAILCommercientSF9__MSDYNAMICAX_SalesOrderDetail__cCommercientSF9__ExternalKey__c16vw_MSDYNAMICAX_SALESORDERDETAILvw_MSDYNAMICAX_SALESORDERDETAILCommercientSF9__ / __c
SYNC INVOICEHEADERCommercientSF9__MSDYNAMICAX_InvoiceHeader__cCommercientSF9__ExternalKey__c17vw_MSDYNAMICAX_INVOICEHEADERvw_MSDYNAMICAX_INVOICEHEADERCommercientSF9__ / __c
SYNC INVOICEDETAILCommercientSF9__MSDYNAMICAX_InvoiceDetail__cCommercientSF9__ExternalKey__c18vw_MSDYNAMICAX_INVOICEDETAILvw_MSDYNAMICAX_INVOICEDETAILCommercientSF9__ / __c
SYNC SALESQUOTATIONTABLECommercientSF9__SALESQUOTATIONTABLE__cCommercientSF9__ExternalKey__c19vw_MSDYNAMICAX_SalesQuotationTablevw_MSDYNAMICAX_SalesQuotationTableCommercientSF9__ / __c
ContactContactExternalKey__c19vw_MSDYNAMICAX_Contactvw_MSDYNAMICAX_Contact'' / ''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_Delete_Records 0, Sync_Batch_Size 200. Is_Active_Get_Records is set on SYNC STANDARDPRICEBOOK; IsAccountMatching is set on Account, Contact. Text columns a template does not use are inserted as '' rather than left NULL. Get_SOQL_Query carries a query on Get Salesforce User, SYNC STANDARDPRICEBOOK — those rows read records back from Salesforce as well as pushing. On SYNC INVOICEHEADER the SQL_Query names a view the same template’s CreateViewQuery does not create (vw_MSDYNAMICAX_INVOICEHEADER against vw_MSDYNAMICAX_SALESORDERDETAIL), 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_MSDYNAMICAX_PAYMTERMinsert + updatevw_MSDYNAMICAX_PAYMTERM:SF_ERP_Salesforce_Clone_PAYMTERM
vw_MSDYNAMICAX_Addressinsert + updatevw_MSDYNAMICAX_Address:SF_ERP_Salesforce_Clone_ADDRESS
vw_MSDYNAMICAX_SalesPersoninsert + updatevw_MSDYNAMICAX_SalesPerson:ExternalKeySF_ERP_Salesforce_Clone_CONTACTPERSON
vw_MSDYNAMICAX_Accountinsert + updatevw_MSDYNAMICAX_Account:CommercientSF__Commercient_ArCustomerCode__cSF_ERP_Salesforce_Clone_CUSTTABLE, SF_ERP_Salesforce_Clone_CompanyInfo
vw_MSDYNAMICAX_Customerinsert + updatevw_MSDYNAMICAX_Customer:vw_MSDYNAMICAX_Account:, vw_MSDYNAMICAX_PAYMTERM:SF_ERP_Salesforce_Clone_CUSTTABLE
vw_MSDYNAMICAX_CustomerToAccountLookupinsert + updatevw_MSDYNAMICAX_CustomerToAccountLookup:vw_MSDYNAMICAX_Customer:SF_ERP_Salesforce_Clone_CUSTTABLE
vw_MSDYNAMICAX_ItemWarehouseinsert + updatevw_MSDYNAMICAX_ItemWarehouse:SF_ERP_Salesforce_Clone_INVENTLOCATION
vw_MSDYNAMICAX_Productinsert + updatevw_MSDYNAMICAX_Product:SF_ERP_Salesforce_Clone_INVENTTABLE
vw_MSDYNAMICAX_Iteminsert + updatevw_MSDYNAMICAX_Item:vw_MSDYNAMICAX_Product:SF_ERP_Salesforce_Clone_INVENTTABLE
vw_MSDYNAMICAX_ItemToProductLookupinsert + updatevw_MSDYNAMICAX_ItemToProductLookup:vw_MSDYNAMICAX_Item:SF_ERP_Salesforce_Clone_INVENTTABLE
vw_MSDYNAMICAX_StandardPriceBookinsert + updatevw_MSDYNAMICAX_StandardPriceBook:vw_MSDYNAMICAX_Product:SF_ERP_Salesforce_Clone_INVENTTABLE
vw_MSDYNAMICAX_StandardPriceBook_Updateinsert + updatevw_MSDYNAMICAX_Product:, vw_MSDYNAMICAX_StandardPriceBook:SF_ERP_Salesforce_Clone_INVENTTABLE
vw_MSDYNAMICAX_Opportunityinsert + updatevw_MSDYNAMICAX_Opportunity:vw_MSDYNAMICAX_Account:SF_ERP_Salesforce_Clone_smmOpportunityTable, SF_ERP_Salesforce_Clone_CUSTTABLE
vw_MSDYNAMICAX_SALESORDERHEADERinsert + updatevw_MSDYNAMICAX_SALESORDERHEADER:vw_MSDYNAMICAX_Account:, vw_MSDYNAMICAX_Customer:, vw_MSDYNAMICAX_SalesPerson:ExternalKeySF_ERP_Salesforce_Clone_SALESTABLE, S, CommercientFlags
vw_MSDYNAMICAX_SALESORDERDETAILinsert + updatevw_MSDYNAMICAX_SALESORDERDETAIL:vw_MSDYNAMICAX_SALESORDERHEADER:, vw_MSDYNAMICAX_Item:SF_ERP_Salesforce_Clone_SALESLINE
vw_MSDYNAMICAX_SALESORDERDETAILinsert + updatevw_MSDYNAMICAX_SALESORDERHEADER:, vw_MSDYNAMICAX_Item:, vw_MSDYNAMICAX_SALESORDERDETAIL:SF_ERP_Salesforce_Clone_SALESLINE
vw_MSDYNAMICAX_INVOICEDETAILinsert + updatevw_MSDYNAMICAX_INVOICEDETAIL:vw_MSDYNAMICAX_INVOICEHEADER:, vw_MSDYNAMICAX_Item:ExternalKeySF_ERP_Salesforce_Clone_CUSTINVOICETRANS, CT, SF_ERP_Salesforce_Clone_CUSTINVOICEJOUR
vw_MSDYNAMICAX_Contactinsert + updatevw_MSDYNAMICAX_Contact:ExternalKey__cSF_ERP_Salesforce_Clone_CONTACTPERSON

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

  • 0 — Get Salesforce User
  • 1 — SYNC PAYMTERM
  • 2 — SYNC ADDRESS
  • 3 — MSDYNAMICAX SalesPerson
  • 4 — Account
  • 5 — SYNC CUSTOMER
  • 6 — SYNC CUSTOMERTOACCOUNTLOOKUP
  • 7 — SYNC ITEMWAREHOUSE
  • 8 — SYNC PRODUCT
  • 9 — SYNC ITEM
  • 10 — SYNC ITEMTOPRODUCTLOOKUP
  • 11 — SYNC STANDARDPRICEBOOK
  • 12 — SYNC STANDARDPRICEBOOKUPDATE
  • 13 — SYNC OPPORTUNITY
  • 15 — SYNC SALESORDERHEADER
  • 16 — SYNC SALESORDERDETAIL
  • 17 — SYNC INVOICEHEADER
  • 18 — SYNC INVOICEDETAIL
  • 19 — SYNC SALESQUOTATIONTABLE, Contact

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_MSDYNAMICAX_CustomerToAccountLookup reads vw_MSDYNAMICAX_Customer:
  • vw_MSDYNAMICAX_Opportunity reads vw_MSDYNAMICAX_Account:
  • vw_MSDYNAMICAX_Customer reads vw_MSDYNAMICAX_Account:, vw_MSDYNAMICAX_PAYMTERM:
  • vw_MSDYNAMICAX_Item reads vw_MSDYNAMICAX_Product:
  • vw_MSDYNAMICAX_SALESORDERDETAIL reads vw_MSDYNAMICAX_SALESORDERHEADER:, vw_MSDYNAMICAX_Item:, vw_MSDYNAMICAX_SALESORDERDETAIL:
  • vw_MSDYNAMICAX_INVOICEDETAIL reads vw_MSDYNAMICAX_INVOICEHEADER:, vw_MSDYNAMICAX_Item:
  • vw_MSDYNAMICAX_StandardPriceBook reads vw_MSDYNAMICAX_Product:
  • vw_MSDYNAMICAX_StandardPriceBook_Update reads vw_MSDYNAMICAX_Product:, vw_MSDYNAMICAX_StandardPriceBook:
  • vw_MSDYNAMICAX_ItemToProductLookup reads vw_MSDYNAMICAX_Item:
  • vw_MSDYNAMICAX_SALESORDERHEADER reads vw_MSDYNAMICAX_Account:, vw_MSDYNAMICAX_Customer:, vw_MSDYNAMICAX_SalesPerson:
  • vw_MSDYNAMICAX_SALESORDERDETAIL reads vw_MSDYNAMICAX_SALESORDERHEADER:, vw_MSDYNAMICAX_Item:

5. Field mapping

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

TemplateObjectMapped fieldsFirst ERP → Salesforce pairs
SYNC PAYMTERMCommercientSF9__MSDYNAMICAX_PaymentTerms__c17DATAAREAID, PAYMTERMIDCommercientSF9__ExternalKey__c, DATAAREAID, PAYMTERMIDName, PAYMTERMIDCommercientSF9__PAYMTERMID__c, PAYMMETHODCommercientSF9__PAYMMETHOD__c, NUMOFDAYSCommercientSF9__NUMOFDAYS__c
SYNC ADDRESSCommercientSF9__MSDYNAMICAX_Address__c15DATAAREAID,RECIDCommercientSF9__ExternalKey__c, DATAAREAID,RECIDCommercientSF9__Name__c, ADDRESSCommercientSF9__Address__c, COUNTRYREGIONIDCommercientSF9__COUNTRYREGIONID__c, ZIPCODECommercientSF9__ZIPCODE__c
MSDYNAMICAX SalesPersonCommercientSF9__MSDYNAMICAX_SalesPerson__c8RECIDCommercientSF9__ExternalKey__c, NAMEName, CREATEDBYCREATEDBY, FIRSTNAMEFIRSTNAME, LASTNAMELASTNAME
AccountAccount14DATAAREAID, ACCOUNTNUMCommercientSF__Commercient_ArCustomerCode__c, DATAAREAID, NAME<org-prefix>_Company_account__c (an org-specific custom field; the shipped template names one customer org), NAMEName, PHONEPhone, ADDRESSBillingStreet
SYNC CUSTOMERCommercientSF9__MSDYNAMICAX_Customer__c56DATAAREAID,ACCOUNTNUMCommercientSF9__ExternalKey__c, ACCOUNTNUMAccount, NAMEName, INVOICEACCOUNTInvoiceAccount, CUSTGROUPCustGroup
SYNC CUSTOMERTOACCOUNTLOOKUPAccount2DATAAREAID, ACCOUNTNUMCommercientSF__Commercient_ArCustomerCode__c, SFDCIDCommercientSF9__MSDYNAMICAX_Customer__c
SYNC ITEMWAREHOUSECommercientSF9__MSDYNAMICAX_ItemWarehouse__c32DATAAREAID,INVENTLOCATIONIDCommercientSF9__ExternalKey__c, NAMEName, INVENTLOCATIONIDINVENTLOCATIONID, MANUALMANUAL, EMPTYPALLETLOCATIONEMPTYPALLETLOCATION
SYNC PRODUCTProduct24DATAAREAID, ITEMIDCommercientSF__ExternalKey__c, ITEMIDProductCode, ITEMNAMEName, ITEMNAMEDescription
SYNC ITEMCommercientSF9__MSDYNAMICAX_Item__c64DATAAREAID, ITEMIDCommercientSF9__ExternalKey__c, DATAAREAID, ITEMID, ITEMNAMEName, ITEMIDCommercientSF9__ITEMID__c, ITEMTYPECommercientSF9__ITEMTYPE__c, PURCHMODELCommercientSF9__PURCHMODEL__c
SYNC ITEMTOPRODUCTLOOKUPProduct22DATAAREAID, ITEMIDCommercientSF__ExternalKey__c, SFDCIDCommercientSF9__MSDYNAMICAX_Item__c
SYNC STANDARDPRICEBOOKPricebookEntry6DATAAREAID, ITEMIDExternalKey__c, SFDCIDPricebook2Id, SFDCIDProduct2ID, IsActiveIsActive, UnitPriceUnitPrice
SYNC STANDARDPRICEBOOKUPDATEPricebookEntry4DATAAREAID, ITEMIDExternalKey__c, IsActiveIsActive, UnitPriceUnitPrice, TimeStampTimeStamp
SYNC OPPORTUNITYOPPORTUNITY8DATAAREAID, OPPORTUNITYIDExternalKey__c, DATAAREAID, OPPORTUNITYIDName, SUBJECTDescription, STATUSStageName, ESTIMATEDREVENUEBudget__c
SYNC SALESORDERHEADERCommercientSF9__MSDYNAMICAX_SalesOrderHeader__c73DATAAREAID,SALESIDCommercientSF9__ExternalKey__c, SALESIDCommercientSF9__SalesID__c, SALESNAMECommercientSF9__SalesName__c, RESERVATIONCommercientSF9__Reservation__c, CUSTACCOUNTCommercientSF9__CustAccount__c
SYNC SALESORDERDETAILCommercientSF9__MSDYNAMICAX_SalesOrderDetail__c77DATAAREAID,INVENTTRANSIDCommercientSF9__ExternalKey__c, DATAAREAID,INVENTTRANSIDCommercientSF9__Name__c, SALESIDCommercientSF9__SalesID__c, LINENUMCommercientSF9__LineNum__c, ITEMIDCommercientSF9__ItemID__c
SYNC INVOICEHEADERCommercientSF9__MSDYNAMICAX_InvoiceHeader__c74DATAAREAID,INVENTTRANSIDCommercientSF9__ExternalKey__c, SALESIDCommercientSF9__CommercientSF9__Sales_Order_Header__c, ITEMIDCommercientSF9__CommercientSF9__Item__c, LINENUMCommercientSF9__CommercientSF9__LINENUM__c, SALESSTATUSCommercientSF9__CommercientSF9__SALESSTATUS__c
SYNC INVOICEDETAILCommercientSF9__MSDYNAMICAX_InvoiceDetail__c86DATAAREAID, RECIDCommercientSF9__ExternalKey__c, INVOICEIDCommercientSF9__InvoiceID__c, INVOICEDATECommercientSF9__InvoiceDate__c, LINENUMCommercientSF9__LineNumber__c, INVENTTRANSIDCommercientSF9__InventTransId__c
ContactContact12FirstNameFirstName, LastNameLastName, TitleTitle, EmailEmail, PhonePhone

6. 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_MSDYNAMICAX_SalesQuotationTable
  • vw_MSDYNAMICAX_GetUser
  • vw_MSDYNAMICAX_Account
  • vw_MSDYNAMICAX_CustomerToAccountLookup
  • vw_MSDYNAMICAX_PAYMTERM
  • vw_MSDYNAMICAX_Contact
  • vw_MSDYNAMICAX_Opportunity
  • vw_MSDYNAMICAX_Customer
  • vw_MSDYNAMICAX_Address
  • vw_MSDYNAMICAX_ItemWarehouse
  • vw_MSDYNAMICAX_Item
  • vw_MSDYNAMICAX_INVOICEHEADER
  • vw_MSDYNAMICAX_INVOICEDETAIL
  • vw_MSDYNAMICAX_StandardPriceBook
  • vw_MSDYNAMICAX_StandardPriceBook_Update
  • vw_MSDYNAMICAX_Product
  • vw_MSDYNAMICAX_ItemToProductLookup
  • vw_MSDYNAMICAX_SALESORDERHEADER
  • vw_MSDYNAMICAX_SALESORDERDETAIL
  • vw_MSDYNAMICAX_SalesPerson

7. 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 AX → 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.