Skip to content

Instantly share code, notes, and snippets.

@supernovaplus
Created June 20, 2019 19:17
Show Gist options
  • Save supernovaplus/10a65435868839c5a9e13f6b4a3c2038 to your computer and use it in GitHub Desktop.
Save supernovaplus/10a65435868839c5a9e13f6b4a3c2038 to your computer and use it in GitHub Desktop.
function LogAllTriggers() {
var allTriggers = ScriptApp.getProjectTriggers();
if(allTriggers.length<1)return Logger.log("list is empty");
Logger.log("Trigers Count: "+allTriggers.length);
for (var i = 0; i < allTriggers.length; i++) {
Logger.log(i+1+"->"+allTriggers[i].getHandlerFunction()+"=>"+allTriggers[i].getTriggerSource()+"=>"+allTriggers[i].getUniqueId()+"=>"+JSON.stringify(allTriggers[i].getEventType()));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment