The following line of codes work in ScriptA but not in ScriptB:
var folder = DriveApp.getFolderById(folderId);
The oAuth is the same in both script files' appsscript.json
:
...
"oauthScopes": [
"https://www.googleapis.com/auth/spreadsheets.readonly",
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/script.scriptapp",
"https://www.googleapis.com/auth/script.external_request"
],
...
What am I missing?