I am creating an appscript where I copy existing Google slide presentation and use the file ID of this newly created Google Slide to open this newly created Google slides.
var presentation = SlidesApp.openById(newSlideID).getSlides();
Logger.log("This is the presentation variable" + presentation)
Logger.log("Presentation opened. Number of slides: " + slides.length);
The newSlideID is the file ID of the newly created Google slides.
However, on executing the app script, it is giving me error "Error processing slides: Exception: This operation is not supported for this document".
I also updated appscript.json and added below scope.
"oauthScopes": [
".readonly",
".email",
";,
".currentonly",
";,
".readonly",
";
],
Any pointers would be greatly appreciated.
I tried running the script and it always gives error.