Outlook EWS > 从邮件加载项获取用户配置

Outlook EWS > GetUserConfiguration from Mail Add-In

我正在尝试使用 GetUserConfiguration 从加载项获取用户配置设置。我收到回复...

The requested web method is unavailable to this caller or application

根据 this article,加载项不支持此方法。

是否有任何其他方式访问这些设置,使用 EWS 或 REST api?

我可以看到我的设置作为关联消息存储在 "Root - Mailbox\IPM_SUBTREE" 下的消息存储中。我可以通过 EWS 或 REST 直接访问关联的消息吗?

谢谢!

您可以使用 EWS 获取文件夹关联项,这样您应该可以正常阅读它,但是如果您想更新该项目,您将无法使用 UpdateItem(它将引发错误 "Office extension is not allowed to update this type of item")