How to create a Google document by Google App script

See it in action here. 

// Create a new Google Doc named 'Hello,!'
var doc = DocumentApp.create('Hello,!');

// Access the body of the document, then add a paragraph.
doc.getBody().appendParagraph('This document was created by Google Apps Script.');

// Get the URL of the document.
var url = doc.getUrl();


Popular posts from this blog

Check MySQL query history from command line

Installing chocolatey on Windows

Fixed: ImportError: No module named