query_bill
Retrieve data from Kingdee K3Cloud ERP by specifying form ID and fields, with flexible filtering, sorting, and pagination.
Instructions
查询金蝶云星空单据数据(返回二维数组)。
Args: form_id: 表单ID。常用值: BD_MATERIAL(物料)、BD_Customer(客户)、BD_Supplier(供应商)、 SAL_SaleOrder(销售订单)、PUR_PurchaseOrder(采购订单)、 STK_InStock(入库单)、STK_OutStock(出库单)、GL_VOUCHER(凭证) field_keys: 查询字段,逗号分隔。如 "FName,FNumber" filter_string: 过滤条件。如 "FNumber like 'MAT%'" order_string: 排序字段。如 "FNumber ASC" top_count: 本次最多返回行数,默认100。映射到金蝶 TopRowCount(绝对终止行号 = start_row + top_count), 同时作为金蝶 Limit(单次页大小)。设为 0 表示不限制行数(仅靠 limit 控制)。 start_row: 起始行号,默认0。翻页时传入上一次返回的 next_start_row。 limit: 仅在 top_count=0 时生效,作为金蝶 Limit 页大小上限,默认2000。 top_count>0 时此参数被忽略(页大小由 top_count 决定)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| form_id | Yes | ||
| start_row | No | ||
| top_count | No | ||
| field_keys | Yes | ||
| order_string | No | ||
| filter_string | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |