org:field:definition
| fieldType | fieldTypeDesc | 说明 |
|---|---|---|
| string | 文本 | 文本输入框 |
| number | 数字 | 数字输入框 |
| date | 日期 | 日期选择器 |
| selection | 选项 | 下拉选择(单选/多选) |
| emp | 员工 | 员工选择器 |
| org | 组织 | 组织选择器 |
| costCenter | 成本中心 | 成本中心选择器 |
| object | 对象 | 对象类型(如合同公司) |
| orgEditType | orgEditTypeDesc | 说明 |
|---|---|---|
| pageAndApi | 页面+API | 支持页面和API两种方式编辑 |
| api | 仅API | 仅支持API方式编辑 |
Authorization: Bearer ********************{
"corpId": "ding4c7c311a701851ac35c2f4657eb6378f"
}curl --location 'https://app91651.eapps.dingtalkcloud.com/open/api/v1/org/getOrgFieldDefinition' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"corpId": "ding4c7c311a701851ac35c2f4657eb6378f"
}'{
"data": [
{
"fieldId": "name",
"fieldName": "组织名称",
"fieldType": "string",
"fieldTypeDesc": "文本",
"system": true,
"multiSelect": null,
"selection": null,
"stopSelections": null,
"required": true,
"valueEditable": true,
"definitionEditable": true,
"placeholder": "请输入",
"orgEditType": "pageAndApi",
"orgEditTypeDesc": "页面+API",
"defaultShowOrgList": true,
"description": null,
"recurse": null,
"stoppable": false,
"order": 1,
"objectType": null
},
{
"fieldId": "type",
"fieldName": "组织类型",
"fieldType": "selection",
"fieldTypeDesc": "选项",
"system": true,
"multiSelect": false,
"selection": [
{
"label": "事业群",
"value": "businessGroup",
"order": 0,
"status": "normal"
},
{
"label": "部门",
"value": "department",
"order": 2,
"status": "normal"
}
],
"stopSelections": [
{
"label": "事业部",
"value": "businessDivision",
"order": 0,
"status": "stop"
}
],
"required": true,
"valueEditable": true,
"definitionEditable": true,
"placeholder": "请选择",
"orgEditType": "pageAndApi",
"orgEditTypeDesc": "页面+API",
"defaultShowOrgList": true,
"description": null,
"recurse": null,
"stoppable": false,
"order": 6,
"objectType": null
}
],
"success": true,
"errorCode": null,
"errorMsg": null
}