CRM and Kingdee Cloud Star Bidirectional Data Sync
Paste the following prompt into your AI chat to install this skill:
Please install @user_1bc611df/ec-to-jdy-sync into your AI assistant by following the guide at https://skillhub.cn/install/skillhub.md.
About this skill
Problem to solve
When sales teams maintain customers and orders in EC while operations manage product categories and materials in Kingdee Cloud Star, the two systems can drift apart. Customer master data may mismatch, closed orders may be missed, and categories can be duplicated. Manual field transfer is easy to get wrong on linkage keys such as crmId and productId, and it can mix individual customers with company customers.
How the skill works
The skill splits synchronization into two directions:
- EC → Kingdee: Hourly, it pulls EC customers and closed orders with
status=3, then writes them into Kingdee customer profiles and sales orders. Customers are deduplicated by using ECcrmIdas Kingdeenumber; existing records are updated and missing records are created. Orders mapcodewith anEC-prefix and carry over amount, material, date, and remarks. - Kingdee → EC: Daily at 01:00, it pulls Kingdee product categories and creates EC products. Defaults include
productUnit=each,money=0.00, andonOff=0, while local mapping and product-name matching prevent duplicates.
Both directions store timestamps for incremental pulls; the first run can be forced to full sync with --full when needed.
Boundaries and notes
- EC
getSalesqueries cannot span acreatTimerange longer than 31 days, so large batch syncs should be split. - Kingdee
app-tokenis valid for 24 hours and is cached and refreshed automatically. productIdis mapped directly to Kingdeematerialid_id; the matching material must already exist in Kingdee.- Field mappings live in
map_ec_customer_to_jdy()andmap_ec_order_to_jdy(), so new customer or order fields need business-specific adjustments.
Use Cases
- After sales records customers and closed orders in EC, the data needs to be synced into Kingdee Cloud Star using fixed rules.
- When operations adds or adjusts product categories in Kingdee Cloud Star, those categories need to be converted into EC products daily.
- Before go-live, implementers need to review field mappings and deduplication logic for customers, orders, and product categories.
- Support or sales admins need to trigger syncs by keyword and verify that incremental timestamps capture recent changes.
Best For
- Sales operations staff who need to sync EC customers and orders into Kingdee Cloud Star
- E-commerce operations staff who manage Kingdee Cloud Star product categories and mirror them to EC
- Integration engineers who validate field mappings for customers, orders, and product categories
- System administrators who configure scheduled synchronization between CRM and ERP systems
Related Skills
A Chinese early-stage VC pitch-deck framework covering stage judgment, 12 core sections, investor preferences, and policy risk disclosure.
A requirement alignment workflow that connects clarification, PRD generation, dual-panel Demo-PRD linkage, annotation write-back, and acceptance closure.
A local-life operations assistant for diagnosing bottlenecks and structuring group-buy, livestream, influencer, private-domain, and review plans.
Compare eight popular cross-border company jurisdictions on cost, tax, setup flow, and platform fit, then output recommendations, a comparison table, and registration checklist.