Qeasy Cloud
Get Started

Authoritative Field Manual: Kingdee Cloud Skyline Supplier Query API

· 吕修远· Engineering Best Practices· 16 views· 5 min read
Kingdee CloudDingTalk供应商主数据executeBillQuery钉钉集成轻易云字段手册

What This Interface Solves

In Kingdee Cloud Skyline to DingTalk master data integration scenarios, the source ExecuteBillQuery (FormId: BD_Supplier) plays the role of "supplier master data extraction" — it pulls supplier records (code, name, bank accounts, classification, org ownership) from Kingdee using an incremental window, providing an authoritative data source for downstream DingTalk supplier forms, purchase approvals, reconciliation, and contracts. A single mapping mistake here propagates into every downstream payment and reconciliation, so field mapping must be right the first time.

Interface Capability Overview

  • Interface shape: Kingdee Cloud Skyline generic query ExecuteBillQuery, FormId BD_Supplier, pure QUERY mode, no writes back to Kingdee.
  • Authentication: Kingdee Cloud Skyline WebAPI auth (app ID / app secret / account set), uniformly managed by the adapter — no manual token maintenance.
  • Request structure: FormId=BD_Supplier, FieldKeys lists returned fields, FilterString provides filter conditions, Limit / StartRow paginate.
  • Response structure: JSON array, each element a supplier record; reference fields return as *.FNumber (code) and *.FDataValue (display name).
  • Incremental mode: Typical pattern FAuditDate>='{{LAST_SYNC_TIME|dateTime}}', rolling-window by audit time, avoids full-table scans.
  • Pagination: Standard Limit + StartRow, single page 1000–2000 rows recommended; oversized pages often cause Kingdee server timeouts.
  • Org filtering: FCreateOrgId.FNumber in ('04','0402','401') is the multi-org whitelist we have reused across multiple projects.
  • Scheduling: crontab runs in off-peak hours (e.g. 49 3 * * *), avoiding business peaks.

Typical Field Mapping

FieldTypeMeaningField Notes
FSupplierIdstringSupplier primary keySet as id in metadata; stable anchor for cross-system linkage
FNumberstringSupplier codeMaster key on DingTalk side; enforce uniqueness
FNamestringSupplier nameDisplay field on DingTalk form; normalize full/half-width and whitespace
FCreateOrgId_FNumberstringCreate org codeCommon filter field for multi-org scenarios
FUseOrgId_FNumberstringUse org codeWhen different from create org, base permissions on use org
FCorrespondOrgId_FNumberstringCorresponding orgUsed for cross-entity supplier mapping
FShortNamestringShort nameBetter for list/mobile display
FSupplierClassify_FNumber / FSupplierClassifystringSupplier classification codeSame source; prefer _FNumber
FSupplierClassify_FDataValuestringSupplier classification nameDisplay only — never use as a business key
FSupplierGrade_FNumberstringSupplier grade (A/B/C)Basis for procurement strategy and evaluation
FSupplyClassifystringSupply category (material/service)Distinguishes procurement type
FGroupstringSupplier groupCustom grouping management
FPayCurrencyId_FNumberstringSettlement currency codeCritical for cross-border payments
FSettleTypeId_FNumberstringSettlement typeWire, L/C, acceptance draft, etc.
FPayCondition_FNumberstringPayment termsNet N days, COD, etc.
FSettleId_FNumberstringSettling party codeReceiving entity in multi-account setups
FInvoiceTypestringInvoice typeVAT special / general, etc.
FProviderId_FNumberstringProvider codeSupplier-of-record when overlapping with customers
FRegisterAddressstringRegistered addressUsed in contract/invoice title validation
FDeptId_FNumber / FStaffId_FNumberstringResponsible dept / staffProcurement ownership
FBankCodestringBank account numberRequired for payment and reconciliation
FBankHolderstringAccount holderMust strictly match the registered entity — otherwise returns
FOpenBankNamestringOpening bankReference for cross-bank clearing
FCNAPSstringCNAPS code12 digits, basis for interbank clearing
FBusinessStatusstringBusiness statusDraft/Approved; downstream should typically filter Approved only
FStartDate / FEndDatestringEffective / expiry dateAfter expiry, downstream sync should be disabled
FCompanyClassify_FNumber / FCompanyNature_FNumber / FCompanyScale_FNumberstringCompany category / nature / scaleQualification review and reporting
FCountry_FNumber / FProvincial_FNumberstringCountry / region codeWatch code systems in cross-border cases

