r/GoogleAppsScript • u/doom-goat • Dec 25 '20
Question Best way to make a Script for sheets to automatically deploy on all sheets?
I'm trying to develop a Script/Addon for a potential client that adds an absolute file path to the Sheets UI. The script itself works fine, but testing and deploying seems impossible. I don't necessarily want to publish an addon, I wanted to make something as a local addon to deploy within an organization. I've been running into the following problems:
Deploying from manifest doesn't work.
Testing as an addon doesn't work.
Items 1 and 2 seem to be potential bugs google is working on? I'm not completely sure. But even making simple examples that require no permissions don't seem to work.
Trying to publish privately was not available as an option. Not sure why, but I don't need this released publicly.
So I'm in a weird position where I don't have a way to test it, besides that it works on one sheet. So it seems like my only option is to publish it and then test it? Please ask me for clarification if this doesn't make sense. I can test on one sheet, it works with an installed trigger (which I think I require due to permissions requirements) but I can't even find clarification in the docs as to whether installable triggers work when published, because it makes no sense that they would, given that they're linked to a specific user. In general this has been a bizarre process, with regards to the documentation it seems like there are a lot of instructions that don't work, and ambiguities. For instance, I've seen a lot of issues with manifests popping up but the docs recommend not really touching the manifest except for narrowing scope when publishing.
Here's a link to my SO post that includes more details: https://stackoverflow.com/questions/65442937/simplest-way-to-make-google-sheets-script-automatically-applied-to-all-sheets-w?r=SearchResults&s=2|41.0358