Feeling Lucky?

Create New Google Docs with Apps Script

Hello everyone,


In this article we will try to create a new document using code in Apps Script. If you never use and create apps script before, you can check my article in here : Create Your First Code in Apps Script (randomusefuljourney.blogspot.com)


Here is the code to create a new Google Docs :


function myFunction() {

  const doc = DocumentApp.create("Test New Doc 1");

}

 



And here is the result in my google drive :



Thank you.

 

Comments

Popular posts from this blog

Protect Range and Protect Sheet in Google Sheets

Create Automatic Certificate with Autocrat Google Sheets

Membagikan Google Sheets dengan Orang Lain untuk Penyuntingan / Edit Bersama