【问题标题】:Add-on menu does not appear附加菜单不出现
【发布时间】:2020-06-12 01:18:27
【问题描述】:

安装已发布的 Google 表格插件后,我在插件菜单下看不到它。

我检查了“作为附加组件运行/测试” - onOpen 触发器起作用并出现菜单。

尽管在 Google Apps 脚本中“我的执行”状态为“已完成”,但我在 GCP“操作日志”中看不到此时间点的条目。

function onOpen(e) {
  SpreadsheetApp.getUi()
      .createAddonMenu()
      .addItem('Send', 'CreateEvents')
      .addItem('Show', 'showEvents')
      .addSeparator()
      .addSubMenu(SpreadsheetApp.getUi().createMenu('Delete Events')
      .addItem('Delete', 'deleteEvents'))
      .addToUi();
}

function onInstall(e) {
  onOpen(e);
}

范围: https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/spreadsheets

请告诉我触发代码中是否存在某种错误,或者我需要向支持团队开票吗?

【问题讨论】:

    标签: google-apps-script google-sheets gsuite-addons


    【解决方案1】:

    很遗憾,您遇到的问题似乎是一个错误。

    在这种情况下,您可以通过点击问题旁边的 问题跟踪器 here 上为问题加注星标编号并发表评论,同时说明您受到该问题的影响。

    【讨论】:

    • 感谢您的反馈!是的,我什至发了bug-report
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-25
    • 1970-01-01
    • 2017-11-30
    • 2015-04-12
    相关资源
    最近更新 更多