1

我正在使用 Integromat,并且想重命名 Google 电子表格中的单个工作表。我怎样才能做到这一点?

Integromat 为 Google 表格提供了许多类似/相关的选项:

  • 创建电子表格
  • 添加工作表

但两者都不允许我更新现有工作表的名称。

4

1 回答 1

2

Integromat 还有一个选项Make an API Call for Google Sheets。

Google Sheets API有一个用于更新电子表格属性的HTTP 请求方法,包括用于更新由工作表 ID 指定的单个工作表的属性的UpdateSheetPropertiesRequest 。使用这个和SheetProperties 对象,我们可以通过 Integromat 更新单个工作表的名称,如下所示:

在 Integromat 中:

  1. 添加 Google 表格模块进行 API 调用
  2. 在 URL 字段中输入电子表格/your-spreadsheet-id:batchUpdate
  3. 将方法设置为 POST
  4. 在正文字段中,输入:
     {
        "requests": [{
            "updateSheetProperties": {
                "properties": {
                    "sheetId": "id-of-the-individual-sheet-to-be-updated",
                    "title": "your new sheet name"
                },
                "fields": "title"
            }
        }]
    }
于 2021-02-13T20:21:27.377 回答