> ## 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/W742rR5fGwXr1akA/helpcenter/commands/dingtalk/images/getdingtalksheetrowcountcommand-01.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=dc29bf9ff219f41f7b740cc9989e53bf" alt="获取总行数指令参数面板" width="653" height="388" data-path="helpcenter/commands/dingtalk/images/getdingtalksheetrowcountcommand-01.png" />

    | 参数          | 说明                              |
    | ----------- | ------------------------------- |
    | **钉钉表格对象**  | 选择需要操作的钉钉表格对象                   |
    | **Sheet名称** | Sheet名称或ID，可直接输入或通过获取Sheet页名称获取 |
    | **结果保存至**   | 获取到的数据保存至该变量                    |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/W742rR5fGwXr1akA/helpcenter/commands/dingtalk/images/getdingtalksheetrowcountcommand-02.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=667d86d622e26f4f9c9921c004a5cc9e" alt="获取总行数使用示例" width="962" height="272" data-path="helpcenter/commands/dingtalk/images/getdingtalksheetrowcountcommand-02.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/W742rR5fGwXr1akA/helpcenter/commands/dingtalk/images/getdingtalksheetrowcountcommand-03.png?fit=max&auto=format&n=W742rR5fGwXr1akA&q=85&s=6b6072b076746c79228ff2ae2e65f8d9" alt="获取总行数使用示例" width="955" height="301" data-path="helpcenter/commands/dingtalk/images/getdingtalksheetrowcountcommand-03.png" />

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

使用【连接钉钉表格】建立钉钉表格连接

使用【获取总行数】获取表格的行数为3

使用【删除行/列】删除钉钉表格的Sheet1中第2行数据

使用【获取总行数】获取表格的行数为2

### 效果展示

执行完成后，钉钉表格的总行数将保存至指定变量。

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