Office 365 Outlook REST API - Office.context.mailbox.displayMessageForm 不适用于 Mac Outlook [英] Office 365 Outlook REST API - Office.context.mailbox.displayMessageForm not working on Mac Outlook

查看:144
本文介绍了Office 365 Outlook REST API - Office.context.mailbox.displayMessageForm 不适用于 Mac Outlook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在 Mac Outlook 2016(V16.15.0 及更高版本)上 v1.1 及更高版本的所有版本中都面临 API 的 Outlook 对象模型问题.Office.context.mailbox.displayMessageForm 方法不适用于 Outlook for Mac.在 Windows 以及在线版本上,一切正常.

现状:我编写了一个 Outlook 插件,它创建了一封电子邮件的新草稿(通过使用 EWS 信封保存在草稿文件夹中)并使用 Outlook 插件 API(方法:Office.context.mailbox.displayMessageForm -

问题基本上是因为您的加载项尝试访问该项目,但该项目尚未同步到客户端.在调用 displayMessageForm 之前添加一些延迟应该可以解决您的问题.

I'm currently facing an issue with Outlook object model of the API in all versions from v1.1 and higher on Mac Outlook 2016 (V16.15.0 and up). The method Office.context.mailbox.displayMessageForm is not working on Outlook for Mac. On Windows as well as on the online versions everything is working fine.

Current situation: I wrote an outlook add-in which creates a new draft of an email (saved in draft folder via usage of EWS envelope) and opens the new draft by using the outlook add-in API (method: Office.context.mailbox.displayMessageForm - https://docs.microsoft.com/de-de/office/dev/add-ins/reference/objectmodel/requirement-set-1.5/office.context.mailbox#displaymessageformitemid). The add-in is working fine in Outlook on the web (old version as well as the new version in office 365) in Chrome, Firefox, IE, Edge and Safari independently of the browser versions. Outlook 2016 in the latest builds on Windows 10 is also working fine. Unfortunately, under Outlook 2016 for Mac the add-in is unable to open the message window. No error occurs. However, the draft was successfully created. The problem exists since nearly 6 months and I wasn't able to finde the root cause due to the limited Outlook for Mac troubleshooting functionalities.

The add-in is publicly available via MS AppSource (https://appsource.microsoft.com/de-de/product/office/WA104381616?tab=Reviews). Unfortunately, I'm because of the described issue not able to publish a new version. Microsoft support isn't helpful.

If there are further questions, just comment. Every help or hints are very much appreciated. Thanks in advance for your support! Thomas

解决方案

displayMessageForm() API is not working on Outlook for Mac, because the Outlook client does not know about the new message yet.

Basically the issue is because your add-in tries to access the item, but the item is not yet synced to the client. Adding some delay before calling displayMessageForm should fix your issue.

这篇关于Office 365 Outlook REST API - Office.context.mailbox.displayMessageForm 不适用于 Mac Outlook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