You can now use the new getSheetById() method to get a sheet when working with Apps Script.
source
getSheetById() added to Apps Script’s Spreadsheet class
You can now use the new getSheetById() method to get a sheet when working with Apps Script.
source