У меня проблема с DocsList ... "DocsList is notined" Может кто-нибудь помочь?
function myFunction() {
//This part make a copy of the spreadshee
var SSID = 'XXXXX' //Spreadsheet ID
var CopyDate = Utilities.formatDate(new Date(), "GMT-3", "ddMMyyyyHHmm"); // Function Date + Format
var folder = DocsList.getFileById('YYYYY'); //Get folder by ID
var backup = DocsList.getFileById(SSID).makeCopy(SpreadsheetApp.openById(SSID).getName() + "_" + CopyDate);
backup.addToFolder(folder); //This line will be move the folder
backup.removeFromFolder(DocsList.getRootFolder()); //This line is needed to remove the Filde from the Root
}