google-apps-script-runtime

Slides App: getActivePresentation error after v8 migration

无人久伴 提交于 2020-07-23 06:14:54
问题 Seems to happen when you are logged in with 2 different accounts to Google and test the app - 1 account in Chrome browser and another in Google Slides app or Apps Script panel. Other than that, all works fine. I have a function imageToSlide called from html template like this: google.script.run .withSuccessHandler(sidebar.onSuccess) .withFailureHandler(sidebar.onAddDocumentError) .imageToSlide(url, link, width, height); Inside it I do var presentation = SlidesApp.getActivePresentation();

Slides App: getActivePresentation error after v8 migration

泪湿孤枕 提交于 2020-07-23 06:13:22
问题 Seems to happen when you are logged in with 2 different accounts to Google and test the app - 1 account in Chrome browser and another in Google Slides app or Apps Script panel. Other than that, all works fine. I have a function imageToSlide called from html template like this: google.script.run .withSuccessHandler(sidebar.onSuccess) .withFailureHandler(sidebar.onAddDocumentError) .imageToSlide(url, link, width, height); Inside it I do var presentation = SlidesApp.getActivePresentation();

Slides App: getActivePresentation error after v8 migration

守給你的承諾、 提交于 2020-07-23 06:12:32
问题 Seems to happen when you are logged in with 2 different accounts to Google and test the app - 1 account in Chrome browser and another in Google Slides app or Apps Script panel. Other than that, all works fine. I have a function imageToSlide called from html template like this: google.script.run .withSuccessHandler(sidebar.onSuccess) .withFailureHandler(sidebar.onAddDocumentError) .imageToSlide(url, link, width, height); Inside it I do var presentation = SlidesApp.getActivePresentation();

HTML Service does not open a sidebar in V8 runtime

守給你的承諾、 提交于 2020-07-09 13:24:45
问题 I have a very large project running on Rhino, but when I switch it to V8 one of the basic functionalities break - the sidebar in Google Sheets can no longer be opened. Basic architecture: A) Google Sheet A with a script (Rhino) importing a GAS Library (V8). The sidebar is in the Library. versus B) Google Sheet B with a script (V8) importing a GAS Library (V8). The sidebar is in the Library. This code is in the Library (standalone script file, running in V8): // called from parent script as

HTML Service does not open a sidebar in V8 runtime

感情迁移 提交于 2020-07-09 13:24:26
问题 I have a very large project running on Rhino, but when I switch it to V8 one of the basic functionalities break - the sidebar in Google Sheets can no longer be opened. Basic architecture: A) Google Sheet A with a script (Rhino) importing a GAS Library (V8). The sidebar is in the Library. versus B) Google Sheet B with a script (V8) importing a GAS Library (V8). The sidebar is in the Library. This code is in the Library (standalone script file, running in V8): // called from parent script as