最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

SlidesApp.openById function is not working even if I have OAuth scope for editing a Google Slide - Stack Overflow

programmeradmin3浏览0评论

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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论