class DocumentApp method .create()

DocumentApp is the Apps Script service.

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

What it does

Creates a new blank Google Doc.

Why it's used

  • Generate a new proposal or summary doc from sheet data.
  • Create meeting notes from a template for each client.

Common errors

  • Forgetting parentheses on create. Write DocumentApp.create(), not DocumentApp.create or create by itself.
  • Skipping dots between chained calls. Each step needs a dot, like DocumentApp.getActiveDocument().getBody().create().
  • Adding spaces where they do not belong. Write DocumentApp.create(), not DocumentApp .create(), DocumentApp.create (), or DocumentApp . create().
  • Wrong capitalization. Use DocumentApp and create, not documentapp or create.

Explore

Related methods

Better Sheets tutorials

Automate Emails

Automate Emails

Set up automated email notifications based on Google Sheets data. Super ...
Automatically Copy Spreadsheet Tab to New File with Values Only, No Formulas

Automatically Copy Spreadsheet Tab to New File with Values Only, No Formulas

Automatically copy a spreadsheet tab to a whole new spreadsheet file, ge...
Automatic Calculations

Automatic Calculations

Create custom scripts to make your spreadsheets more like tools.
Built a Cookie Clicker Clone in Google Sheets

Built a Cookie Clicker Clone in Google Sheets

I built a clone of Cookie Clicker, live on YouTube. Watch the full 1 hou...
Curate Google Sheets Easily - Automatic Bookmarklet Maker

Curate Google Sheets Easily - Automatic Bookmarklet Maker

Curated sites, articles, and more web resources super easily into a Goog...
Different Kinds of Automation

Different Kinds of Automation

A brief description of types of automation. I go way more in depth in “M...
How to Create a Google Form Automatically

How to Create a Google Form Automatically

How to create a form programmatically using Google Apps Script. I show y...
How to Power Testimonials with Google Forms and Sheets

How to Power Testimonials with Google Forms and Sheets

I show you how I use a Google Form and a Google Sheet to power the testi...
Self Destructing Google Sheet

Self Destructing Google Sheet

Create a sheet that can trash itself. It can delete itself instantly or ...

Related blog posts

Written guides about DocumentApp.create().

Browse the blog