google-apps-script - Google 脚本:我的基于时间的触发器不起作用
问题描述
我做了这个触发器,让它运行了几天,但它还没有工作。我的功能相当简单:有一个可以随时按下的按钮,但我也希望它在每晚 11:59 PM 运行/按下。这是功能:
// Triggers 'Move to Custom Report' button every 24 hours
// Runs at approximately 23:59 am in the timezone of the script
function triggerCustomReportButton(){
ScriptApp.newTrigger("sendToCustomReportSheet")
.timeBased()
.atHour(23)
.nearMinute(59)
.everyDays(1)
.create();
}
“sendToCustomReportSheet”是按下按钮后运行的函数。谢谢
解决方案
推荐阅读
- java - 是否可以调用本机查询并将结果集存储在非实体对象中?
- c# - 在 Windows 10 IoT Core 上访问 USB 端口
- angular - 以 angular6 形式排除输入 formControlName
- excel - 如何在 Excel 中使用两个过滤器提取数据?
- sql-server - 使用 SQL Server 清除一些表,同时将停机时间降至最低
- arrays - 将数组传递给 Vue 中的 Laravel 视图
- node.js - 我们可以在nodejs中使用http包和docker吗
- sql - 有条件地从两个表之一中选择值
- python - opencv:WarpPerspective 不规则轮廓变换
- java - 如何解决java中的俄语编码?