Skip to content

Code sample response after add sheet is not accurate #109

@jargetz

Description

@jargetz

const sourceSheetId = response.replies[0].addSheet.properties.sheetId;

The code sample here that gives an example how to extract an add sheet response is not the same as what I'm seeing.

I see the reply in response.data.replies[0]. Can you please update this or explain why there may be a discrepancy?

"data": {
    "spreadsheetId": "",
    "replies": [
      {},
      {
        "addSheet": {
          "properties": {
            "sheetId": 123,
            "title": "Data",
            "index": 1,
            "sheetType": "GRID",
            "gridProperties": {
              "rowCount": 9158,
              "columnCount": 65,
              "frozenRowCount": 2,
              "frozenColumnCount": 5
            }
          }
        }
      }
    ]
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions