> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 添加字段

## 描述

该指令旨在通过智能表格API添加字段

## 参数配置

### 指令输入

### 常规

<strong>智能表格access\_token：</strong>通过指令【建立智能表格连接】获取

<strong>智能表格ID(docid)：</strong>字符串;可通过【新建智能表格】指令获取，注意新建表格后生成的docid要自己保存，后续遗忘无法找回

<strong>智能表格子表ID(sheet\_id)：</strong>字符串;通过指令【查询子表】查找智能表格子表ID(sheet\_id)

<strong>字段列表：</strong>列表;字段任意值列表, 每个字段是一个字典，包含字段标题和类型

<img src="https://mintcdn.com/bazhuayu-rpa-docs/3T28-M3CPw0yKoKf/helpcenter/commands/custom-commands/JB70O3jQ/images/Akf2jkgL-01.png?fit=max&auto=format&n=3T28-M3CPw0yKoKf&q=85&s=9f05d60d977de9d43138911d1d96799e" alt="image" width="667" height="579" data-path="helpcenter/commands/custom-commands/JB70O3jQ/images/Akf2jkgL-01.png" />

### 指令输出

<img src="https://mintcdn.com/bazhuayu-rpa-docs/3T28-M3CPw0yKoKf/helpcenter/commands/custom-commands/JB70O3jQ/images/Akf2jkgL-02.png?fit=max&auto=format&n=3T28-M3CPw0yKoKf&q=85&s=fcf7b97b07c52a343e3ebf24403fc947" alt="image" width="1185" height="267" data-path="helpcenter/commands/custom-commands/JB70O3jQ/images/Akf2jkgL-02.png" />

<strong>响应内容</strong>：字典；返回响应内容

代码参考

文本

\{

"field\_title": "文本字段",

"field\_type": "FIELD\_TYPE\_TEXT"

}

数字

\{

"field\_title": "数字字段",

"field\_type": "FIELD\_TYPE\_NUMBER",

"property\_number": \{

"decimal\_places": 0,

"use\_separate": true

}

}

复选框

\{

"field\_title": "复选框",

"field\_type": "FIELD\_TYPE\_CHECKBOX"

}

日期时间

\{

"field\_title": "日期时间",

"field\_type": "FIELD\_TYPE\_DATE\_TIME",

"property\_date\_time": \{

"format": "yyyy-mm-dd"

}

}

图片

\{

"field\_title": "图片",

"field\_type": "FIELD\_TYPE\_IMAGE"

}

文件

\{

"field\_title": "文件",

"field\_type": "FIELD\_TYPE\_ATTACHMENT"

}

成员

\{

"field\_title": "成员",

"field\_type": "FIELD\_TYPE\_USER"

}

多选

\{

"field\_title": "多选",

"field\_type": "FIELD\_TYPE\_SELECT",

"property\_select": \{

"options": \[

\{"id": "opt1", "text": "选项A", "style": 16},

\{"id": "opt2", "text": "选项B", "style": 18}

]

}

}

创建人

\{

"field\_title": "创建人",

"field\_type": "FIELD\_TYPE\_CREATED\_USER"

}

最后编辑人

\{

"field\_title": "最后编辑人",

"field\_type": "FIELD\_TYPE\_MODIFIED\_USER"

}

创建时间

\{

"field\_title": "创建时间",

"field\_type": "FIELD\_TYPE\_CREATED\_TIME"

}

最后编辑时间

\{

"field\_title": "最后编辑时间",

"field\_type": "FIELD\_TYPE\_MODIFIED\_TIME"

}

电话

\{

"field\_title": "电话",

"field\_type": "FIELD\_TYPE\_PHONE\_NUMBER"

}

邮件

\{

"field\_title": "邮件",

"field\_type": "FIELD\_TYPE\_EMAIL"

}

单选

\{       "field\_title": "单选111",       "field\_type": "FIELD\_TYPE\_SINGLE\_SELECT",       "property\_single\_select": \{           "options": \[               \{"id": "opt\_high", "text": "高", "style": 16},               \{"id": "opt\_low", "text": "低", "style": 18}           ]       }   }

超链接

\{

"field\_title": "超链接1",

"field\_type": "FIELD\_TYPE\_URL",

"property\_url": \{

"type": "LINK\_TYPE\_PURE\_TEXT"

}

}

群

\{

"field\_title": "群",

"field\_type": "FIELD\_TYPE\_WWGROUP"

}

百分数

\{

"field\_title": "百分数",

"field\_type": "FIELD\_TYPE\_PERCENTAGE",

"property\_percentage": \{

"decimal\_places": 2

}

}

条码

\{

"field\_title": "条码",

"field\_type": "FIELD\_TYPE\_BARCODE"

}

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
