[英]How do I get a trigger to run for every editor
I am trying to build a method for creating a shared contact group. 我正在尝试建立一种用于创建共享联系人组的方法。 The API's are there so that if an editor clicks snyc contacts it can snyc with "Their" own contacts.
API在那里,因此,如果编辑者单击snyc联系人,则它可以与“他们”自己的联系人进行snyc。 But I am not sure how to make that work as an automated trigger.
但是我不确定如何使它自动触发。 I am OK with each editor authorizing, but can each one have their own timed trigger?
我同意每位编辑的同意,但每个人都可以有自己的定时触发器吗?
UPDATE: This issue is moot as each trigger is already set to the users. 更新:由于每个触发器都已设置给用户,因此该问题不存在。
It is not possible in Apps Script to have a script that allows a user to create triggers for other users directly. Apps脚本中不可能有一个脚本,该脚本允许用户直接为其他用户创建触发器。
As stated, it is possible to create a menu item or UI control that will allow users of a script/add-on to create triggers for themselves. 如上所述,可以创建一个菜单项或UI控件,以允许脚本/附加组件的用户自己创建触发器。 The Form Notifications add-on has an example of this, where a sidebar control creates or removes form submit triggers for the user of the add-on.
表单通知加载项有一个这样的示例,其中边栏控件为附件的用户创建或删除表单提交触发器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.