public class CustomField extends Object
| 构造器和说明 |
|---|
CustomField(Config config) |
| 限定符和类型 | 方法和说明 |
|---|---|
GetByParamCustomFieldResp |
getByParam(GetByParamCustomFieldReq req)
获取字段详情,获取「飞书人事」对象下某字段的详细信息,支持系统预置字段和自定义字段。
|
GetByParamCustomFieldResp |
getByParam(GetByParamCustomFieldReq req,
RequestOptions reqOptions)
获取字段详情,获取「飞书人事」对象下某字段的详细信息,支持系统预置字段和自定义字段。
|
ListObjectApiNameCustomFieldResp |
listObjectApiName(ListObjectApiNameCustomFieldReq req)
获取飞书人事对象列表,获取「飞书人事」中的对象列表,含系统预置对象与自定义对象。
|
ListObjectApiNameCustomFieldResp |
listObjectApiName(ListObjectApiNameCustomFieldReq req,
RequestOptions reqOptions)
获取飞书人事对象列表,获取「飞书人事」中的对象列表,含系统预置对象与自定义对象。
|
QueryCustomFieldResp |
query(QueryCustomFieldReq req)
获取自定义字段列表,根据对象的 API name,获取「飞书人事」具体对象下的自定义字段列表
在人事设置[「人员档案配置」页面](https://people.feishu.cn/people/hr-settings/profile)添加的分组,实际上都是自定义对象,可以通过该接口查询分组内的所有字段。
|
QueryCustomFieldResp |
query(QueryCustomFieldReq req,
RequestOptions reqOptions)
获取自定义字段列表,根据对象的 API name,获取「飞书人事」具体对象下的自定义字段列表
在人事设置[「人员档案配置」页面](https://people.feishu.cn/people/hr-settings/profile)添加的分组,实际上都是自定义对象,可以通过该接口查询分组内的所有字段。
|
public CustomField(Config config)
public GetByParamCustomFieldResp getByParam(GetByParamCustomFieldReq req, RequestOptions reqOptions) throws Exception
Exceptionpublic GetByParamCustomFieldResp getByParam(GetByParamCustomFieldReq req) throws Exception
Exceptionpublic ListObjectApiNameCustomFieldResp listObjectApiName(ListObjectApiNameCustomFieldReq req, RequestOptions reqOptions) throws Exception
Exceptionpublic ListObjectApiNameCustomFieldResp listObjectApiName(ListObjectApiNameCustomFieldReq req) throws Exception
Exceptionpublic QueryCustomFieldResp query(QueryCustomFieldReq req, RequestOptions reqOptions) throws Exception
在人事设置[「人员档案配置」页面](https://people.feishu.cn/people/hr-settings/profile)添加的分组,实际上都是自定义对象,可以通过该接口查询分组内的所有字段。使用方式可参考「[如何通过 OpenAPI 维护自定义字段](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/how-to)」 ;
Exceptionpublic QueryCustomFieldResp query(QueryCustomFieldReq req) throws Exception
在人事设置[「人员档案配置」页面](https://people.feishu.cn/people/hr-settings/profile)添加的分组,实际上都是自定义对象,可以通过该接口查询分组内的所有字段。使用方式可参考「[如何通过 OpenAPI 维护自定义字段](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/how-to)」 ;
ExceptionCopyright © 2026. All rights reserved.