Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Searches, approves, rejects and tracks Feishu approval tasks, instances and definitions, and initiates native approval instances.
Use this skill ↓1 of 22 test cases passed with the skill.
3 of 3 safety checks passed
Not used yet
说明:本文尽量保留上游参数文档的原始结构与示例,用于回答“控件
value长什么样”。 当前lark-cli的推荐取值口径以lark-approval-instance-value-sourcing.md为准;如果两份文档在“值从哪里拿”上存在差异,以后者为准。
在调用创建审批实例接口时需要使用表单控件参数,你可以通过本文了解审批实例内各表单控件的参数说明。
审批实例的表单控件参数依据审批定义表单来配置,例如,审批定义的表单设计包括了 单行文本 和 日期区间 控件,则审批实例的表单控件参数就需要为 单行文本 和 日期区间 控件进行赋值。因此,在操作审批实例表单的控件参数前,应先通过审批定义详情确认表单控件结构。
创建审批实例 API 未完全支持所有的审批表单控件,不支持的控件如下表所示。如果你必须使用 API 不支持的控件,则不能仅通过当前 API 完成提单。
| 控件/控件组 | Type |
|---|---|
| 说明 | text |
| 引用多维表格 | mutableGroup |
| 收款账户 | account |
| 流水号 | serialNumber |
| 出差控件组 | tripGroup |
| 录用控件组 | apaascorehrOnboardingGroup |
| 转正控件组 | apaascorehrRegularateGroup |
| 补卡控件组 | remedyGroupV2 |
| 调岗控件组 | apaascorehrJobAdjustGroup |
| 离职控件组 | apaascorehrOffboardingGroup |
审批实例的表单控件均包含的参数如下表所示。
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| id | string | 是 | 控件的 ID,需要与审批定义中的控件 ID 保持一致。 |
| type | string | 是 | 控件类型。各控件类型取值参见下文 不同控件的参数 章节。 |
| value | 不同控件的类型不同 | 是 | 控件的取值。不同控件 value 数据类型也不同,例如单行文本控件的 value 为字符串、联系人的 value 为数组。详情参见下文 不同控件的参数 章节。 |
Next to this one in the catalogue, plus more from the same author.