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

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...
Better Email Form on Google Sites

Better Email Form on Google Sites

Submit email from a Google Sites to Google Sheets with this easy to embe...
Create an Automated Task List

Create an Automated Task List

I've created simple automations to make an awesome automatic task list. ...
Create New Worksheet When Google Form Submitted

Create New Worksheet When Google Form Submitted

Automate copying a template for new form submissions with user data inse...
Daily Writer's Word Count Tracker

Daily Writer's Word Count Tracker

Walk through creating an awesome automatic word count tracker that's eas...
Every Google Drive File Created in Last 24 Hours

Every Google Drive File Created in Last 24 Hours

Create a simple report in a Google Sheet that documents every file in yo...
Get Every Editor on Every Google File I Own

Get Every Editor on Every Google File I Own

Get every editor if you're looking for the sheets and documents you've s...
Google Maps Scraper for Outreach

Google Maps Scraper for Outreach

Get this fun template to search on google maps via API, and quickly mess...
How to Format Timestamp to Day and Month

How to Format Timestamp to Day and Month

Create a formatted timestamp to the full name of the day and month. Form...
I Created an Automatic Emailer

I Created an Automatic Emailer

While creating SheetOps, a new product, I came up with this idea of an a...
Move Entire Row when a Cell is changed to "Yes" - The $75,000 Google Script

Move Entire Row when a Cell is changed to "Yes" - The $75,000 Google Script

This is one of the most popular asked first "automations". How to move a...
Scrape Google Maps

Scrape Google Maps

Scrape any query in Google Maps into your Google Sheets. Enter your API ...
Scrape Google Maps Added Phone and Reviews

Scrape Google Maps Added Phone and Reviews

Added two helper functions to get Phone numbers and reviews of the Googl...

Related blog posts

Written guides about SpreadsheetApp.appendRow().

Browse the blog