Outlook 加载项 - 在选择电子邮件时设置 UI
Outlook Add-In - Setting UI on selection of email
我的数据库中有一些用户数据,我想在用户单击或打开电子邮件时显示这些数据。我计划使用 Office.context.mailbox.item.notificationMessages.replaceAsync 函数来显示我的数据。
我的目标是使用 Office.context.mailbox.item.EntryID 查询我的数据库以查看该文件是否已存在于我的系统中。从那里我想显示一些状态数据。我没有看到执行此操作的方法,因为 FunctionFile.js 中的 Office.Initialize 仅在单击我的加载项按钮时被调用。这是可能的还是我遗漏了什么?
感谢您的帮助。
我们没有名为 EntryID
的 API。但是,我们有 APIs 作为 EWS ID; Office.context.mailbox.item.id
用于阅读模式,Office.context.mailbox.item.getItemIdAsync
用于撰写模式。我们有基于事件的加载项,它们会在打开电子邮件时自动启动。请参阅文档 here. This feature is currently in preview. For now, you can only try it out in the web-based Outlook client. Also, this feature only works for compose mode. We don't have such a feature for read mode. If your scenarios include read mode, please add a feature request to our user-voice page。当我们进行规划过程时,会考虑用户语音的功能请求。
我的数据库中有一些用户数据,我想在用户单击或打开电子邮件时显示这些数据。我计划使用 Office.context.mailbox.item.notificationMessages.replaceAsync 函数来显示我的数据。
我的目标是使用 Office.context.mailbox.item.EntryID 查询我的数据库以查看该文件是否已存在于我的系统中。从那里我想显示一些状态数据。我没有看到执行此操作的方法,因为 FunctionFile.js 中的 Office.Initialize 仅在单击我的加载项按钮时被调用。这是可能的还是我遗漏了什么?
感谢您的帮助。
我们没有名为 EntryID
的 API。但是,我们有 APIs 作为 EWS ID; Office.context.mailbox.item.id
用于阅读模式,Office.context.mailbox.item.getItemIdAsync
用于撰写模式。我们有基于事件的加载项,它们会在打开电子邮件时自动启动。请参阅文档 here. This feature is currently in preview. For now, you can only try it out in the web-based Outlook client. Also, this feature only works for compose mode. We don't have such a feature for read mode. If your scenarios include read mode, please add a feature request to our user-voice page。当我们进行规划过程时,会考虑用户语音的功能请求。