查询审批流实例数据列表
POST
https://open.fxiaoke.com/cgi/crm/v2/data/query
接口说明:查询审批流实例数据列表
operator参数说明
此接口对应的返回值即为对象相关字段,详情见关于审批流实例对象字段的说明下列参数为本接口特有返回值 返回错误代码请参见。全局返回错误码
参数 | 参数含义 | 参数 | 参数含义 |
---|---|---|---|
EQ | = | GT | > |
LT | < | GTE | >= |
LTE | <= | N | <> |
LIKE | LIKE | NLIKE | NOT LIKE |
IS | IS | ISN | IS NOT |
IN | IN | NIN | NOT IN |
BETWEEN | BETWEEN | NBETWEEN | NOT BETWEEN |
STARTWITH | LIKE% | ENDWITH | %LIKE |
CONTAINS | Array 包含 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.fxiaoke.com/cgi/crm/v2/data/query' \
--header 'Content-Type: application/json' \
--data-raw '{
"corpAccessToken": "${corpAccessToken}",
"corpId": "${corpId}",
"currentOpenUserId": "${currentOpenUserId}",
"data": {
"search_query_info": {
"offset": 0,
"limit": 2,
"filters": []
},
"dataObjectApiName": "ApprovalInstanceObj"
}
}'
响应示例响应示例
{
"traceId": "E-O.fktest188.1453-30003428b2ab4b40",
"data": {
"dataList": [
{
"workflow_id": "5d7086149da7970001e8c82f",
"workflow_instance_version": "620",
"workflow_name": "客户新建编辑审批流",
"last_modify_time": 1612450502133,
"trigger_type": "新建",
"submitter__r": {
"picAddr": "",
"description": "",
"dept": "1000",
"supervisorId": "1006",
"modifyTime": 1591759818876,
"post": "",
"createTime": 1587462141009,
"phone": "",
"name": "蒋小川1",
"nickname": "蒋小川1",
"tenantId": "590163",
"id": "1453",
"email": "",
"status": 0
},
"created_by__r": {
"picAddr": "",
"description": "",
"dept": "1000",
"supervisorId": "1006",
"modifyTime": 1591759818876,
"post": "",
"createTime": 1587462141009,
"phone": "",
"name": "蒋小川1",
"nickname": "蒋小川1",
"tenantId": "590163",
"id": "1453",
"email": "",
"status": 0
},
"object_data_id__r": "文本值",
"owner_department_id": "1000",
"owner_department": "董事会",
"state": "in_progress",
"submitter__l": [
{
"id": "1453",
"tenantId": "590163",
"name": "蒋小川1",
"picAddr": "",
"email": "",
"nickname": "蒋小川1",
"supervisorId": "1006",
"phone": "",
"description": "",
"status": 0,
"createTime": 1587462141009,
"modifyTime": 1591759818876,
"dept": "1000",
"post": ""
}
],
"data_own_department__r": {
"deptName": "董事会",
"deptId": "1000",
"parentId": "999999",
"status": 0
},
"timeout_time": "0.00",
"create_time": 1612450502356,
"version": "3",
"created_by": [
"FSUID_CBF443F942C4ABE8A46BE859066A5CD1"
],
"relevant_team": [
{
"teamMemberEmployee": [
"FSUID_0871DA62082216ECE103C16683E2FCDF"
],
"teamMemberRole": "4",
"teamMemberPermissionType": "1"
},
{
"teamMemberEmployee": [
"FSUID_CBF443F942C4ABE8A46BE859066A5CD1"
],
"teamMemberRole": "1",
"teamMemberPermissionType": "1"
}
],
"start_time": 1612450502133,
"data_own_department": [
"1000"
],
"object_api_name": "AccountObj",
"name": "客户新建编辑审批流(2021-02-04 22:55)",
"_id": "601c0ac648b46c0001f09d04",
"remind_latency": "0",
"data_own_department__l": [
{
"parentId": "999999",
"deptId": "1000",
"deptName": "董事会",
"status": 0
}
],
"submitter": [
"FSUID_CBF443F942C4ABE8A46BE859066A5CD1"
],
"current_candidate_ids__r": {
"picAddr": "",
"description": "",
"dept": "1523",
"modifyTime": 1597335697485,
"post": "",
"createTime": 1559271081900,
"phone": "",
"name": "徐超",
"nickname": "徐超",
"tenantId": "590163",
"id": "1006",
"email": "",
"status": 0
},
"object_data_id": "601c0ac554fa2100014bcf22",
"current_candidate_ids__l": [
{
"id": "1006",
"tenantId": "590163",
"name": "徐超",
"picAddr": "",
"email": "",
"nickname": "徐超",
"phone": "",
"description": "",
"status": 0,
"createTime": 1559271081900,
"modifyTime": 1597335697485,
"dept": "1523",
"post": ""
}
],
"is_timeout": false,
"duration": "0",
"is_deleted": false,
"owner__l": [
{
"id": "1453",
"tenantId": "590163",
"name": "蒋小川1",
"picAddr": "",
"email": "",
"nickname": "蒋小川1",
"supervisorId": "1006",
"phone": "",
"description": "",
"status": 0,
"createTime": 1587462141009,
"modifyTime": 1591759818876,
"dept": "1000",
"post": ""
}
],
"relevant_team__r": "徐超,蒋小川1",
"object_api_name__r": "客户",
"owner__r": {
"picAddr": "",
"description": "",
"dept": "1000",
"supervisorId": "1006",
"modifyTime": 1591759818876,
"post": "",
"createTime": 1587462141009,
"phone": "",
"name": "蒋小川1",
"nickname": "蒋小川1",
"tenantId": "590163",
"id": "1453",
"email": "",
"status": 0
},
"owner": [
"FSUID_CBF443F942C4ABE8A46BE859066A5CD1"
],
"last_modified_time": 1612450502692,
"life_status": "normal",
"end_time": 0,
"last_modified_by__l": [
{
"id": "-10000",
"name": "系统"
}
],
"created_by__l": [
{
"id": "1453",
"tenantId": "590163",
"name": "蒋小川1",
"picAddr": "",
"email": "",
"nickname": "蒋小川1",
"supervisorId": "1006",
"phone": "",
"description": "",
"status": 0,
"createTime": 1587462141009,
"modifyTime": 1591759818876,
"dept": "1000",
"post": ""
}
],
"last_modified_by": [
"-10000"
],
"record_type": "default__c",
"last_modified_by__r": {
"name": "系统",
"id": "-10000"
},
"current_candidate_ids": [
"FSUID_0871DA62082216ECE103C16683E2FCDF"
],
"source_workflow_id": "apprV3MGWUWHWK__crmappr"
},
{
"workflow_id": "5d7086149da7970001e8c82f",
"workflow_instance_version": "620",
"workflow_name": "客户新建编辑审批流",
"last_modify_time": 1612351825028,
"trigger_type": "新建",
"submitter__r": {
"picAddr": "",
"description": "",
"dept": "1000",
"supervisorId": "1006",
"modifyTime": 1591759818876,
"post": "",
"createTime": 1587462141009,
"phone": "",
"name": "蒋小川1",
"nickname": "蒋小川1",
"tenantId": "590163",
"id": "1453",
"email": "",
"status": 0
},
"created_by__r": {
"picAddr": "",
"description": "",
"dept": "1000",
"supervisorId": "1006",
"modifyTime": 1591759818876,
"post": "",
"createTime": 1587462141009,
"phone": "",
"name": "蒋小川1",
"nickname": "蒋小川1",
"tenantId": "590163",
"id": "1453",
"email": "",
"status": 0
},
"object_data_id__r": "xxxxxxxxxxxaaxxxxx",
"owner_department_id": "1000",
"owner_department": "董事会",
"state": "in_progress",
"submitter__l": [
{
"id": "1453",
"tenantId": "590163",
"name": "蒋小川1",
"picAddr": "",
"email": "",
"nickname": "蒋小川1",
"supervisorId": "1006",
"phone": "",
"description": "",
"status": 0,
"createTime": 1587462141009,
"modifyTime": 1591759818876,
"dept": "1000",
"post": ""
}
],
"data_own_department__r": {
"deptName": "董事会",
"deptId": "1000",
"parentId": "999999",
"status": 0
},
"timeout_time": "0.00",
"create_time": 1612351825215,
"version": "3",
"created_by": [
"FSUID_CBF443F942C4ABE8A46BE859066A5CD1"
],
"relevant_team": [
{
"teamMemberEmployee": [
"FSUID_0871DA62082216ECE103C16683E2FCDF"
],
"teamMemberRole": "4",
"teamMemberPermissionType": "1"
},
{
"teamMemberEmployee": [
"FSUID_CBF443F942C4ABE8A46BE859066A5CD1"
],
"teamMemberRole": "1",
"teamMemberPermissionType": "1"
}
],
"start_time": 1612351825028,
"data_own_department": [
"1000"
],
"object_api_name": "AccountObj",
"name": "客户新建编辑审批流(2021-02-03 19:30)",
"_id": "601a8951c5c97900016d8b76",
"remind_latency": "0",
"data_own_department__l": [
{
"parentId": "999999",
"deptId": "1000",
"deptName": "董事会",
"status": 0
}
],
"submitter": [
"FSUID_CBF443F942C4ABE8A46BE859066A5CD1"
],
"current_candidate_ids__r": {
"picAddr": "",
"description": "",
"dept": "1523",
"modifyTime": 1597335697485,
"post": "",
"createTime": 1559271081900,
"phone": "",
"name": "徐超",
"nickname": "徐超",
"tenantId": "590163",
"id": "1006",
"email": "",
"status": 0
},
"object_data_id": "601a8950588dd800016a7ef3",
"current_candidate_ids__l": [
{
"id": "1006",
"tenantId": "590163",
"name": "徐超",
"picAddr": "",
"email": "",
"nickname": "徐超",
"phone": "",
"description": "",
"status": 0,
"createTime": 1559271081900,
"modifyTime": 1597335697485,
"dept": "1523",
"post": ""
}
],
"is_timeout": false,
"duration": "0",
"is_deleted": false,
"owner__l": [
{
"id": "1453",
"tenantId": "590163",
"name": "蒋小川1",
"picAddr": "",
"email": "",
"nickname": "蒋小川1",
"supervisorId": "1006",
"phone": "",
"description": "",
"status": 0,
"createTime": 1587462141009,
"modifyTime": 1591759818876,
"dept": "1000",
"post": ""
}
],
"relevant_team__r": "徐超,蒋小川1",
"object_api_name__r": "客户",
"owner__r": {
"picAddr": "",
"description": "",
"dept": "1000",
"supervisorId": "1006",
"modifyTime": 1591759818876,
"post": "",
"createTime": 1587462141009,
"phone": "",
"name": "蒋小川1",
"nickname": "蒋小川1",
"tenantId": "590163",
"id": "1453",
"email": "",
"status": 0
},
"owner": [
"FSUID_CBF443F942C4ABE8A46BE859066A5CD1"
],
"last_modified_time": 1612351825337,
"life_status": "normal",
"end_time": 0,
"last_modified_by__l": [
{
"id": "-10000",
"name": "系统"
}
],
"created_by__l": [
{
"id": "1453",
"tenantId": "590163",
"name": "蒋小川1",
"picAddr": "",
"email": "",
"nickname": "蒋小川1",
"supervisorId": "1006",
"phone": "",
"description": "",
"status": 0,
"createTime": 1587462141009,
"modifyTime": 1591759818876,
"dept": "1000",
"post": ""
}
],
"last_modified_by": [
"-10000"
],
"record_type": "default__c",
"last_modified_by__r": {
"name": "系统",
"id": "-10000"
},
"current_candidate_ids": [
"FSUID_0871DA62082216ECE103C16683E2FCDF"
],
"source_workflow_id": "apprV3MGWUWHWK__crmappr"
}
],
"offset": 0,
"limit": 2,
"total": 161
},
"errorDescription": "success",
"errorMessage": "OK",
"errorCode": 0
}
请求参数
Body 参数application/json