How to Configure on Qeasy

On the Qeasy Data Integration Platform, Kingdee Cloud Skyline uses the built-in Kingdee adapter — simply selecting the FormId (BD_Supplier) automatically fetches the field list, no manual FieldKeys assembly required.

  • Source configuration: Fill in Kingdee Cloud Skyline's WebAPI address, app ID / secret / account set; the platform handles token lifecycle.
  • Field mapper: Qeasy builds a field tree from BD_Supplier metadata, auto-expanding *.FNumber and *.FDataValue; drag-and-drop to map to DingTalk supplier form fields.
  • Incremental setup: In the filter area, write FAuditDate>='{{LAST_SYNC_TIME|dateTime}}'; platform variables are auto-substituted — no custom scripts.
  • Pagination & rate limiting: Adapter defaults to Limit=2000 + StartRow; on timeout it retries and resumes from the last checkpoint.
  • Sink side: DingTalk uses its open form API; the DingTalk connector handles auth, type conversion, and error replay.
  • Observability: Each run exposes record count, success rate, and failure details in the Qeasy monitor, with one-click re-run for failed rows.

Cross-Scenario Best Practices

  1. Prefer *.FNumber over *.FDataValue: Names change; codes don't. Cross-system matching must use codes.
  2. Always pre-filter by org dimension: Multi-org customers (especially group + subsidiaries) must add FCreateOrgId.FNumber in (...) to FilterString, otherwise group-wide suppliers flood downstream.
  3. Use FAuditDate as the incremental key: FCreateDate only covers creates, missing renames / reclassifications; FAuditDate covers all post-audit changes.
  4. Sync the full bank quartet together: FBankCode / FBankHolder / FOpenBankName / FCNAPS — missing any one causes cross-bank returns.
  5. Filter by status for safety: Downstream typically only needs approved suppliers — add FBusinessStatus='A' (Approved) to keep draft dirty data out.
  6. Respect the expiry date: When FEndDate is non-empty and earlier than today, disable (don't delete) the downstream record to preserve audit trail.

Troubleshooting Playbook

  1. Code mapping misalignment: Used FSupplierClassify_FDataValue (display name) as the mapping key, giving only ~30% match rate on DingTalk. Fix: Always use *_FNumber.
  2. Payment failures from missing CNAPS: Only synced FBankCode, not FCNAPS, causing frequent cross-bank returns. Fix: Treat the bank quartet as one mapping group; error out if any is missing.
  3. Full sync overwhelming Kingdee: No pagination / rate limiting — one ExecuteBillQuery pulled tens of thousands of rows and triggered server throttling. Fix: Enable adapter defaults for paging and rate limiting in Qeasy.
  4. Wrong incremental key: Used FCreateDate, causing long-term inconsistency on DingTalk after renames / reclassifications. Fix: Switch to FAuditDate.
  5. Org filter missed: Without FCreateOrgId.FNumber filter, test orgs and other entities' suppliers leaked into the target, drawing business complaints. Fix: Force an org whitelist inside the incremental filter and enforce it as a mandatory validation rule on Qeasy.

When to Use

Whenever a "Kingdee Cloud Skyline supplier master → external system (DingTalk / SRM / Contract / Expense)" sync is needed, prefer ExecuteBillQuery(BD_Supplier). If the need is only the supplier reference on a transaction (PO / receipt), don't run this interface — reuse _FNumber fields on the document interface directly. Note this interface is pure query — it triggers no write operations on the Kingdee side.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/engineering/hb-p2-438-e6dd

Comments