> ## 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/getlarkbitablefieldcommand-01.png?fit=max&auto=format&n=oMGzRtmKPLqq2VoW&q=85&s=f9ab5320252b7f8cc8fbc9fc6c080b6f" alt="获取字段指令参数面板" width="653" height="456" data-path="helpcenter/commands/feishu/images/getlarkbitablefieldcommand-01.png" />

    | 参数          | 说明                                         |
    | ----------- | ------------------------------------------ |
    | **多维表格对象**  | 请选择通过【连接飞书多维表格】指令产生的多维表格对象                 |
    | **数据表定位方式** | 输入需要打开的网址。如果是打开单个网页，直接输入网址即可，或者传输进去一个网址参数。 |
    | **数据表名称**   | 请输入要获取字段的数据表名称（数据表定位方式选择名称定位时）             |
    | **数据表ID**   | 请输入要获取字段的数据表ID（数据表定位方式选择ID定位时）             |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/oMGzRtmKPLqq2VoW/helpcenter/commands/feishu/images/getlarkbitablefieldcommand-04.png?fit=max&auto=format&n=oMGzRtmKPLqq2VoW&q=85&s=53b3ca04e413f4162f81c116ee5b03f1" alt="获取字段使用示例" width="660" height="479" data-path="helpcenter/commands/feishu/images/getlarkbitablefieldcommand-04.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/oMGzRtmKPLqq2VoW/helpcenter/commands/feishu/images/getlarkbitablefieldcommand-02.png?fit=max&auto=format&n=oMGzRtmKPLqq2VoW&q=85&s=e3550268a5d56d6d89219e11409254d4" alt="获取字段使用示例" width="1330" height="638" data-path="helpcenter/commands/feishu/images/getlarkbitablefieldcommand-02.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/oMGzRtmKPLqq2VoW/helpcenter/commands/feishu/images/getlarkbitablefieldcommand-03.png?fit=max&auto=format&n=oMGzRtmKPLqq2VoW&q=85&s=6bde646f626f73578b01bac77e4ee810" alt="获取字段使用示例" width="1320" height="227" data-path="helpcenter/commands/feishu/images/getlarkbitablefieldcommand-03.png" />

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

1. 获取飞书访问凭证，并连接到指定的飞书多维表格。
2. 执行【获取字段】，使用数据表 ID 定位目标数据表并读取其中的字段信息。
3. 将获取到的全部字段保存到“字段列表”，再打印到控制台，便于确认字段名称并供后续记录读写指令使用。

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/oMGzRtmKPLqq2VoW/helpcenter/commands/feishu/images/getlarkbitablefieldcommand-05.png?fit=max&auto=format&n=oMGzRtmKPLqq2VoW&q=85&s=50408ef987d29ef483515e9f7d44962c" alt="获取字段效果展示" width="1322" height="170" data-path="helpcenter/commands/feishu/images/getlarkbitablefieldcommand-05.png" />

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