简体   繁体   English

我如何触发每个编辑器运行

[英]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.

相关问题 如何让我的可安装触发器运行一次而不是两次? - How Do I Get My Installable Trigger to Run Once and Not Twice? 每次我尝试运行它时,我的“来自电子表格 - 提交表单”触发器都会被禁用 - 我如何找出原因? - My "From spreadsheet - On form submit" trigger is getting disabled every time I try to run it - how do I find out why? 如何使onEdit脚本运行 - How do I get the onEdit script to run 如何在每个月末设置应用程序脚本触发 email Google 表单? - How do I set up an apps script trigger to email a Google form at the end of every month? 如何让 onEdit 函数运行 - how do I get the onEdit function to run 如何创建一个每小时运行一次的基于时间的附加触发器? - How do I create a timeBased Add-on trigger that runs every hour? 如果发生错误,我该如何设置Google脚本触发器以再次运行? - How do I make set a google script trigger to run again if there is an error? 在谷歌表格中 - 如何应用 onEdit 触发器以仅在一张表格上的一个单元格上运行? - In google sheets - how do I apply an onEdit trigger to run on just one cell on one sheet? 使用Google表格,我如何每小时运行一个脚本并填充列中的每个单元格? - Using Google Sheets, how do I run a script every hour and populate each cell in a column? 我可以将时间驱动触发器设置为每5分钟运行一次吗? - I'm I allowed to set the time driven trigger to run every 5 min?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM