小编Fre*_*des的帖子

sheet.getProtections 不再有效?

我有一个脚本可以自动保护我的工作表中的一系列过去日期。

我用标准 sheet.getProtections(SpreadsheetApp.ProtectionType.RANGE);

它工作了好几个月,但从昨天开始就没有工作了。

对实现有任何修改吗?

谢谢

PS:工作表对象在我的测试中很好地返回

var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("TRAVAUX");
var debug = sheet.getName();
var protections = sheet.getProtections(SpreadsheetApp.ProtectionType.RANGE);
Run Code Online (Sandbox Code Playgroud)

运行该函数时的错误信息

服务错误:电子表格

protection google-sheets google-apps-script

5
推荐指数
1
解决办法
497
查看次数