Source ERP · 6 of 27

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

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

CRMPro → Zoho CRM — GlobalShop: 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/globalshop.md, and that skill’s ERP table is what points at it. What follows is only what the shipped GlobalShop → 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
UsersThe templates push users to Zoho CRM. New records are created and existing ones updated; none are deleted.users
Globalshop TermThe templates push commercientglobalshop__GlobalShop_Terms to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientglobalshop__GlobalShop_TermsSF_ERP_Salesforce_Clone_AR_TERMS
Globalshop SalesPersonThe templates push commercientglobalshop__GlobalShop_Salespersons to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientglobalshop__GlobalShop_SalespersonsSF_ERP_Salesforce_Clone_SALESPEOPLE
AccountThe templates push Accounts to Zoho CRM. New records are created and existing ones updated; none are deleted.AccountsSF_ERP_Salesforce_Clone_CUSTOMER_MASTER, SF_ERP_Salesforce_Clone_V_OE_MULTI_SHIP
Globalshop CustomerThe templates push commercientglobalshop__GlobalShop_Customer to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientglobalshop__GlobalShop_CustomerSF_ERP_Salesforce_Clone_CUSTOMER_MASTER
ContactsThe templates push Contacts to Zoho CRM. New records are created and existing ones updated; none are deleted.ContactsSF_ERP_Salesforce_Clone_CONTACT
Globalshop ShipToThe templates push commercientglobalshop__GlobalShop_ShipToAddress to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientglobalshop__GlobalShop_ShipToAddressSF_ERP_Salesforce_Clone_V_OE_MULTI_SHIP
ProductsThe templates push Products to Zoho CRM. New records are created and existing ones updated; none are deleted.ProductsSF_ERP_Salesforce_Clone_INVENTORY_MSTR
Globalshop ItemThe templates push commercientglobalshop__GlobalShop_Item_Master to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientglobalshop__GlobalShop_Item_MasterSF_ERP_Salesforce_Clone_INVENTORY_MSTR
Globalshop SalesOrderThe templates push commercientglobalshop__GlobalShop_SO_Header to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientglobalshop__GlobalShop_SO_HeaderSF_ERP_Salesforce_Clone_ORDER_HEADER
GLOBALSHOP ItemListThe templates push commercientglobalshop__GlobalShop_Item_List to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientglobalshop__GlobalShop_Item_ListSF_ERP_Salesforce_Clone_ITEM_MASTER
Globalshop SalesOrderLineThe templates push commercientglobalshop__GlobalShop_SO_Line to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientglobalshop__GlobalShop_SO_LineSF_ERP_Salesforce_Clone_ORDER_LINES
Globalshop InvoiceThe templates push commercientglobalshop__GlobalShop_Invoice_Header to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientglobalshop__GlobalShop_Invoice_HeaderSF_ERP_Salesforce_Clone_ORDER_HIST_HEAD
Globalshop InvoiceLineThe templates push commercientglobalshop__GlobalShop_Invoice_Line to Zoho CRM. New records are created and existing ones updated; none are deleted.commercientglobalshop__GlobalShop_Invoice_LineSF_ERP_Salesforce_Clone_ORDER_HIST_LINE

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'' / ''
Globalshop Termcommercientglobalshop__GlobalShop_Termscommercientglobalshop__Commercient_ExternalKey1vw_GLOBALSHOP_Term:vw_GLOBALSHOP_Termcommercientglobalshop__ / __c
Globalshop SalesPersoncommercientglobalshop__GlobalShop_Salespersonscommercientglobalshop__Commercient_ExternalKey2vw_GLOBALSHOP_SalesPerspon:vw_GLOBALSHOP_SalesPersponcommercientglobalshop__ / __c
AccountAccountsCommercient_ExternalKey3vw_GLOBALSHOP_Account:vw_GLOBALSHOP_Account'' / ''
Globalshop Customercommercientglobalshop__GlobalShop_Customercommercientglobalshop__Commercient_ExternalKey4vw_GLOBALSHOP_Customer:vw_GLOBALSHOP_Customercommercientglobalshop__ / __c
ContactsContactsCommercient_ExternalKey4vw_GLOBALSHOP_Contact:vw_GLOBALSHOP_Contact'' / ''
Globalshop ShipTocommercientglobalshop__GlobalShop_ShipToAddresscommercientglobalshop__Commercient_ExternalKey5vw_GLOBALSHOP_ShipTo:vw_GLOBALSHOP_ShipTocommercientglobalshop__ / __c
ProductsProductsCommercient_ExternalKey6vw_GLOBALSHOP_Product:vw_GLOBALSHOP_Product'' / ''
Globalshop Itemcommercientglobalshop__GlobalShop_Item_Mastercommercientglobalshop__Commercient_ExternalKey7vw_GLOBALSHOP_Item:vw_GLOBALSHOP_Itemcommercientglobalshop__ / ''
Globalshop SalesOrdercommercientglobalshop__GlobalShop_SO_Headercommercientglobalshop__Commercient_ExternalKey8vw_GLOBALSHOP_SalesOrder:vw_GLOBALSHOP_SalesOrdercommercientglobalshop__ / ''
GLOBALSHOP ItemListcommercientglobalshop__GlobalShop_Item_Listcommercientglobalshop__Commercient_ExternalKey8vw_GLOBALSHOP_ItemList:vw_GLOBALSHOP_ItemListcommercientglobalshop__ / __c
Globalshop SalesOrderLinecommercientglobalshop__GlobalShop_SO_Linecommercientglobalshop__Commercient_ExternalKey9vw_GLOBALSHOP_SalesOrderLine:vw_GLOBALSHOP_SalesOrderLinecommercientglobalshop__ / ''
Globalshop Invoicecommercientglobalshop__GlobalShop_Invoice_Headercommercientglobalshop__Commercient_ExternalKey10vw_GLOBALSHOP_Invoice:vw_GLOBALSHOP_Invoicecommercientglobalshop__ / ''
Globalshop InvoiceLinecommercientglobalshop__GlobalShop_Invoice_Linecommercientglobalshop__Commercient_ExternalKey11vw_GLOBALSHOP_InvoiceLine:vw_GLOBALSHOP_InvoiceLinecommercientglobalshop__ / ''

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 Products — those rows read records back from Zoho CRM as well as pushing.

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_GLOBALSHOP_Terminsert-onlyvw_GLOBALSHOP_Term:Commercient_ExternalKeySF_ERP_Salesforce_Clone_AR_TERMS
vw_GLOBALSHOP_SalesPersponinsert-onlyvw_GLOBALSHOP_SalesPerspon:Commercient_ExternalKeySF_ERP_Salesforce_Clone_SALESPEOPLE
vw_GLOBALSHOP_Accountinsert-onlyvw_GLOBALSHOP_Account:SF_ERP_Salesforce_Clone_CUSTOMER_MASTER, SF_ERP_Salesforce_Clone_V_OE_MULTI_SHIP
vw_GLOBALSHOP_Customerinsert + updatevw_GLOBALSHOP_Account:, vw_GLOBALSHOP_Customer:SF_ERP_Salesforce_Clone_CUSTOMER_MASTER
vw_GLOBALSHOP_Contactinsert-onlyvw_GLOBALSHOP_Account:, vw_GLOBALSHOP_Contact:Commercient_ExternalKeySF_ERP_Salesforce_Clone_CONTACT
vw_GLOBALSHOP_ShipToinsert + updatevw_GLOBALSHOP_Account:, vw_GLOBALSHOP_Customer:, vw_GLOBALSHOP_ShipTo:Commercient_ExternalKeySF_ERP_Salesforce_Clone_V_OE_MULTI_SHIP
vw_GLOBALSHOP_Productinsert + updatevw_GLOBALSHOP_Item:, vw_GLOBALSHOP_Product:Commercient_ExternalKey__c, Commercient_ExternalKeySF_ERP_Salesforce_Clone_INVENTORY_MSTR
vw_GLOBALSHOP_Iteminsert + updatevw_GLOBALSHOP_Product:, vw_GLOBALSHOP_Item:Commercient_ExternalKeySF_ERP_Salesforce_Clone_INVENTORY_MSTR
vw_GLOBALSHOP_SalesOrderinsert + updatevw_GLOBALSHOP_Account:, vw_GLOBALSHOP_Customer:, vw_GLOBALSHOP_SalesOrder:Commercient_ExternalKeySF_ERP_Salesforce_Clone_ORDER_HEADER
vw_GLOBALSHOP_ItemListinsert + updatevw_GLOBALSHOP_Product:, vw_GLOBALSHOP_Item:, vw_GLOBALSHOP_ItemList:Commercient_ExternalKeySF_ERP_Salesforce_Clone_ITEM_MASTER
vw_GLOBALSHOP_SalesOrderLineinsert + updatevw_GLOBALSHOP_SalesOrder:, vw_GLOBALSHOP_Product:, vw_GLOBALSHOP_Item:, vw_GLOBALSHOP_SalesOrderLine:Commercient_ExternalKeySF_ERP_Salesforce_Clone_ORDER_LINES
vw_GLOBALSHOP_Invoiceinsert + updatevw_GLOBALSHOP_Account:, vw_GLOBALSHOP_Customer:, vw_GLOBALSHOP_Invoice:Commercient_ExternalKeySF_ERP_Salesforce_Clone_ORDER_HIST_HEAD
vw_GLOBALSHOP_InvoiceLineinsert + updatevw_GLOBALSHOP_Invoice:, vw_GLOBALSHOP_Product:, vw_GLOBALSHOP_Item:, vw_GLOBALSHOP_InvoiceLine:Commercient_ExternalKeySF_ERP_Salesforce_Clone_ORDER_HIST_LINE

