Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to deal with revisions to sheet script #23

Open
aronwc opened this issue Sep 17, 2024 · 3 comments
Open

how to deal with revisions to sheet script #23

aronwc opened this issue Sep 17, 2024 · 3 comments

Comments

@aronwc
Copy link
Member

aronwc commented Sep 17, 2024

so that when we update the script, we can auto push to all the sheets out there.
maybe the script's first line can read from a URL where the canonical script lives? seems a little crazy...

@aronwc
Copy link
Member Author

aronwc commented Oct 22, 2024

Can we use a "Google Web App" or a Library or Addon to do this?

@sfeldman1
Copy link
Collaborator

Web app - Deploy script as a web app that provides a unique url for the script. The sheet template has google.script.run function to call the web app - https://developers.google.com/apps-script/guides/web

@aronwc
Copy link
Member Author

aronwc commented Dec 10, 2024

We can now do this! have a "unattached" script that will be in the FINAL DATA folder that will be referenced from each sheet. https://script.google.com/home/projects/1wHPphHnaklK9pW-HuoEBdOGib19-bEMosatzjfWhwmsxJPawQXaUoJN1/edit
Steps are:

  1. Deploy the script
  2. From sheet, reference the deployment id

Any changes to script will automatically be reflected in sheet.

We need to figure out how to do development without immediately affecting existing sheets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants