Qeasy Cloud
Get Started

Practical Guide to Query-Only Purchase Order Synchronization: Scheduled Retrieval from Kingdee Cloud

· 许创贵· Integration Solutions· 5 views· 6 min read

What Problem Does This Strategy Solve?

A manufacturing enterprise needed a centralized view of purchase orders stored in Kingdee Cloud, but did not want Qeasy to modify the source system. The practical approach was to query purchase orders only and let an intermediate layer receive the results. We configured scheduled retrieval in Qeasy, preserving the source system as the sole authority while providing a unified data entry point for reconciliation, status analysis, and procurement collaboration.

Data Flow and Field Mapping (Source → Intermediate Layer → Target)

The data flow is Kingdee Cloud → Qeasy Data Integration Platform → a target-side no-op. The no-op does not discard data; it explicitly prevents this query-oriented strategy from becoming a write-back strategy.

The core configuration uses a query action with the POST method. After the response is returned, key fields are stored in the intermediate layer for later strategies or data services.

Business meaningKingdee Cloud fieldIntermediate-layer handlingTarget side
Document numberFBillNoBusiness unique number and incremental cursorRetained
Purchase order line identifierFPOOrderEntry_FEntryIdLine-level unique identifierRetained
Document master identifierFIDMaster-document identifierRetained
Source document numberFSourceBillNoPreserve source relationshipRetained
Document typeFBillTypeID_FNumberRecord document category without rewriting itRetained
Business typeFBusinessTypeFilter or archive by business categoryRetained

We recommend separating the business unique number from system technical keys. FBillNo is used for business deduplication and incremental queries; FPOOrderEntry_FEntryId identifies lines; FID identifies the document master. Code mapping should be centrally managed in Qeasy rather than scattered across conversion scripts, so adding a document type later does not require rebuilding existing rules.

How to Configure It in Qeasy

First, establish Kingdee Cloud as the source connection and select the purchase-order query capability. Configure the query action with the POST method and set its effect to QUERY. Enable response-model building and automatic response filling so the platform can correctly identify returned fields.

Next, define the filters. FBillNo is required for document-number queries. In a normal incremental scenario, retrieve new or changed data by document-number range, change conditions, or the previous query cursor. If the source system has no reliable change-time field, do not invent a time filter; use a business-number boundary together with query-batch compensation instead. FBillTypeID_FNumber is also a required business dimension and can restrict the query to the required purchase-order categories.

Then configure the intermediate-layer model. Retain at least FBillNo, FID, FPOOrderEntry_FEntryId, FSourceBillNo, FBillTypeID_FNumber, and FBusinessType. Keep number checks and line-identifier checks enabled to detect duplicate documents and empty lines. Model building should remain enabled to make field mapping and result inspection easier.

Finally, configure the target action as a no-op write. This action only allows the flow to complete; it carries no request fields and sends no write request to the business system. A common Qeasy customer pattern is a staged header/body process: save the purchase-order header in this step and add line details in a separate later strategy. No actual endpoint or connection information is provided here, so a private deployment must still be configured according to local network and authorization requirements.

Implementation Steps

Before implementation, validate the field list with sample records. We usually select one record for each relevant document type and confirm that the number, source document number, line identifier, and business type are parsed correctly before enabling automatic scheduling.

The incremental starting point should be “continue from a confirmed boundary.” During initial rollout, use a verifiable business-number range as the starting point, or have a business user confirm the first document. The platform records the last successful query cursor. Each run retrieves only new, changed, or in-boundary data; finding no new records is not by itself a failure.

Full synchronization is used for initial initialization or repair and should not be mixed with high-frequency incremental processing for a long period. The stable approach is to establish a full baseline, verify quantity, numbering, and line structure, and then switch to incremental mode. If a full run reveals missing data, redefine a clear boundary and run a compensating request rather than repeating an unbounded pull.

Choose the schedule according to source-side business changes. The source cron in the material is 0-59/5 7-23 * * *, which queries every five minutes during the defined business hours. The target no-op is a maintenance-oriented configuration; the material example is 1 1 1 1 1, intended to be triggered when needed. Do not copy it mechanically in production; adjust it according to data volume, response time, and acceptable business delay.

After launch, configure failure alerts and manual compensation. When a query times out, response fields change, or boundary records look abnormal, retain the batch ID, query conditions, and a summary of the raw response. After fixing the issue, retry from the last successful boundary. Qeasy recommends a dual-track model: run incremental jobs daily and use periodic full reconciliation. Full synchronization should validate or repair data, not run concurrently with incremental write-back.

Lessons from the Field

  1. A query strategy can be accidentally configured as a write. A typical mistake is failing to set the target action as a no-op or adding update logic to a conversion script. This is where implementations go wrong: incomplete write-back fields can affect the source system. Set the action explicitly to QUERY, keep the target no-op, and use flow permissions to prohibit unapproved writes.

  2. Using FBillNo as a technical master key. A document number is suitable as a business unique number, but it should not replace all line relationships. A purchase order may contain multiple lines, so preserve FID and FPOOrderEntry_FEntryId separately for the document and its lines.

  3. Repeated full runs create duplicate judgments. Without a clear boundary, compensating runs may include the same records repeatedly. Maintain a query boundary, batch ID, and successful cursor, and verify the boundary before rerunning.

  4. Overly strict document-type filtering. Purchase, outsourcing, and direct-transfer orders all have purchase-order semantics but different business ownership. Name-only matching can miss records because of code differences. Include FBillTypeID_FNumber in a centralized mapping and retain the original value.

  5. Treating an abnormal response as “no data.” Network timeouts, authorization changes, and field changes can all produce empty or unusual responses. Monitoring must check the request batch, response status, and duration of consecutive zero-data periods—not only the number of returned rows. Pause boundary advancement during sustained anomalies and investigate source availability first.

Suitable and Unsuitable Scenarios

This strategy suits organizations that need scheduled purchase-order retrieval from Kingdee Cloud while keeping the source read-only, such as procurement reconciliation, status aggregation, archiving, or later line-level synchronization. It does not create, modify, or approve orders, and it is not a write strategy that replaces the source approval process. Use a separate write strategy with authorization, validation, and acknowledgements when bidirectional collaboration is required.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-wdt-kingdee-cloud-5710-n74771edf-5235dade

Comments