Qeasy Cloud
Get Started

Product Master Data Sync from CRM to DingTalk Yida: A Practical Configuration Guide on Qeasy

· 钟家寿· Integration Solutions· 17 views· 4 min read

What This Strategy Solves

In a retail enterprise's sales management workflow, the CRM system serves as the source of truth for product master data, while DingTalk Yida operates as the internal business form and lightweight application platform that requires the same product catalog to support quotation, order entry, and approval flows. It may look like a simple "push the products over" task, but once the coding, category, and status fields fall out of alignment, the two systems diverge within three months and employees no longer know which one to trust. The core value of this solution is: use the Qeasy Data Integration Platform to converge on a single source of truth, pushing products (including primary categories) from the CRM to DingTalk Yida, ensuring consistent coding, controlled categorization, and traceable changes.

Data Flow and Field Mapping

The overall flow is unidirectional A → B: the source is the "Product" object (including primary categories) in the CRM, the target is the corresponding product form in DingTalk Yida, and the Qeasy Integration Platform sits in the middle performing mapping and transformation.

Key field mapping:

Business MeaningSource Field (CRM)Middle-Layer ProcessingTarget Field (DingTalk Yida)
Product Codeproduct_codePass-through with trim and case normalizationproductCode
Product Nameproduct_nameRemove leading/trailing spaces and invisible charactersproductName
Primary Categorycategory_l1Centrally managed via code mappingcategoryL1
Primary Category Namecategory_l1_nameLooked up via category codecategoryL1Name
Specification/ModelspecTruncate overlong valuesspec
UnitunitDictionary mapping (box/piece/each)unit
Active StatusstatusBoolean normalizationisActive
Last Update Timeupdated_atUsed as incremental cursor_lastUpdateTime

Here, Qeasy's "centrally managed code mapping" serves as a critical gatekeeper: primary categories use different naming conventions in the CRM (business terminology) versus Yida (form-oriented language), so we centralize the mapping relationships in Qeasy, allowing business users to make changes in one place.

How to Configure on Qeasy

  1. Register source and target system connections: The source points to the CRM's product open API, and the target points to the DingTalk Yida form write entry. In a public cloud environment, application credentials are sufficient.
  2. Build the data model: Pull fields based on the product object from the source, and build the table based on the Yida form fields. Note that Yida's field types (text/number/association/single-select) impose format restrictions, so align field types in Qeasy ahead of time.
  3. Configure field mappings: Complete one-to-one mappings per the table above. Category fields go through the "Code Mapping" component, specification fields through the "String Processing" component, and status fields through the "Boolean Conversion" component.
  4. Configure the no-op node: The strategy source material includes a "no-op" node, intended to reserve space for future extensions (such as adding secondary categories or attachment fields), avoiding changes to the main pipeline.
  5. Set the incremental cursor: Use the source's updated_at as the incremental key, fetching only data changed since the last successful run.
  6. Handle exceptions: When writing to Yida fails, branch by error code — the three most common issues are overlong form fields, missing required items, and unfound association fields, each handled via retry, manual queue, and alert notification respectively.

Implementation Steps

We split the rollout into three phases to avoid blasting the form with a full sync from the start:

  • Phase 1: Incremental Start Point (Manual Trigger). On the launch day, manually run a "full backfill" in Qeasy to write historical products to Yida in one batch, anchoring the start time with updated_at.
  • Phase 2: Scheduling Deployment (Scheduled Trigger). Pull incremental data every 15 minutes and write to Yida. This adopts the typical pattern of "incremental as primary + full sync as fallback": run increments during normal operations, and trigger a full validation every Sunday at 02:00 to detect inconsistencies for manual intervention.
  • Phase 3: Steady-State Operations. After two weeks of operation, observe three metrics in Qeasy's task center — "success count / failure count / average duration". If the failure rate stays below 0.5% and the average duration remains stable, the system is considered to be in steady state.

Pitfall Review

  • A typical mistake is passing category fields as plain strings. In one on-site case, the source category name was "Gift Box Set," while Yida's single-select option was "Gift Box / Set," causing everything to fall into the "Other" category. The safe approach is to always route categories through code mapping, never pass strings naked outside the mapping component.
  • Wrong incremental start point causing historical data to be overwritten. The updated_at anchor must be "the moment the full backfill completes," not "the moment the task starts." This is where things easily go wrong, especially after a mid-process restart.
  • Yida silently truncates overlong fields. When product names exceed 50 characters, Yida fails the write but returns only a generic error code. We recommend adding a length validation in Qeasy, sending failed records straight to the queue without retry.
  • Missing code normalization causing case-sensitivity collisions. The CRM contained both A001 and a001 for the same code, and Yida's form uses the unique code as the primary key, triggering conflicts. Normalization must be done at source read time.
  • The no-op node was mistakenly deleted. It seems useless but serves as a placeholder for future extensions. Deleting it forces a full reordering of the pipeline the next time secondary categories need to be added, which is not worth the trouble.

Applicable and Non-Applicable Scenarios

This solution applies when the CRM is the sole source of product master data and DingTalk Yida serves as the downstream form/light-app consumer, with product counts in the tens of thousands and moderate change frequency. If the product count exceeds one hundred thousand, switch to batched async writes. If Yida is not the sole consumer and bidirectional sync is required, do not apply this unidirectional pipeline.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-okkicrm-dingtalk-2864-na41096cd-2d9721f3

Comments