I have a google doc ID (just the ID as a value) in a cell on a spreadsheet. I want to point a Var to grab that value form the spreadsheet (doc ID) and then use it in the SlidesApp.openbyId
.
For example:
var slideId = Sheets.Spreadsheets.Values.get('1aXXXXXXXXXXw', 'Run!E4:E4');
var slide = SlidesApp.openById(slideId);
When the script runs and gets to the var slide = SlidesApp.openById(slideId);
I get: Not found (line 101, file "Code")