class SpreadsheetApp method .appendRow()

SpreadsheetApp is the Apps Script service.

.appendRow() is the method name you will see after a dot in your code.

What it does

Adds a new row of data at the bottom of the sheet.

Why it's used

  • Log form submissions or webhook events as a new bottom row.
  • The classic add-one-record-to-a-tracker pattern.

Common errors

  • Forgetting parentheses on appendRow. Write SpreadsheetApp.appendRow(), not SpreadsheetApp.appendRow or appendRow by itself.
  • Skipping dots between chained calls. Each step needs a dot, like SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Data').appendRow().
  • Adding spaces where they do not belong. Write SpreadsheetApp.appendRow(), not SpreadsheetApp .appendRow(), SpreadsheetApp.appendRow (), or SpreadsheetApp . appendRow().
  • Wrong capitalization. Use SpreadsheetApp and appendRow, not spreadsheetapp or appendrow.

Explore

Related methods

3 Better Sheets tutorials

Access Free API's with Google Sheets

Access Free API's with Google Sheets

Get Kanye Quotes, Hogwarts Houses, Public Holidays, and more fun with AP...
Automatic Screenshots in Apps Script

Automatic Screenshots in Apps Script

Basic CRM - Add a Powerful Script To Move Row Based on Status

Basic CRM - Add a Powerful Script To Move Row Based on Status

we're going to be adding a very powerful script to our CRMs or any datab...

Related blog posts

Written guides about SpreadsheetApp.appendRow().

Browse the blog