Skip to main content

Write data table

Write a data table to a sheet from a start cell, optionally clearing the sheet first so no old rows remain.

Command in the Google Workspace toolkit · id ooa.google/sheets_write_data_table · 8 inputs (3 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialYesGoogle OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Spreadsheet IDStringYesThe spreadsheet: its id, its full link (https://docs.google.com/spreadsheets/d/...), or its exact name in Drive (a name made only of letters, digits, - and _ is read as an id; use the link for such names).
SheetStringNoSheet (tab) name; the first sheet when empty.
Start cellStringNoA1Top-left cell of the data.
TableTableYesData to write.
Include headerBooleanNotrueWrite column names as the first row.
Clear sheet firstBooleanNofalseRemove all values on the sheet before writing.
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.

Outputs​

OutputTypeWhat it is
updated_rangeStringRange that received the data.
updated_cellsNumberCells written.