I keep getting the following error when launching Google script applications:
Execution failed: You do not have permission to call getFoldersByName
Here is the line of code that I am running:
var folders = DriveApp.getFoldersByName('Mission Response');
When I run the script editor from a script, it runs without any problems. However, I never get an authorization dialog (one that DriveApp allows). When I run the script from inside the spreadsheet, the script crashes with a runtime error above.
source
share