var newDoc = DocumentApp.create(docName);
var dir = DriveApp.getFolderById("1WmbL7gvU-ghuRhZ44VQXbz2iDevF00XU");dir.addFile(newDoc);
ReferenceError: "DocsList" is not defined.
var newDoc = DocumentApp.create(docName);
var dir = DriveApp.getFolderById("1WmbL7gvU-ghuRhZ44VQXbz2iDevF00XU");
dir.addFile(newDoc);
var newDoc = DocumentApp.create(docName);
var dir = DriveApp.getFolderById("1WmbL7gvU-ghuRhZ44VQXbz2iDevF00XU");
var file = DriveApp.getFileById(newDoc.getId()); // Added
dir.addFile(file); // Modified
DriveApp.getRootFolder().removeFile(file); // Added
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/70b1533f-1a90-4886-81d9-82c0e1054eee%40googlegroups.com.