Qeasy Cloud
Get Started

Practical Tutorial on Querying Kingdee Currency Information: Supply Chain Integration from Guanyi Cloud to Kingdee Cloud

· 冯潇· Integration Solutions· 8 views· 4 min read
GuanYi ERPKingdee Cloud币别同步轻易云供应链集成基础资料同步

What This Strategy Solves

In supply chain systems for retail and manufacturing, currency is the reference base for all monetary documents. In one real project, a retail enterprise uses Guanyi Cloud for its front-end e-commerce system and Kingdee Cloud for its back-end ERP. In cross-currency settlement scenarios, if the currency master data on the Kingdee side is missing or lagging, sales orders, payment orders, and receivables will all encounter amount conversion anomalies. The value of this strategy is to periodically pull currency information (FCURRENCYID, FName, FNumber, FCODE) from Kingdee Cloud into the target side in a stable manner, serving as the "dictionary-level dependency" for downstream document synchronization strategies, avoiding the situation where "currency not found" errors only surface halfway through document flow.

Data Flow and Field Mapping

The data flow is "Kingdee Cloud → Qeasy Integration Platform". The source side pulls currency master data through the executeBillQuery interface (POST, QUERY type), while the target side falls back into Qeasy through the "write null operation" interface, which completes data persistence and reservation of location, while leaving room for subsequent strategies that truly write to Kingdee or third-party systems.

The key field mapping table is as follows:

Business MeaningSource Field (Kingdee)Target Field (Qeasy)Notes
Entity Primary KeyFCURRENCYIDSame name pass-throughUsed for unique identification
NameFNameSame name pass-throughChinese name
NumberFNumberSame name pass-throughBusiness number
Currency CodeFCODESame name pass-throughISO 4217 three-letter code
Max RowsLimit{{PAGINATION_PAGE_SIZE}}Kingdee pagination parameter

How to Configure on Qeasy

Step 1: Register the "Kingdee Cloud" connector and fill in authentication information such as tenant ID, client, and secret. Step 2: Register the "Qeasy Integration Platform" connector itself (built into the platform, generally only requires choosing a workspace). Step 3: Create a new data integration scheme in the Qeasy data integration platform, selecting "Kingdee Cloud / executeBillQuery" as the source and "Qeasy / Write Null Operation" as the target. Step 4: Complete the field mapping according to the table above, binding the Limit in the request body to the platform's built-in pagination variable {{PAGINATION_PAGE_SIZE}}, with the platform looping through pages by the configured page size. Step 5: Enable auto-fill response (autoFillResponse), letting the platform take over response parsing and significantly reducing script writing effort.

Here is a common pattern we have seen among Qeasy customers: centralized management of code mapping — high-frequency reference fields like currency codes are maintained centrally in a single mapping table, and all downstream document strategies reference the same mapping, avoiding the "change in one place, change everywhere" situation.

Implementation Steps

We recommend proceeding in three phases:

Phase 1: Incremental Starting Point. Use FNumber as a cursor, set a "last max number" variable, trigger full extraction for the first run, and then perform incremental updates based on ascending numbers. Since currency master data changes very infrequently, this is more than sufficient.

Phase 2: Full Extraction Trigger. Schedule a full compensation once per weekend or at the start of each month as a fallback. Qeasy supports an "incremental and full dual-track" mode — that is, the same interface is configured in two schemes, one running incrementals and the other running scheduled full extractions, both deduplicated through idempotency keys to prevent duplicate data landing.

Phase 3: Scheduling Frequency. The crontab given in the source configuration is 1 */8 * * *, meaning execution at minute 1 every 8 hours. Considering how infrequently currency data changes, in real projects we recommend relaxing it to once per day, which both reduces Kingdee API occupation and avoids unnecessary log noise.

Pitfall Retrospective

Pitfall 1: Ignoring Kingdee pagination parameters. Limit must be explicitly passed. If it is left empty or hard-coded as 2000, Kingdee will return data according to its default value, which is highly likely to miss data. The safe practice here is to bind {{PAGINATION_PAGE_SIZE}} and let Qeasy paginate based on configuration.

Pitfall 2: Treating "Write Null Operation" as an invalid configuration. In fact, the null operation is also a way to land data. Qeasy will record requests and responses for auditing, reconciliation, and troubleshooting. If this node is deleted directly, subsequent strategies referencing it will not be able to find upstream data.

Pitfall 3: Currency code case-sensitivity. Kingdee's FCODE is usually returned in uppercase, such as CNY and USD, but front-end systems may require lowercase or a specific format. The typical mistake here is direct pass-through. The safe practice is to add a layer of toUpperCase() or custom mapping in Qeasy's transformer.

Pitfall 4: Over-fetching triggering Kingdee rate limiting. If the 8-hour interval is changed to every 5 minutes, it is very likely to trigger Kingdee Cloud's API rate-limiting policy. We recommend respecting the source system's operational rhythm — once per day is sufficient for currency data.

Pitfall 5: Strong coupling with other strategies without exception branches. Currency strategies are often a prerequisite for forecast orders, purchase orders, and sales orders. If currency synchronization fails, downstream strategies will error out in bulk. We recommend adding "failure retry + alert notification" in Qeasy's scheduling orchestration to prevent one missing master data from dragging down the entire chain.

Applicable and Non-Applicable Scenarios

Applicable scenarios: cross-system synchronization of unified currency master data, and pre-synchronization of downstream documents (sales orders, purchase orders, payment orders) that depend on currency data. Non-applicable scenarios: scenarios involving daily currency exchange rate fluctuations (exchange rates should use a separate real-time rate strategy), scenarios where the source is not Kingdee Cloud, or scenarios where currency data needs to be reverse-synchronized from Guanyi Cloud to Kingdee.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-guanyi-kingdee-cloud-4203-ne10f8488-15a9bbe3

Comments