onEdit simple trigger never seems to be triggered

前端 未结 1 981
轻奢々
轻奢々 2020-11-28 16:27

I\'ve been using OnEdit for some time and its been working great - however just now ive came accross a problem - basically when column 6 (f) is edited I want it

相关标签:
1条回答
  • 2020-11-28 17:22

    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.

    0 讨论(0)
提交回复
热议问题