Outlook 加载项中的电子邮件线程检测?

Email thread detection in an Outlook add-in?

我正在设计 Outlook 加载项,需要确定所选邮件是否是线程的一部分。理想情况下,我也想在所述线程中找到相关消息。阅读 documentation, the conversationId 属性 看起来很有希望,尽管似乎没有办法 "get messages by conversationId."

在 Outlook 加载项 API 的当前版本(1.4,非预览版)下,是否可以使用 JavaScript API?是否可以在同一线程中找到其他消息?

  • ConversationId 是 javascript API 的一部分。这意味着您可以知道您的 add-in 关注的 Office.context.mailbox.itemConversationId。参见 documentation here

  • 据我所知,无法使用 vanilla javascript 和 Office.js.

    [ 检索给定 ConversationId 的所有邮件=32=]

不过,您可能对我的回答感兴趣

When something is not available with Office.js api for an Outlook Add-in you can try to use the Exchange Web Services (EWS) or REST APIs to perform the action

基本上有两种方法可以通过邮件请求 EWS add-in。

对于使用 Outlook REST 检索对话的特定案例 API、