Creates a new blank Google Doc.
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
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.
2 Snippets using this methods
Explore
Related methods
-
.openById()
Opens an existing Google Doc by its file ID.
-
.appendParagraph()
Adds a new paragraph to the end of the document.
-
.getActiveDocument()
Returns the Google Doc the user currently has open.
-
.appendTable()
Adds a new table to the end of the document.
-
.setText()
Replaces the text content of a document element.
More Apps Script
3 Better Sheets tutorials
Automate Emails
Automatically Copy Spreadsheet Tab to New File with Values Only, No Formulas
Related blog posts
Written guides about DocumentApp.create().
What's Better Than Google Sheets?
Nothing is better than Google Sheets. You just need to learn more about the unlimited power of Google Sheets. Functions, Formulas, Apps Script and more.
Read post →How to Send Google Forms Entries Automatically with Apps Script
Google Forms provides basic email notifications for form submissions, but enhancing these notifications with detailed summaries can significantly improve productivity and response management.
Read post →Learn Google Sheets Apps Script
Learning Google Sheets coding and Apps Script can have several outcomes and results. Become more productive, more of an asset to your company. No matter if you work there or if you own the company.
Read post →