google-apps-script DriveApp - getFileById(id) Get a file from Google Drive using the file ID


function getGoogleDriveFileById(id) {
  var file;
  file = DriveApp.getFileById(id);//Returns a file - The "id" must be a string
  //One way to manually get a file ID
  // - Open the file from Google Drive
  // - The file ID is in the URL in the browsers address bar