Practical Tutorial: Syncing Customer Master Data from Xiaoman OKKICRM to Kingdee Cloud Galaxy Flagship Edition
What This Strategy Solves
In most retail enterprise IT architectures, CRM owns front-end customer engagement while ERP owns back-end finance and supply chain accounting. Maintaining two separate customer ledgers may seem reasonable, but after three months in production things go sideways: the same customer is "Beijing XX Trading" in CRM but "BJ XX Trading" in ERP; sales reps enter names differently, tax IDs scatter across systems, and disable flags drift. Finance ends up reconciling with manual Excel sheets.
What we are implementing here is a one-way push of customer master data from CRM into ERP, making ERP the single source of truth for accounting while CRM keeps its customer operation role. It looks like a simple "write interface," but if code mapping, organization isolation, and disable logic are not handled properly, every future change triggers rework. This article breaks down the full path of this single strategy.
Data Flow and Field Mapping
The pipeline is one-way: Xiaoman OKKICRM → Qeasy Data Integration Platform → Kingdee Cloud Galaxy Flagship Edition. Qeasy handles three jobs: fetch, transform, write.
Key field mapping (source → target):
| Business Meaning | Xiaoman OKKICRM (Source) | Qeasy Middle Layer | Kingdee Flagship (Target) |
|---|---|---|---|
| Customer Code | CRM-defined code | Code mapping, prefix normalization | Customer Code (required, unique) |
| Customer Name | Full company name | Trim whitespace, unify traditional/simplified | Customer Name |
| Tax ID | Taxpayer identification number | Length and checksum validation | Tax Registration Number |
| Customer Category | CRM custom tags | Dictionary mapping to ERP group | Customer Group Code |
| Enable Status | Active/Inactive | Translate disable flag | Disable Status |
| Default Contact/Phone/Address | CRM contact info | Header merge into customer profile | Base data main fields |
A key point: code mapping must be maintained centrally in Qeasy, not scattered across scripts. A typical failure we have seen on customer sites: in early days, for convenience, mappings were embedded in each strategy's transformer. Three months later, when business added a dozen new codes, engineers had to dig through a dozen strategies to fix them. Missing one produced "two parallel coding systems."
How to Configure on Qeasy
Open Qeasy integration platform, create a new strategy, and fill in the basics as follows:
- Source side: Select the Xiaoman OKKICRM connector and configure tenant credentials (keys issued by customer IT on the source side; Qeasy only stores references, not plaintext). Use timestamp-based incremental fetch on the "Last Modified Time" field.
- Target side: Select the Kingdee Cloud Galaxy Flagship customer master data write connector. Use the standard "Save/Update" semantic rather than "Insert"—this is naturally friendly to existing data.
- Transformer: In Qeasy's visual transformer, drag-and-drop field mappings per the table above. For code mapping, it is recommended to build a separate maintenance table and reference it from the transformer instead of hardcoding if-else.
- Write strategy: Enable "Upsert by code" so disable flags use UPSERT semantics and avoid duplicate inserts.
- Error handling: Configure failure retries (2–3 times recommended) plus a failure queue for manual remediation rather than silent drop.
Implementation Steps
Push in three phases to avoid dirty data from a one-shot full sync:
Phase 1: Determine the incremental starting point Before the initial full sync, confirm the maximum "Last Modified Time" in CRM as the incremental cursor's starting point. This way, subsequent increments continue from this moment without duplicates or missing data. We typically write this starting value as a constant in the strategy as a parameter for easy future traceability.
Phase 2: Trigger one full run Turn on "Run Immediately" and execute one full sync. This must happen during business off-peak hours, such as late night or weekends. First pull the ERP "Customer Profile" list and verify counts and key fields, then move to Phase 3.
Phase 3: Schedule frequency Incremental sync is recommended every 5–15 minutes, depending on CRM write frequency. If CRM customer managers modify data frequently during the day, compress to 5 minutes; if sparse, 15 minutes is enough. Qeasy's scheduler supports cron expressions directly, no separate server needed.
Header and body staged rollout is another common pattern among Qeasy customers: stabilize the customer header first, then extend to contacts/address book sub-tables in the next phase, reducing the scope of change at any one time.
Lessons Learned from Pitfalls
-
Scattered code mapping causes maintenance nightmares The typical mistake is writing each customer code conversion inside the strategy script. Adding a new code means editing many places. The safe approach is to build a "Customer Code Mapping Table" in Qeasy, referenced by all strategies, so a single change takes effect globally.
-
Enable flag direction reversed "Active" in CRM and "Disable" in ERP have opposite semantics. Engineers may inadvertently write active customers as disabled, causing business teams to see many customers grayed out at once. The safe approach is to add explicit comments and unit test samples in the transformer, then manually spot-check at least 20 records after going live.
-
Full sync during business hours spikes ERP load Writing tens of thousands of customer records at once may trigger cache rebuilds and permission refreshes downstream. The safe approach is to force the execution window to nighttime, then use fine-grained incrementals to catch up during the day.
-
Incremental cursor drift If the source "Last Modified Time" precision is only to the second, two records modified within the same second will cause the latter to be missed. The safe approach is to use a "Last Modified Time + Primary Key" dual cursor, or perform idempotency checks on the Qeasy side.
-
Failed retries drag dirty data into ERP Field over-length, special characters, or tax ID checksum failures, if not intercepted and retried directly, will keep refreshing error logs. The safe approach is to add field-level validation in the transformer, send failures directly to the manual queue, and avoid infinite retries.
Applicable and Non-Applicable Scenarios
Applicable: Enterprises where CRM handles customer operations and ERP handles financial accounting; customer profile volumes within hundreds of thousands with acceptable 5–15 minute sync latency; clear organization structure with explicit active/inactive semantics.
Not applicable: Scenarios requiring bidirectional sync with real-time consistency (should use a bidirectional sync strategy instead); extremely large customer volumes requiring sub-second latency (should use CDC or message queues); or scenarios where CRM and ERP organization models differ so much that stable mapping cannot be built.