We frequently use Google Apps script to run BigQuery queries and put them into a Google Sheet. However, the workflow is annoying:
- Run the query in BigQuery until you get it right.
- Copy/paste to a text editor to put in the newline slashes
- Run it in apps script and hope it works
- Go back to BigQuery and repeat 1-3 if something doesn't work.
Is there some way to just save a query using BigQuery's save function, and then call that specific query from a script?