问题描述
我们有一个 Outlook (Office JS) 插件,其清单配置为支持共享文件夹,即
We have an Outlook (Office JS) Add-in with a manifest configured to support shared folders, i.e.
<SupportsSharedFolders>true</SupportsSharedFolders>
该加载项已在许多满足共享文件夹支持最低要求集 1.8 的计算机上完美运行数月.自 2020 年 4 月 22 日起,它在共享电子邮件收件箱中选择电子邮件时返回以下错误:
The add-in has been running flawlessly, for many months, on a number of machines that meet the minimum requirement set of 1.8 for shared folder support. Since 22-Apr-2020 it has returned the following error when selecting an email in a shared email inbox:
Status Code: 404
ErrorInvalidMailboxItemId - Item Id doesn't belong to the current mailbox
返回此错误的 REST API 调用是:
The REST API call that returns this error is:
https://outlook.office.com/api/v2.0/me/messages/<RestID>/
的创建来源:
Office.context.mailbox.convertToRestId(Office.context.mailbox.item.itemId, Office.MailboxEnums.RestVersion.v2_0)代码>
是否在任何地方记录了 API 更改?
Has an API change been documented anywhere?
我们需要修改我们的代码吗?
Do we need to modify our code?
推荐答案
这不是最近的变化.REST URL 应基于此处描述的 SharedProperties 构建 https://docs.microsoft.com/en-us/javascript/api/outlook/office.sharedproperties?view=outlook-js-1.8 请注意,SharedProperties API 仅适用于共享项目.
This is not a recent change. The REST URL should be constructed based on the SharedProperties descrbied here https://docs.microsoft.com/en-us/javascript/api/outlook/office.sharedproperties?view=outlook-js-1.8 Note that the SharedProperties API is only available for shared items.
这篇关于共享收件箱中的 Outlook 插件 REST API 失败:ErrorInvalidMailboxItemId - 项目 ID 不属于当前邮箱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!