4. Order of work

The templates set Sync_Order from 0 to 11. A run processes active rows in ascending Sync_Order, which is the order the templates put them in:

  • 0 — Users
  • 1 — Globalshop Term
  • 2 — Globalshop SalesPerson
  • 3 — Account
  • 4 — Globalshop Customer, Contacts
  • 5 — Globalshop ShipTo
  • 6 — Products
  • 7 — Globalshop Item
  • 8 — Globalshop SalesOrder, GLOBALSHOP ItemList
  • 9 — Globalshop SalesOrderLine
  • 10 — Globalshop Invoice
  • 11 — Globalshop InvoiceLine

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_GLOBALSHOP_Term reads vw_GLOBALSHOP_Term:; no template in this set writes vw_GLOBALSHOP_Term:
  • vw_GLOBALSHOP_SalesPerspon reads vw_GLOBALSHOP_SalesPerspon:; no template in this set writes vw_GLOBALSHOP_SalesPerspon:
  • vw_GLOBALSHOP_Account reads vw_GLOBALSHOP_Account:; no template in this set writes vw_GLOBALSHOP_Account:
  • vw_GLOBALSHOP_Customer reads vw_GLOBALSHOP_Account:, vw_GLOBALSHOP_Customer:; no template in this set writes vw_GLOBALSHOP_Account:, vw_GLOBALSHOP_Customer:
  • vw_GLOBALSHOP_Contact reads vw_GLOBALSHOP_Account:, vw_GLOBALSHOP_Contact:; no template in this set writes vw_GLOBALSHOP_Account:, vw_GLOBALSHOP_Contact:
  • vw_GLOBALSHOP_ShipTo reads vw_GLOBALSHOP_Account:, vw_GLOBALSHOP_Customer:, vw_GLOBALSHOP_ShipTo:; no template in this set writes vw_GLOBALSHOP_Account:, vw_GLOBALSHOP_Customer:, vw_GLOBALSHOP_ShipTo:
  • vw_GLOBALSHOP_Product reads vw_GLOBALSHOP_Item:, vw_GLOBALSHOP_Product:; no template in this set writes vw_GLOBALSHOP_Item:, vw_GLOBALSHOP_Product:
  • vw_GLOBALSHOP_Item reads vw_GLOBALSHOP_Product:, vw_GLOBALSHOP_Item:; no template in this set writes vw_GLOBALSHOP_Product:, vw_GLOBALSHOP_Item:
  • vw_GLOBALSHOP_SalesOrder reads vw_GLOBALSHOP_Account:, vw_GLOBALSHOP_Customer:, vw_GLOBALSHOP_SalesOrder:; no template in this set writes vw_GLOBALSHOP_Account:, vw_GLOBALSHOP_Customer:, vw_GLOBALSHOP_SalesOrder:
  • vw_GLOBALSHOP_ItemList reads vw_GLOBALSHOP_Product:, vw_GLOBALSHOP_Item:, vw_GLOBALSHOP_ItemList:; no template in this set writes vw_GLOBALSHOP_Product:, vw_GLOBALSHOP_Item:, vw_GLOBALSHOP_ItemList:
  • vw_GLOBALSHOP_SalesOrderLine reads vw_GLOBALSHOP_SalesOrder:, vw_GLOBALSHOP_Product:, vw_GLOBALSHOP_Item:, vw_GLOBALSHOP_SalesOrderLine:; no template in this set writes vw_GLOBALSHOP_SalesOrder:, vw_GLOBALSHOP_Product:, vw_GLOBALSHOP_Item:, vw_GLOBALSHOP_SalesOrderLine:
  • vw_GLOBALSHOP_Invoice reads vw_GLOBALSHOP_Account:, vw_GLOBALSHOP_Customer:, vw_GLOBALSHOP_Invoice:; no template in this set writes vw_GLOBALSHOP_Account:, vw_GLOBALSHOP_Customer:, vw_GLOBALSHOP_Invoice:
  • vw_GLOBALSHOP_InvoiceLine reads vw_GLOBALSHOP_Invoice:, vw_GLOBALSHOP_Product:, vw_GLOBALSHOP_Item:, vw_GLOBALSHOP_InvoiceLine:; no template in this set writes vw_GLOBALSHOP_Invoice:, vw_GLOBALSHOP_Product:, vw_GLOBALSHOP_Item:, vw_GLOBALSHOP_InvoiceLine:

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
Globalshop Termcommercientglobalshop__GlobalShop_Terms14ASS_SYS, ASS_SUB_SYS, TERMS_CODE, ASS_SUB_ITEMCommercient_ExternalKey, TERMS_CODE, ASS_SYS, ASS_SUB_SYS, ASS_SUB_ITEMName, TERMS_CODETerms_Code, TERMS_DISC_DAYSTerms_Disc_Days, TERMS_DISC_PCTTerms_Disc_Pct
Globalshop SalesPersoncommercientglobalshop__GlobalShop_Salespersons9KEY1,KEY2,SALESPERSON_CODE,FILLERCommercient_ExternalKey, BUYER_SHIPTOBuyer_Shipto, FILLERFiller, FILLER3Filler3, SALESPERSONName
AccountAccounts13CUSTOMERCommercient_ExternalKey, NAME_CUSTOMERAccount_Name, TELEPHONEPhone, ADDRESS1, ADDRESS2Billing_Street, CITYBilling_City
Globalshop Customercommercientglobalshop__GlobalShop_Customer30CUSTOMERCommercient_ExternalKey, NAME_CUSTOMERName, ADDRESS1Address1, ADDRESS2Address2, ASSGN_USR_GRPAssign_User_Group
ContactsContacts11CUST,TYPE,IDCommercient_ExternalKey, CUSTAccount_Name, TITLETitle, NAME_LAST,NAME,CUST,TYPE,IDLast_Name, NAME_FIRSTFirst_Name
Globalshop ShipTocommercientglobalshop__GlobalShop_ShipToAddress74CUSTOMER,SHIP_SEQCommercient_ExternalKey, CUSTOMER_NAME,SHIP_SEQName, COMM_IV_INT_SHPCOMM_IV_INT_SHP, CUSTOMERCustomer, CUSTOMER_NAMECustomer_Name
ProductsProducts10PART, LOCATIONCommercient_ExternalKey__c, PARTProduct_Name, PARTProduct_Code, SFDCIDGlobalShop_Inventory, QTY_ONHANDQty_in_Stock
Globalshop Itemcommercientglobalshop__GlobalShop_Item_Master78PART, LOCATIONCommercient_ExternalKey, PARTName, CODE_ABCABC_Code, AMT_ALT_COSTAlternate_Cost_Amount, CTR_BACK_ORDERBack_Order_Counter
Globalshop SalesOrdercommercientglobalshop__GlobalShop_SO_Header97ORDER_NOCommercient_ExternalKey, ORDER_NOName, CUSTOMERAccount, FLAG_ALWAYS_DISCOUNTAlways_Use_Discount_Indicator, AREAArea
GLOBALSHOP ItemListcommercientglobalshop__GlobalShop_Item_List50ALLOC_TYPEAlloc_Type, ALLOCATEDAllocated, BINBin, CERT_CODECart_Code, CERT_DATECertDate
Globalshop SalesOrderLinecommercientglobalshop__GlobalShop_SO_Line100ORDER_NO,RECORD_NOCommercient_ExternalKey, ORDER_NO,RECORD_NOName, ORDER_NOGlobalShop_SO_Header, PART,LOCATIONProduct, PART,LOCATIONGlobalShop_Item_Master
Globalshop Invoicecommercientglobalshop__GlobalShop_Invoice_Header99INVOICE, ORDER_NO, ORDER_SUFFIXCommercient_ExternalKey, INVOICE, ORDER_NO, ORDER_SUFFIXName, CUSTOMERAccount, CUSTOMERGlobalShop_Customer, ADDRESS1Address_Line_1
Globalshop InvoiceLinecommercientglobalshop__GlobalShop_Invoice_Line70INVOICE, ORDER_NO, ORDER_SUFFIX, ORDER_LINECommercient_ExternalKey, INVOICEGlobalShop_Invoice_Header, PART, LOCATIONProduct, PART, LOCATIONGlobalShop_Item_Master, COUNTRY_SHIPShip_To_Country

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:

  • SalesRep:
  • vw_GLOBALSHOP_Term:
  • vw_GLOBALSHOP_SalesPerspon:
  • vw_GLOBALSHOP_Account:
  • vw_GLOBALSHOP_Customer:
  • vw_GLOBALSHOP_Contact:
  • vw_GLOBALSHOP_ShipTo:
  • vw_GLOBALSHOP_Product:
  • vw_GLOBALSHOP_Item:
  • vw_GLOBALSHOP_SalesOrder:
  • vw_GLOBALSHOP_ItemList:
  • vw_GLOBALSHOP_SalesOrderLine:
  • vw_GLOBALSHOP_Invoice:
  • vw_GLOBALSHOP_InvoiceLine:

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