【问题标题】:Integromat: Rename Google Sheet (individual sheet vs entire spreadsheet)Integromat:重命名 Google 表格(单个表格与整个电子表格)
【发布时间】:2021-05-17 05:55:34
【问题描述】:

我正在使用 Integromat,我想重命名 Google 电子表格中的单个工作表。我该怎么做?

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

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

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

【问题讨论】:

    标签: google-sheets-api integromat


    【解决方案1】:

    Integromat 还为 Google 表格提供了一个选项进行 API 调用

    Google Sheets API 具有用于更新电子表格属性的 HTTP 请求方法,包括用于更新由工作表 ID 指定的单个工作表的属性的UpdateSheetPropertiesRequest。使用这个和SheetProperties object,我们可以通过 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"
                }
            }]
        }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-10-10
      • 2019-11-16
      • 1970-01-01
      • 1970-01-01
      • 2018-02-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多