5

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();
ross
  • 2,684
  • 2
  • 13
  • 22
DinEsh
  • 113
  • 1
  • 7

1 Answers1

5

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

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
  • oh ok. can we write our own custom trigger in GAS? Like, the above trigger will notify the user by mail when a spreadsheet gets updated. but the problem is, it sends continuously 'n' number of mails when to the user for each and every edit. how do i over come that? i want the script to act like, the user should receive only one mail even though he made many changes at once. is it possible to write custom trigger like that? – DinEsh Dec 15 '14 at 16:24
  • You should ask that as a different question. – Mogsdad Dec 15 '14 at 16:44