4
votes

I have created a trigger for spreadsheet onEdit(). This works fine.

What I want to achieve: When I set the trigger programmatically, by default the notification is set to "Daily" and "around 3 am". How do I set this to "immediately" using script?

Here's my code for setting up the trigger.

var ss = SpreadsheetApp.getActive();
ScriptApp.newTrigger("notify").forSpreadsheet(ss).onEdit().create();
1

1 Answers

4
votes

There is no support for configuring trigger failure notifications in Google Apps Script. Visit Issue 1287 and star it to "vote", and receive updates.