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

3 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.

Related blog posts

Written guides about DocumentApp.create().

Browse the blog