Loopfour
Blocks

Google Sheets Block

Create spreadsheets and read, write, append, clear, and manage Google Sheets data through a Nango OAuth connection

The Google Sheets block exposes 20 operations through the searchable Action selector. Each action ID is google-sheets. followed by an operation below, such as google-sheets.appendValues.

Connect an account

Choose Google Sheets on the Integrations page and authorize with Google. Loopfour requests the spreadsheets and drive.file scopes; the block can read and write any spreadsheet the authorizing user can edit. Select the account in Google Sheets Account on the block.

Operations

GroupOperationWhat it does
SpreadsheetscreateSpreadsheetCreate a spreadsheet with an optional list of sheet titles
SpreadsheetsgetSpreadsheetRead title, URL, and every sheet's numeric sheetId
SpreadsheetsgetSpreadsheetByDataFilterRead the spreadsheet limited to matching data filters
SheetsaddSheetAdd a sheet (tab)
SheetscopySheetCopy a sheet into another spreadsheet
SheetsdeleteSheetDelete a sheet by exact title. Irreversible.
SheetsinsertColumnInsert one empty column at a zero-based index
ValuesreadValuesRead one A1 range
ValuesupdateValuesOverwrite an A1 range with a 2-D matrix
ValuesappendValuesAppend rows after the table that contains the range
ValuesinsertRowInsert one row at a zero-based index and fill it; the sheet is addressed by sheetId, and an optional sheetTitle is verified against it
ValuesupsertRowOverwrite the first row whose key column matches, otherwise append
ValuesclearValuesClear one range, keeping formatting
BatchbatchGetValuesRead several ranges in one call
BatchbatchGetValuesByDataFilterRead ranges matched by data filters
BatchbatchClearValuesClear several ranges
BatchbatchClearValuesByDataFilterClear ranges matched by data filters
AdvancedbatchUpdateSpreadsheetSend raw Sheets API Request objects
AdvancedsearchDeveloperMetadataFind developer metadata by data filter
AdvancedupdateConditionalFormatRuleReplace or move a conditional format rule

Ranges and values

  • Ranges use A1 notation. Quote sheet titles that contain spaces or apostrophes: 'Q3 Data'!A1:C10, 'Bob''s'!A:A.
  • values for Update Values and Append Values is a rectangular JSON matrix: [["Name","Amount"],["Acme",1250]]. A single row must still be wrapped: [["only","row"]]. Insert Row and Upsert Row use a separate rowValues field holding one flat row: ["Acme",1250].
  • Cells may be strings, numbers, booleans, or null (skip the cell).
  • Value Input Option defaults to RAW, which stores values literally. Choose USER_ENTERED only when Google should parse formulas, dates, and numbers as if typed into the UI.
  • getSpreadsheet returns each sheet's numeric sheetId; copySheet, insertRow, and insertColumn need that number, not the title.

Limits

Google's Sheets API usage limits allow 60 read and 60 write requests per minute per user per project. Batch rows into one Append Values call instead of looping. Reads larger than 1.6 MB fail in Loopfour; narrow the range. Update Values rejects a matrix that extends past its range; use whole-column ranges such as LTV!A:B when the row count varies. Batch Update Spreadsheet sends raw Sheets API requests, including deletions and formula writes; it is irreversible and bypasses the RAW default.

Outputs

Reads return range, majorDimension, and values (batch reads return valueRanges). Writes return updatedRange, updatedRows, updatedColumns, and updatedCells; Append Values also returns tableRange. Upsert Row returns upsertResult (updated or appended). Delete Sheet returns deleted: true.

On this page