Relative Content

Tag Archive for google-apps-scriptgoogle-workspace

onEdit event triggers when a row is deleted

I am using onEdit trigger in Google Sheet to send an email notification based on cell changes with certain conditions. That works fine, but the trigger also fires when a row is deleted and I get an error that the cells are undefined because of course the row was deleted. Is there a way to catch that event within onEdit? I know that I could use onChange as well, but would the onEdit event fire anyways?
Thanks for any tips.

How do I stop these messages?

How do I stop these messages? I have not used this for years and I do not see where to resolve. I click on the “click here” and it says that I have no triggers set up.

Google Workspace sandbox environment

I’d like to test a Google Apps Script that I’m building and I’m looking for a place to test it. It’s a script that will be executed by a service account and collecting information on users in an OU.

Legend Label Google AppScript

I am working on filtering a google sheet for data and creating time series charts off of it with each athlete as a different series on the graph. The graph is being created properly but I cannot figure out how to set the legend labels on the graph using the built in functions.

Server Error in Google AppsScript when trying to use LockService functions

I have a Looker Studio custom connector written in Google AppsScript. In the connector, I am using the LockService’s tryLock(), hasLock(), and releaseLock() functions to prevent concurrent execution of a section of code. Most of the time it works fine, but sometimes I get an error like this: