My question is simple. If I have a function named 'onEdit' in a Google Apps Script that I have set up as an installable trigger, will it fire twice? As in once for simple trigger behaviour and once for installable trigger behaviour?
相关问题
- How can I force all files in a folder to be owned
- Google Apps Script: testing doPost() with cURL
- Google Apps Script to turn in, grade, and return a
- Script fails on SpreadsheetApp.openById - Requires
- Split Lines and Bold Text within a ui.alert Window
相关文章
- How to allow access for importrange function via a
- Google app script trigger not working
- Set Date/Time to 00:00:00
- indexOf returning -1 despite object being in the a
- How can my Google Apps Script be run by others the
- How to stop execution of Google Apps Script?
- Profiling the Performance of a Google App Script
- String starts with in Google Script
If you have a simple trigger and an installable trigger setup for that onEdit then yes you will get two trigger events.
I know that this question has been answered but what worked for me was not naming my method "onEdit" because it will automatically run when editing any cell of the sheet. You just have to install onEdit as a trigger if it requires something with another authorization scope.