> ## 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.

# 更新字段

## 指令说明

**描述：** 更新指定数据表中的某个字段，可更新字段名称和字段类型

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/oMGzRtmKPLqq2VoW/helpcenter/commands/feishu/images/updatelarkbitablefieldcommand-01.png?fit=max&auto=format&n=oMGzRtmKPLqq2VoW&q=85&s=88192e96814b8dbb3b01b7d6ff90e4b7" alt="更新字段指令参数面板" width="650" height="629" data-path="helpcenter/commands/feishu/images/updatelarkbitablefieldcommand-01.png" />

    | 参数          | 说明                             |
    | ----------- | ------------------------------ |
    | **多维表格对象**  | 请选择通过“连接飞书多维表格”指令产生的多维表格对象     |
    | **数据表定位方式** | 选择定位方式，可以通过名称定位或ID定位来指定待操作的数据表 |
    | **数据表名称**   | 请输入要删除字段的数据表名称（数据表定位方式选择名称定位时） |
    | **数据表ID**   | 请输入要删除字段的数据表ID（数据表定位方式选择ID定位时） |
    | **字段定位方式**  | 选择定位方式，可以通过名称定位或ID定位来指定待操作的字段  |
    | **字段名称**    | 请输入要待操作的字段名称（字段定位方式选择名称定位时）    |
    | **字段ID**    | 请输入要待操作的字段ID（字段定位方式选择ID定位时）    |
  </Tab>

  <Tab title="高级">
    本指令暂无高级参数。
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/oMGzRtmKPLqq2VoW/helpcenter/commands/feishu/images/updatelarkbitablefieldcommand-02.png?fit=max&auto=format&n=oMGzRtmKPLqq2VoW&q=85&s=29d009d0640478809a8648a45b8ec78f" alt="更新字段使用示例 - 流程搭建" width="959" height="391" data-path="helpcenter/commands/feishu/images/updatelarkbitablefieldcommand-02.png" />

**该流程执行逻辑：**

使用【获取飞书访问凭证】获取飞书访问凭证，并将其保存至飞书访问凭证中

使用【连接飞书多维表格】连接到指定的飞书多维表格，并将其保存至飞书多维表格对象中

使用【获取字段】用名称定位的方式获取飞书多维表格对象指定数据表中的所有字段，并将其保存至字段列表中

使用【打印日志】将原始的字段列表打印输出，输出内容可在\[运行日志]区查看

使用【更新字段】在数据表中更新一个字段，原字段名称为文本，新字段名称为新文本，字段类型不变

使用【获取字段】用名称定位的方式获取飞书多维表格对象指定数据表中的所有字段，并将其保存至字段列表中

使用【打印日志】将更新字段后的字段列表打印输出，输出内容可在\[运行日志]区查看

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/Fj4gd-n2oOvAPIhl/helpcenter/commands/feishu/images/updatelarkbitablefieldcommand-03.png?fit=max&auto=format&n=Fj4gd-n2oOvAPIhl&q=85&s=923b1d036bf832c553c79a4e76cada94" alt="更新字段使用示例 - 效果展示" width="962" height="181" data-path="helpcenter/commands/feishu/images/updatelarkbitablefieldcommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/Fj4gd-n2oOvAPIhl/helpcenter/commands/feishu/images/updatelarkbitablefieldcommand-04.png?fit=max&auto=format&n=Fj4gd-n2oOvAPIhl&q=85&s=8b903b361345bdcd77d910b326613772" alt="更新字段使用示例 - 效果展示" width="1072" height="76" data-path="helpcenter/commands/feishu/images/updatelarkbitablefieldcommand-04.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/Fj4gd-n2oOvAPIhl/helpcenter/commands/feishu/images/updatelarkbitablefieldcommand-05.png?fit=max&auto=format&n=Fj4gd-n2oOvAPIhl&q=85&s=4e45955f06d72543c071498d102ba342" alt="更新字段使用示例 - 效果展示" width="1062" height="81" data-path="helpcenter/commands/feishu/images/updatelarkbitablefieldcommand-05.png" />

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