Source ERP · 13 of 27

CRMPro → Zoho CRM — QuickBooks Desktop: what the shipped templates set up

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

CRMPro → Zoho CRM — QuickBooks Desktop: 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-zohocrm is the destination skill this page is a child of, and the authority for the Zoho 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-zohocrm/erps/quickbooks-desktop.md, and that skill’s ERP table is what points at it. What follows is only what the shipped QuickBooks Desktop → Zoho CRM 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
Quickbooks TermsThe templates push zohotoquickbooks__Quickbooks_Terms to Zoho CRM. New records are created and existing ones updated; none are deleted.zohotoquickbooks__Quickbooks_TermsSF_ERP_Salesforce_Clone_Terms
Quickbook SalesRepThe templates push zohotoquickbooks__Quickbooks_Sales_Persons to Zoho CRM. New records are created and existing ones updated; none are deleted.zohotoquickbooks__Quickbooks_Sales_PersonsSF_ERP_Salesforce_Clone_SalesRep
AccountThe templates push Accounts to Zoho CRM. New records are created and existing ones updated; none are deleted.AccountsSF_ERP_Salesforce_Clone_Customer
Child AccountThe templates push Accounts to Zoho CRM. New records are created and existing ones updated; none are deleted.Accounts
Quickbooks CustomersThe templates push zohotoquickbooks__Quickbooks_Customer to Zoho CRM. New records are created and existing ones updated; none are deleted.zohotoquickbooks__Quickbooks_CustomerSF_ERP_Salesforce_Clone_Customer
ContactsThe templates push Contacts to Zoho CRM. New records are created and existing ones updated; none are deleted.ContactsSF_ERP_Salesforce_Clone_Contact
ProductsThe templates push Products to Zoho CRM. New records are created and existing ones updated; none are deleted.ProductsSF_ERP_Salesforce_Clone_ItemInventory, SF_ERP_Salesforce_Clone_ItemInventoryAssembly, SF_ERP_Salesforce_Clone_ItemNonInventory
Quickbooks ItemThe templates push zohotoquickbooks__Quickbooks_Item to Zoho CRM. New records are created and existing ones updated; none are deleted.zohotoquickbooks__Quickbooks_ItemSF_ERP_Salesforce_Clone_ItemInventory, SF_ERP_Salesforce_Clone_ItemInventoryAssembly, SF_ERP_Salesforce_Clone_ItemNonInventory
Quickbooks SalesOrderHeaderThe templates push zohotoquickbooks__QuickbooksSaleOrderHeader to Zoho CRM. New records are created and existing ones updated; none are deleted.zohotoquickbooks__QuickbooksSaleOrderHeaderSF_ERP_Salesforce_Clone_SalesOrder, CommercientFlags
Quickbooks SalesOrderDetailThe templates push zohotoquickbooks__QuickbooksSaleOrderDetail to Zoho CRM. New records are created and existing ones updated; none are deleted.zohotoquickbooks__QuickbooksSaleOrderDetailSF_ERP_Salesforce_Clone_SalesOrderLine
Quickbooks InvoiceHeaderThe templates push zohotoquickbooks__Quickbooks_Invoice_Header to Zoho CRM. New records are created and existing ones updated; none are deleted.zohotoquickbooks__Quickbooks_Invoice_HeaderSF_ERP_Salesforce_Clone_Invoice
Quickbooks InvoiceDetailThe templates push zohotoquickbooks__Quickbooks_Invoice_Detail to Zoho CRM. New records are created and existing ones updated; none are deleted.zohotoquickbooks__Quickbooks_Invoice_DetailSF_ERP_Salesforce_Clone_InvoiceLine
Quickbooks CrediMemoThe templates push zohotoquickbooks__Quickbooks_Invoice_Header to Zoho CRM. New records are created and existing ones updated; none are deleted.zohotoquickbooks__Quickbooks_Invoice_HeaderSF_ERP_Salesforce_Clone_CreditMemo, SF_ERP_Salesforce_Clone_Invoice
Quickbooks CrediMemoLineThe templates push zohotoquickbooks__Quickbooks_Invoice_Detail to Zoho CRM. New records are created and existing ones updated; none are deleted.zohotoquickbooks__Quickbooks_Invoice_DetailSF_ERP_Salesforce_Clone_CreditMemoLine, SF_ERP_Salesforce_Clone_InvoiceLine
CRM OwnershipThe templates push users to Zoho CRM. New records are created and existing ones updated; none are deleted.users

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 / postfix
UsersusersCommercient_ExternalKey0SalesRep:SELECT 1'' / ''
Quickbooks Termszohotoquickbooks__Quickbooks_TermsCommercient_ExternalKey1vw_QUICKBOOK_Terms:vw_QUICKBOOK_Termszohotoquickbooks__ / __c
Quickbook SalesRepzohotoquickbooks__Quickbooks_Sales_PersonsCommercient_ExternalKey2vw_QUICKBOOK_SalesRep:vw_QUICKBOOK_SalesRepzohotoquickbooks__ / __c
AccountAccountszohotoquickbooks__Commercient_ArCustomer_Code3vw_QUICKBOOK_Account:vw_QUICKBOOK_Parent_Account'' / ''
Child AccountAccountsCommercient_ArCustomer_Code4vw_QUICKBOOK_Account:vw_QUICKBOOK_Child_Account'' / ''
Quickbooks Customerszohotoquickbooks__Quickbooks_CustomerCommercient_ExternalKey5vw_QUICKBOOK_Customer:vw_QUICKBOOK_Customerzohotoquickbooks__ / __c
ContactsContactsCommercient_ExternalKey6vw_QUICKBOOK_Contact:vw_QUICKBOOK_Contact'' / ''
ProductsProductsCommercient_ExternalKey7vw_QUICKBOOK_Productvw_QUICKBOOK_Product'' / ''
Quickbooks Itemzohotoquickbooks__Quickbooks_ItemCommercient_ExternalKey8vw_QUICKBOOK_Item:vw_QUICKBOOK_Itemzohotoquickbooks__ / __c
Quickbooks SalesOrderHeaderzohotoquickbooks__QuickbooksSaleOrderHeaderCommercient_ExternalKey9vw_QUICKBOOK_SalesOrderHeader:vw_QUICKBOOK_SalesOrderHeaderzohotoquickbooks__ / __c
Quickbooks SalesOrderDetailzohotoquickbooks__QuickbooksSaleOrderDetailCommercient_ExternalKey10vw_QUICKBOOK_SalesOrderDetail:vw_QUICKBOOK_SalesOrderDetailzohotoquickbooks__ / __c
Quickbooks InvoiceHeaderzohotoquickbooks__Quickbooks_Invoice_HeaderCommercient_ExternalKey11vw_QUICKBOOK_InvoiceHeader:vw_QUICKBOOK_InvoiceHeaderzohotoquickbooks__ / __c
Quickbooks InvoiceDetailzohotoquickbooks__Quickbooks_Invoice_DetailCommercient_ExternalKey12vw_QUICKBOOK_InvoiceDetail:vw_QUICKBOOK_InvoiceDetailzohotoquickbooks__ / __c
Quickbooks CrediMemozohotoquickbooks__Quickbooks_Invoice_HeaderCommercient_ExternalKey14vw_QUICKBOOK_CreditMemo:vw_QUICKBOOK_CreditMemozohotoquickbooks__ / __c
Quickbooks CrediMemoLinezohotoquickbooks__Quickbooks_Invoice_DetailCommercient_ExternalKey15vw_QUICKBOOK_CreditMemoLine:vw_QUICKBOOK_CreditMemoLinezohotoquickbooks__ / __c

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. The insert column lists do not include Sync_Operation_Type, Sync_Batch_Size, IsAccountMatching, Document_Source_Path, so those columns take their CRM_Configuration defaults. Text columns a template does not use are inserted as '' rather than left NULL. Get_SOQL_Query carries a query on Account, Child Account, Contacts, Products — those rows read records back from Zoho CRM as well as pushing. On Account the SQL_Query names a view the same template’s CreateViewQuery does not create (vw_QUICKBOOK_Parent_Account against vw_QUICKBOOK_Account), 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_QUICKBOOK_Termsinsert-onlyvw_QUICKBOOK_Terms:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_Terms
vw_QUICKBOOK_SalesRepinsert + updatevw_QUICKBOOK_SalesRep:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_SalesRep
vw_QUICKBOOK_Accountvw_QUICKBOOK_SalesRep:, vw_QUICKBOOK_Account:SF_ERP_Salesforce_Clone_Customer
vw_QUICKBOOK_Customerinsert + updatevw_QUICKBOOK_Account:, vw_QUICKBOOK_SalesRep:, vw_QUICKBOOK_Customer:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_Customer
vw_QUICKBOOK_Contactinsert + updatevw_QUICKBOOK_Account:, vw_QUICKBOOK_Customer:, vw_QUICKBOOK_Contact:SF_ERP_Salesforce_Clone_Contact
vw_QUICKBOOK_Productinsert + updatevw_QUICKBOOK_Product:Commercient_ExternalKeySF_ERP_Salesforce_Clone_ItemInventory, SF_ERP_Salesforce_Clone_ItemInventoryAssembly, SF_ERP_Salesforce_Clone_ItemNonInventory
vw_QUICKBOOK_Iteminsert + updatevw_QUICKBOOK_Product:, vw_QUICKBOOK_Item:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_ItemInventory, SF_ERP_Salesforce_Clone_ItemInventoryAssembly, SF_ERP_Salesforce_Clone_ItemNonInventory
vw_QUICKBOOK_SalesOrderHeaderinsert + updatevw_QUICKBOOK_Account:, vw_QUICKBOOK_Customer:, vw_QUICKBOOK_SalesOrderHeader:SF_ERP_Salesforce_Clone_SalesOrder, CommercientFlags
vw_QUICKBOOK_SalesOrderDetailinsert + updatevw_QUICKBOOK_SalesOrderHeader:, vw_QUICKBOOK_Item:, vw_QUICKBOOK_SalesOrderDetail:SF_ERP_Salesforce_Clone_SalesOrderLine
vw_QUICKBOOK_InvoiceHeaderinsert + updatevw_QUICKBOOK_Account:, vw_QUICKBOOK_Customer:, vw_QUICKBOOK_InvoiceHeader:SF_ERP_Salesforce_Clone_Invoice
vw_QUICKBOOK_InvoiceDetailinsert + updatevw_QUICKBOOK_InvoiceHeader:, vw_QUICKBOOK_Item:, vw_QUICKBOOK_InvoiceDetail:SF_ERP_Salesforce_Clone_InvoiceLine
vw_QUICKBOOK_CreditMemoinsert + updatevw_QUICKBOOK_Account:, vw_QUICKBOOK_Customer:, vw_QUICKBOOK_CreditMemo:SF_ERP_Salesforce_Clone_CreditMemo, SF_ERP_Salesforce_Clone_Invoice
vw_QUICKBOOK_CreditMemoLineinsert + updatevw_QUICKBOOK_CreditMemo:, vw_QUICKBOOK_Item:, vw_QUICKBOOK_CreditMemoLine:SF_ERP_Salesforce_Clone_CreditMemoLine, SF_ERP_Salesforce_Clone_InvoiceLine

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

  • 0 — Users
  • 1 — Quickbooks Terms
  • 2 — Quickbook SalesRep
  • 3 — Account
  • 4 — Child Account
  • 5 — Quickbooks Customers
  • 6 — Contacts
  • 7 — Products
  • 8 — Quickbooks Item
  • 9 — Quickbooks SalesOrderHeader
  • 10 — Quickbooks SalesOrderDetail
  • 11 — Quickbooks InvoiceHeader
  • 12 — Quickbooks InvoiceDetail
  • 14 — Quickbooks CrediMemo
  • 15 — Quickbooks CrediMemoLine

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_QUICKBOOK_Terms reads vw_QUICKBOOK_Terms:; no template in this set writes vw_QUICKBOOK_Terms:
  • vw_QUICKBOOK_SalesRep reads vw_QUICKBOOK_SalesRep:; no template in this set writes vw_QUICKBOOK_SalesRep:
  • vw_QUICKBOOK_Account reads vw_QUICKBOOK_SalesRep:, vw_QUICKBOOK_Account:; no template in this set writes vw_QUICKBOOK_SalesRep:, vw_QUICKBOOK_Account:
  • vw_QUICKBOOK_Customer reads vw_QUICKBOOK_Account:, vw_QUICKBOOK_SalesRep:, vw_QUICKBOOK_Customer:; no template in this set writes vw_QUICKBOOK_Account:, vw_QUICKBOOK_SalesRep:, vw_QUICKBOOK_Customer:
  • vw_QUICKBOOK_Contact reads vw_QUICKBOOK_Account:, vw_QUICKBOOK_Customer:, vw_QUICKBOOK_Contact:; no template in this set writes vw_QUICKBOOK_Account:, vw_QUICKBOOK_Customer:, vw_QUICKBOOK_Contact:
  • vw_QUICKBOOK_Item reads vw_QUICKBOOK_Product:, vw_QUICKBOOK_Item:; no template in this set writes vw_QUICKBOOK_Item:
  • vw_QUICKBOOK_SalesOrderHeader reads vw_QUICKBOOK_Account:, vw_QUICKBOOK_Customer:, vw_QUICKBOOK_SalesOrderHeader:; no template in this set writes vw_QUICKBOOK_Account:, vw_QUICKBOOK_Customer:, vw_QUICKBOOK_SalesOrderHeader:
  • vw_QUICKBOOK_SalesOrderDetail reads vw_QUICKBOOK_SalesOrderHeader:, vw_QUICKBOOK_Item:, vw_QUICKBOOK_SalesOrderDetail:; no template in this set writes vw_QUICKBOOK_SalesOrderHeader:, vw_QUICKBOOK_Item:, vw_QUICKBOOK_SalesOrderDetail:
  • vw_QUICKBOOK_InvoiceHeader reads vw_QUICKBOOK_Account:, vw_QUICKBOOK_Customer:, vw_QUICKBOOK_InvoiceHeader:; no template in this set writes vw_QUICKBOOK_Account:, vw_QUICKBOOK_Customer:, vw_QUICKBOOK_InvoiceHeader:
  • vw_QUICKBOOK_InvoiceDetail reads vw_QUICKBOOK_InvoiceHeader:, vw_QUICKBOOK_Item:, vw_QUICKBOOK_InvoiceDetail:; no template in this set writes vw_QUICKBOOK_InvoiceHeader:, vw_QUICKBOOK_Item:, vw_QUICKBOOK_InvoiceDetail:
  • vw_QUICKBOOK_CreditMemo reads vw_QUICKBOOK_Account:, vw_QUICKBOOK_Customer:, vw_QUICKBOOK_CreditMemo:; no template in this set writes vw_QUICKBOOK_Account:, vw_QUICKBOOK_Customer:, vw_QUICKBOOK_CreditMemo:
  • vw_QUICKBOOK_CreditMemoLine reads vw_QUICKBOOK_CreditMemo:, vw_QUICKBOOK_Item:, vw_QUICKBOOK_CreditMemoLine:; no template in this set writes vw_QUICKBOOK_CreditMemo:, vw_QUICKBOOK_Item:, vw_QUICKBOOK_CreditMemoLine:

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 → Zoho CRM pairs
Usersusers1
Quickbooks Termszohotoquickbooks__Quickbooks_Terms14ListIDCommercient_ExternalKey__c, DayOfMonthDueDay_Of_Month_Due, DiscountDayOfMonthDiscount_Day_Of_Month, DiscountPctDiscount_Pct, DueNextMonthDaysDue_Next_Month_Days
Quickbook SalesRepzohotoquickbooks__Quickbooks_Sales_Persons9ListIDCommercient_ExternalKey__c, SalesRepEntityRefFullNameName, ListIDList_ID, TimeCreatedTime_Created, TimeModifiedTime_Modified
Child AccountAccounts1Commercient_ArCustomer_CodeCommercient_ArCustomer_Code
ContactsContacts13SFDCIDAccount_Name, SFDCIDQuickBooks_Customer__c, SalutationSalutation, FirstNameFirst_Name, LastNameLast_Name
ProductsProducts21ListIDCommercient_ExternalKey, NameProduct_Code, FullNameDescription, NameProduct_Name, QuantityOnHandQty_in_Stock
Quickbooks Itemzohotoquickbooks__Quickbooks_Item100ListIDCommercient_ExternalKey__c, AssetAccountRefFullNameAsset_Account_Reference_FullName, AssetAccountRefListIDAsset_Account_Reference_ListID, AverageCostAverage_Cost, BarCodeValueBar_Code_Value

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_QUICKBOOK_Terms:
  • vw_QUICKBOOK_SalesRep:
  • vw_QUICKBOOK_Account:
  • vw_QUICKBOOK_Customer:
  • vw_QUICKBOOK_Contact:
  • vw_QUICKBOOK_Product
  • vw_QUICKBOOK_Item:
  • vw_QUICKBOOK_SalesOrderHeader:
  • vw_QUICKBOOK_SalesOrderDetail:
  • vw_QUICKBOOK_InvoiceHeader:
  • vw_QUICKBOOK_InvoiceDetail:
  • vw_QUICKBOOK_CreditMemo:
  • vw_QUICKBOOK_CreditMemoLine:
  • SalesRep:

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 QuickBooks Desktop → Zoho CRM templates set up. dlake-crmpro-zohocrm is the destination skill this page sits under: its own text is the authority for the Zoho 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.