in

Backup Folder Undefined in Google Apps Script


Using previously made script and installing on my google drive to backup google data (excel) to a daily zip file.
Created folder and trying to save the script but it throws an error on line 16. Backup folder undefined.

I have ID’d my backup folder
var BACKUP_FOLDER_ID = ‘1vaT94n4t9Z6_Z5hvhhQxkN0NWgs8eYQl’;

Here is the function BackupAll that throws the error
function backupAll() {
var backupFolder = DriveApp.getFolderById(BACKUP_FOLDER_ID);

Run Error Message:
Exception: No item with the given ID could be found. Possibly because you have not edited this item or you do not have permission to access it.
backupAll @ Code.gs:16

Completely new to this so need simple directions if someone would be so kind.
Thanks
Douglas



Source: https://stackoverflow.com/questions/70601827/backup-folder-undefined-in-google-apps-script

Exercise #8: Phone Number Normalizer

How to prevent duplication of of an object by array.reduce function