onEdit simple trigger never seems to be triggered

The onEdit() trigger is a so called “simple trigger” that has a limited field of action.
Since it runs automatically and silently under the authority of the active user it can’t do anything that requires authorization, for example it can’t send emails !

The solution is simple : change your function name to something else (myOnEdit for example) and set an installable onEdit trigger to run that function.(menu ressource/current script trigger/create new trigger in the script editor.)

This time it will be executed as you (you’ll be sending the emails) when anyone edits the spreadsheet.

Documentation on that subject is available here.

Leave a Comment