TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Experience with Publishing Apps Script Add-Ons?

2 pointsby raywualmost 8 years ago
We are using Drive Api and a Google Service Account to programmatically duplicate spreadsheets. Each new spreadsheet is set with custom metadata and references a Apps Script&#x2F;Cloud Platform Project as a Library.<p>We keep running into Apps Script errors &quot;Server error occurred. Please try saving the project again.&quot; when the duplicated spreadsheet tries to run `onOpen(e)` on its own bound script.<p>According to Ryan at Google [1] the workaround is to create an Add-on because Service Accounts are not allowed to execute scripts. This Stackoverflow poster also came to the same conclusion [2].<p>Add-on could be a good workaround. If you have experience with it, what are some tricky elements to watch out for? Which online resources have you found helpful?<p>[1] https:&#x2F;&#x2F;issuetracker.google.com&#x2F;issues&#x2F;36762799 [2] https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;43909670&#x2F;google-appsscript-and-drive-api-v2-change-google-platform-project-programmatic

no comments

no comments