| 参数 | 必须 | 说明 | 说明 |
|---|---|---|---|
| errorCode | 是 | 返回码 | 返回状态码 |
| errorMessage | 是 | 对返回码的文本描述内容 | 状态码描述 |
| queryResult | 否 | 查询返回结果数据 | 审批Id列表 |
| queryResult.total | 否 | 总记录数 | 审批Id |
| queryResult.instanceList | 否 | 流程实例列表 | 整个审批流程状态, 1待审批, 2同意, 3不同意, 4已取消, 5错误 |
| totalCount | int | 否 | 总记录数 |
| pageSize | int | 否 | 每页记录数 |
| pageNumber | int | 否 | 当前页 |
curl --location --request POST 'https://open.fxiaoke.com/cgi/crm/approvalInstances/query' \
--header 'Content-Type: application/json' \
--data-raw '{
"corpAccessToken": "CORP_ACCESS_TOKEN",
"corpId": "CORP_ID",
"currentOpenUserId": "FSUID_xxxxx",
"flowApiName": "apprDLWEK4A83N__crmapp",
"state":"in_progress",
"startTime" : 1473339930303,
"endTime" : 1498798899999,
"pageNumber" : 1,
"pageSize" : 50
}'{
"errorCode": 0,
"errorMessage": "success",
"queryResult": {
"total": 50,
"instanceList": [
{
"instanceId": "5938ef093db71d57841afaa8",
"instanceName": "CreateTradeCode-02548-201706082017-06-08 02:30",
"dataId": "9e9aeda937a843cf8b0668f17d939fdf",
"triggerType": "Create",
"state": "pass",
"createTime": 1496903433459,
"lastModifyTime": 1496903455210,
"endTime": 1496903455061,
"flowApiName": "apprDLWEK4A83N__crmapp",
"applicantOpenUserId": "FSUID_55E332B8B9637C744CFD5FC89F7FCA57",
"cancelTime": 0,
"objectApiName": "SalesOrderObj"
},
{
"instanceId": "5938ef093db71d57832432ff",
"instanceName": "CreateTradeCode-02432-201706082017-06-08 02:30",
"dataId": "9e9aeda937a843cf8b066878688987",
"triggerType": "Create",
"state": "pass",
"createTime": 1496903433459,
"lastModifyTime": 1496903455210,
"endTime": 1496903455061,
"flowApiName": "apprDLWEK4A83N__crmapp",
"applicantOpenUserId": "FSUID_55E332B8B9637C744CFD5FC89F7FCA57",
"cancelTime": 0,
"objectApiName": "SalesOrderObj"
}
]
}
}