Skip to main content
googleSheets.writeValues atomically replaces values in one or more A1 or named ranges.

Example

Inputs

Provide spreadsheet and one update or non-empty update array. Each update contains range, values, and optional majorDimension: "rows" | "columns", which defaults to rows. Cell values are string, number, boolean, or null. Null clears the cell. inputMode defaults to userEntered, which parses formula-looking strings and other UI input. raw stores strings literally. includeValues defaults to false. Optional responseValueRender and responseDateTimeRender use the modes from Read values. Second argument { account } selects the Google Account binding.

Output

Returns spreadsheet ID, total updated cells/rows/columns/sheets, and an updates array with updatedRange, counts, and optional returned { range, majorDimension, values }. Returned values appear only when includeValues is true.