Source ERP · 16 of 19

CRMPro → Dynamics CRM — Sage 50 US: what the template catalogue carries

Read it in the terminal with "dlake skills show dlake-crmpro-dynamicscrm/erps/sage-50-us". It extends the dlake-crmpro-dynamicscrm skill, which holds what is true whatever the source ERP.

CRMPro → Dynamics CRM — Sage 50 US: what the template catalogue carries

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-dynamicscrm is the destination skill this page is a child of, and the authority for the Dynamics CRM 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-dynamicscrm/erps/sage-50-us.md, and that skill’s ERP table is what points at it. The catalogue spells this destination DynamicCRM, so that is the value to pass as a tool argument — dlake admin crmpro_templates --crmName DynamicCRM — but the product is Dynamics CRM, which is what this page calls it. The catalogue ships no Standard template for this pair. Its templates are community templates, authored in a tenant and imported the same way as any other, so what follows is what that set amounts to — how many templates, which operations they default to, which destination objects they write and which groups they fall in. A community template’s own names, notes, field mapping and SQL are tenant content and are not published here; read them with dlake admin crmpro_templates against the tenant that holds them. This page grows as the catalogue does.

1. Community templates

The catalogue carries 11 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.

  • Templates: 11
  • Default operations: insert on 11, update on 11, delete on 11
  • Marked circular-sync: 0
  • Licence groups they span: 7
  • Destination objects: CommercientSF8__PRODUCT__c, account, CommercientSF8__CUSTOMER__c, CommercientSF8__SALESINVOICEDETAIL__c, CommercientSF8__SALESORDERDETAIL__c, sage50us_address, sage50us_customer, sage50us_invoiceheader, sage50us_item, sage50us_salesorder
  • Object display names: SYNC PRODUCT, Get Accounts, Sage50 US Sales Invoice Detail, Sage50 US Sales Order Detail, sage50us address, sage50us customer, sage50us invoiceheader, sage50us item, sage50us salesorder, SYNC CUSTOMER
  • Template groups: Account, Product, CRM Order and Line, Invoice, Salesorder

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.

2. 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 ::.

3. 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 Sage 50 US → Dynamics CRM template catalogue carries. dlake-crmpro-dynamicscrm is the destination skill this page sits under: its own text is the authority for the Dynamics CRM 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.