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

How to use For Loops in Apps Script

Bagaimana cara bayar pajak 5 tahunan? (Lokasi di Samsat Blitar Kota)

Create Your First Code in Apps Script