【问题标题】:Create an outlook calendar add-in创建 Outlook 日历加载项
【发布时间】:2022-01-02 10:12:09
【问题描述】:

我正在按照微软官方文档创建一个 Outlook 插件:Build your first Outlook add-in

我使用的是 MacBook Pro M1,因此我正在按照使用 Yeoman 生成的教程进行操作。

一切正常。我可以在电子邮件中看到加载项,但我也希望在日历中或创建会议时看到加载项。

按照本教程,我只在电子邮件中看到加载项。

邮件截图:

日历截图:

【问题讨论】:

    标签: javascript outlook office-js add-in outlook-web-addins


    【解决方案1】:

    确保您在清单文件中指定了正确的规则:

     <Rule xsi:type="RuleCollection" Mode="Or">
        <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" />
        <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Edit" />
        <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
        <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Read" />
      </Rule>
    

    此外,在功能区 UI 的清单文件中,您需要为消息和约会指定不同的扩展点。

    您可以在以下位置找到完整的示例加载项源代码 https://github.com/OfficeDev/outlook-add-in-command-demo.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-08-31
      • 1970-01-01
      • 2017-09-17
      • 2019-03-30
      • 1970-01-01
      • 2019-06-29
      • 1970-01-01
      相关资源
      最近更新 更多