查询对象审批流实例
# 描述
查询对象审批流实例
# 请求说明
请求方式:POST + application/json
请求路径:https://${填入所在云的域名}/cgi/crm/object/approvalInstances/query?thirdTraceId=${随机字符串}
请求头填写 :参考公共参数填写
# 请求参数
| 参数 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| dataId | String | 是 | CRM数据Id |
# 请求示例
{
"dataId": "c5121734b3904060af0f29bc8c9c3342"
}
# 返回参数
| 参数 | 类型 | 说明 |
|---|---|---|
| traceId | string | 请求唯一ID |
| errorDescription | string | 错误描述 |
| errorMessage | string | 错误信息 |
| errorCode | Int | 错误码 |
| instances | List | 流程实例列表(instance数组) |
| instanceId | String | 流程实例id |
| instanceName | String | 流程实例名称 |
| dataId | String | 流程实例关联的数据ids |
| triggerType | String | 操作类型 Create新建,Update编辑,Invalid作废,Delete删除 |
| state | String | 流程实例状态 in_progress 进行中,pass 通过,error 异常,cancel 取消,reject 拒绝 |
| createTime | Long | 流程实例创建时间 |
| lastModifyTime | Long | 流程实例最后更新时间 |
| endTime | Long | 流程实例结束时间 |
| flowApiName | String | 审批流程 apiName |
| applicantOpenUserId | String | 流程实例发起人 |
| cancelTime | String | 流程实例的取消时间 |
| objectApiName | String | 数据对象的 apiName |
# 注意事项
- 不能使用返回值的message字段做逻辑判断,errorMessage会有变化;