Qeasy Cloud
Get Started

Syncing Kingdee Cloud Skylight Employee List to Jiandaoyun: A Single-Strategy Integration Tutorial

· 何海波· Integration Solutions· 13 views· 5 min read
简道云Kingdee Cloud销售订单集成基础资料同步主数据治理轻易云

What This Strategy Solves

When building sales-order integration, many teams don't start by moving business documents—they start by aligning "people." Who is the salesperson? Which organization do they belong to? What are their phone and email? In one retail engagement connecting Kingdee Cloud Skylight with Jiandaoyun, the salesperson field on the Jiandaoyun form was being maintained manually for a long time, which meant every downstream document relying on a "salesperson" filter was unreliable. This strategy is a classic case of "master data before business documents": treat Kingdee Cloud Skylight's employee list as the single source of truth and sync it near-real-time into Jiandaoyun so that, when the sales-order sync runs later, the salesperson field is consistent on both sides.

Data Flow and Field Mapping

The data flow is straightforward: Kingdee Cloud Skylight (B-side, source) → Qeasy (middleware for fetch, transform, and fault tolerance) → Jiandaoyun (A-side, target). The source side calls Kingdee's executeBillQuery (WebAPI, POST, effect QUERY), and the target side calls Jiandaoyun's data-create interface data_create.

Key field mapping (source → intermediate variable → target):

Business MeaningKingdee FieldQeasy VariableJiandaoyun Field
Employee NumberFNumber{{FNumber}}Employee No. (_widget_...6442)
Employee NameFName{{FName}}Employee Name (_widget_...6441)
MobileFMobile{{FMobile}}(corresponding widget)
EmailFEmail{{FEmail}}(corresponding widget)
DepartmentFPostDept{{FPostDept}}Work Org Name/Code (_widget_...4713/4714)
Create Org—{{FCreateOrgId}}Create Org (_widget_...6439)
Use Org—{{FUseOrgId}}Use Org (_widget_...6440)
Unique IDFIDInternal keyDeduplicated by Employee No. on target

Note: the source number field is FNumber, but on the target side number is configured as "0" with idCheck: true. This is a common Qeasy pattern: the source uses the business code for deduplication, and the target relies on the scheduler to decide insert vs. update based on the employee number, preventing one employee from producing multiple rows.

How to Configure It on Qeasy

The whole strategy on Qeasy is just a "source executor + target executor" chain. A few key points to watch:

  1. Source executor: Platform = Kingdee.Cloud, API = executeBillQuery. Maintain the request fields per the table above. We usually check all basic fields (FNumber, FName, FMobile, FEmail, FPostDept, etc.). Pulling extra columns is harmless; missing one is painful to fix later.
  2. Target executor: Platform = Jiandaoyun, API = data_create. Bind each Jiandaoyun widget ID to the corresponding intermediate variable. Jiandaoyun widget IDs are long strings like _widget_1690761596xxx—always copy them from the form designer view, never type them manually.
  3. Centralized code mapping: The employee number is the "anchor" between the two systems. In Qeasy, we recommend maintaining a single mapping view; every downstream strategy (sales orders, collection notes, etc.) references it instead of writing its own mapping.
  4. Deduplication: The source is uniquely identified by FID / FNumber, and the target uses idCheck plus the employee number to decide insert vs. update. Qeasy maintains the mapping automatically—no extra script needed.
  5. Schedules: Source side */5 * * * * (every 5 minutes, matching the source crontab in the source material), target side */3 * * * * (every 3 minutes, matching the target crontab). The two frequencies differ on purpose—source pulls must be stable, target writes should be frequent; offsetting the cadence prevents simultaneous backlogs.

Implementation Steps

Our standard procedure for this strategy has four phases:

  1. Set the incremental starting point: On go-live day, confirm the last-modified timestamp baseline for employee records in Kingdee Cloud Skylight. Qeasy's incremental logic uses the "last successful run" time—the first run automatically performs a full sync, then switches to incremental. Skip this and you'll have missing data later.
  2. Trigger a full sync: Manually trigger a "full re-run" in Qeasy and observe record counts, failure counts, and typical errors from source to target. In one manufacturing project, the first full run rejected 200+ employees because the Jiandaoyun form's "Use Org" field had a non-null validation. That's why a full sync must precede the schedule.
  3. Switch to incremental scheduling: Once the full sync passes, set the source crontab to */5 * * * * and the target crontab to */3 * * * *. Run both full and incremental in parallel for a few days; only retire the full-sync entry once both sides are stable.
  4. Downstream joint verification: Pick one or two employee records and run them through the downstream sales-order sync to confirm the salesperson field carries through correctly. This is the real acceptance test—if master data doesn't match, downstream documents won't either.

Pitfalls and Lessons Learned

  1. Mistyped widget IDs: Jiandaoyun widget IDs look like random strings. It's very easy to mistype them. The safe approach is to copy directly from the form designer and run a "field-mapping self-check" in Qeasy afterward.
  2. Target number set to "0" looks like a bug: It's actually by design—on the target side, the primary key is not returned by the API but maintained by the scheduler based on the business code. Once you understand this, you won't mistakenly change it to "1" and cause full-table duplicate writes.
  3. Department field not split into org hierarchy: FPostDept is a long string in Kingdee, but Jiandaoyun expects both "Work Org Name" and "Work Org Code." In one project, the engineer dumped the whole string into the name field, and downstream org filtering missed every record. Split by separator in a Qeasy transform function.
  4. Mobile/email format validation: Jiandaoyun forms usually validate formats, but legacy Kingdee data may contain empty numbers, extension numbers, or non-standard formats. Clean these in the middleware layer upfront—fixing them after failures is much more expensive.
  5. Mismatched schedule frequencies: Source every 5 minutes, target every 3 minutes looks odd, but the intent is for the target to batch up records and write in bulk. Setting both to 1 minute just increases Qeasy's request volume and risks rate limiting.

Suitable and Unsuitable Scenarios

Suitable: When the ERP is the system of record for personnel, and you need to push personnel into a low-code/form platform as the salesperson source for downstream business documents—especially in sync chains for sales orders, collection notes, expense claims, etc. Unsuitable: Scenarios where personnel frequently switch organizations and require real-time (sub-second) updates; two-way sync scenarios where both Kingdee and Jiandaoyun are actively editing employee records with no stable unique identifier. In those cases, govern the source data first.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-pcdd5c6-kingdee-cloud-1338-nd77c9d3a-36f7d738

Comments