I have got a apps script that exports a range of my spreadsheet to Google Drive although I would actually like to download this file from the drive.
Does anyone know how I can do this?
I can easily call the pdf file ID as the end of my script is:
var newFile = folder.createFile(theBlob);
return true;
}
This means I can start the next script:
var fileToExport = newFile.getId();
Does anyone know of a solution for this please?