emmby
emmby

Reputation: 100464

Installing triggers on AppMaker deployment

When I deploy my AppMaker app to a deployment, I'd like to execute some code to automatically install the relevant triggers.

Is there a way to install triggers when the app is deployed?

Upvotes: 0

Views: 41

Answers (1)

Morfinismo
Morfinismo

Reputation: 5243

You can use the App Startup option to run some logic when the app starts. Maybe use the Properties Service to save a property that contains a value indicating if the triggers have been installed or not and everytime that the app starts, check if the triggers are installed and take action based on that.

Upvotes: 1

Related Questions