curl --location --request POST 'https://open.fxiaoke.com/cgi/crm/v2/data/query' \
--header 'Content-Type: application/json' \
--data-raw '{
"corpAccessToken": "",
"corpId": "{{corpId}}",
"currentOpenUserId": "{{openUserId}}",
"data": {
"dataObjectApiName": "PersonnelObj",
"search_query_info": {
"limit": 1,
"offset": 0,
"filters": [
{
"field_name": "main_department",
"field_values": [
"1000"
],
"operator": "IN"
}
],
"orders": [
{
"fieldName": "create_time",
"isAsc": false
}
]
}
}
}'
{
"traceId": "E-O.fktest188.1453-8e6edae0d8c64bcb",
"data": {
"dataList": [
{
"leader": [
"FSUID_0871DA62082216ECE103C16683E2FCDF"
],
"language": "zh-CN",
"profile_image": [],
"extend_obj_data_id": "5ea1ac432e29dc000115ab86",
"created_by__r": {
"picAddr": "",
"description": "",
"dept": "1523",
"modifyTime": 1597335697485,
"post": "",
"createTime": 1559271081900,
"phone": "",
"name": "徐超",
"nickname": "徐超",
"tenantId": "590163",
"id": "1006",
"email": "",
"status": 0
},
"employee_create_time": 1587462140818,
"owner_department_id": "1000",
"owner_department": "董事会",
"lock_status": "0",
"name_spell": "JIANGXIAOCHUAN1",
"data_own_department__r": {
"deptName": "全公司",
"deptId": "999999",
"status": 0
},
"create_time": 1587462141009,
"version": "80",
"created_by": [
"FSUID_0871DA62082216ECE103C16683E2FCDF"
],
"relevant_team": [
{
"teamMemberEmployee": [
"FSUID_CBF443F942C4ABE8A46BE859066A5CD1"
],
"teamMemberRole": "1",
"teamMemberPermissionType": "2"
}
],
"leader__r": {
"picAddr": "",
"description": "",
"dept": "1523",
"modifyTime": 1597335697485,
"post": "",
"createTime": 1559271081900,
"phone": "",
"name": "徐超",
"nickname": "徐超",
"tenantId": "590163",
"id": "1006",
"email": "",
"status": 0
},
"data_own_department": [
"999999"
],
"phone": "15271867438",
"user_id": "1453",
"name": "蒋小川1",
"leader__l": [
{
"id": "1006",
"tenantId": "590163",
"name": "徐超",
"picAddr": "",
"email": "",
"nickname": "徐超",
"phone": "",
"description": "",
"status": 0,
"createTime": 1559271081900,
"modifyTime": 1597335697485,
"dept": "1523",
"post": ""
}
],
"_id": "5e9ebffcbe89d10001c8df47",
"data_own_department__l": [
{
"deptId": "999999",
"deptName": "全公司",
"status": 0
}
],
"status": "0",
"main_department__l": [
{
"parentId": "999999",
"deptId": "1000",
"deptName": "董事会",
"status": 0
}
],
"main_department__r": {
"deptName": "董事会",
"deptId": "1000",
"parentId": "999999",
"status": 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",
"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"
],
"is_active": true,
"last_modified_time": 1596452023248,
"life_status": "normal",
"sex": "M",
"last_modified_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": ""
}
],
"created_by__l": [
{
"id": "1006",
"tenantId": "590163",
"name": "徐超",
"picAddr": "",
"email": "",
"nickname": "徐超",
"phone": "",
"description": "",
"status": 0,
"createTime": 1559271081900,
"modifyTime": 1597335697485,
"dept": "1523",
"post": ""
}
],
"last_modified_by": [
"FSUID_CBF443F942C4ABE8A46BE859066A5CD1"
],
"main_department": [
"1000"
],
"is_pause_login": false,
"record_type": "default__c",
"last_modified_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
}
}
],
"offset": 0,
"limit": 1,
"total": 1
},
"errorDescription": "success",
"errorMessage": "OK",
"errorCode": 0
}