Search code examples
google-apps-scripttriggersgoogle-apps-script-editor

Changing Trigger notification settings programmatically


I am using App Script trigger for doing some operation every N minutes.

The problem is every day it will send a Summary of failures email. I would like to know whether there is any way to turn off this summary of failures email programmatically, following is the code I am using for creating the trigger.

ScriptApp.newTrigger("myFunction").timeBased().everyMinutes(N).create();

Solution

  • It is not possible to 'programmatically' turn off the failure emails.

    Go to the Apps Script Editor > Current Project Triggers and click the notifications link. Delete the notification to stop receiving the summaries.

    enter image description here