google-apps-scripttriggersquota

Please explain what 20 triggers / per user / per script means in the context of 50 scripts-50 files


Have been searching for a clear explanation of the quota rule for triggers, but in vain. Can anyone explain if this below will work?

I am creating 50 scripts for 50 files (the code inside each script only differs by each of 50 files id). Each script will have an installable trigger onOpen, where a function referring to one single master file, will be executed. I read the quota 20 triggers / per user per script and cannot make a conclusion regarding my situation based on this rule...( Thanks, all in any case!


Solution

  • For context for other community members in this page: https://developers.google.com/apps-script/guides/services/quotas you will find this and other limits that apply to Apps Script projects, triggers and function executions.

    In your use case this won't be a problem. You will be creating projects and triggers in a 1 : 1 ratio. Apps Script allows up to 20 triggers per project.

    You can share that project with someone and this person will be allowed to create 20 more triggers. If you create a new Apps Script project you will be able to create more triggers in the new project.

    Trying to create additional triggers will result in this error message: Exception: This script has too many triggers. Triggers must be deleted from the script before more can be added.