I am having problems with the getFolderById function. I am the owner of the folder in question. The specific call is as follows.
var folder = DriveApp.getFolderById('string_id_of_my_folder');
I am passing a long string of folder id inside the function. I ran the function inside the editor to make sure that permissions are enabled and I am not getting any errors.
But when I try to run the function inside the spreadsheet, I get the following error message: "You do not have permission to call getFolderById."
What am I doing wrong?
source share