we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "google scripts get document"
Lawson
12 Jun 2016
1// Open a document by ID.
2var doc = DocumentApp.openById('DOCUMENT_ID_GOES_HERE');
3// Open a document by URL.
4var doc = DocumentApp.openByUrl(url);
5// Get the document to which this script is bound.
6var doc = DocumentApp.getActiveDocument();