![]() The rest are not required parameters.You can skip them for the time being.įor the code to work, you must enable Drive API in Advanced Google Services in your script and in Developers Console (see How to Enable Advanced Services for details). Watch the video below to learn how to upload files to Google Drive. If you upload files from compatible programs like Microsoft Word or Excel, you can even edit them in Google Drive. Var newDocfromBlob = DocsList.createFile(docContentBlob) // this will create a pdf version of your doc //Optionalįor the second required parameter, it is simply a Google Drive makes it easy to store and access your files online in the cloud, allowing you to access them from any computer with an Internet connection. ![]() Var copyofDoc = DocsList.getFileById(doc.getId()).makeCopy('new copy of '+doc.getName()) // this will create a copy (google doc format) // Optional Var doc = DocumentApp.openByUrl("/edit") ![]()
0 Comments
Leave a Reply. |