How to detect if Office 365 addin is already active from a VSTO Outlook addin or vice-versa?

北城余情 提交于 2019-11-29 12:37:40

Unfortunately, there is no functionality to detect COM/VSTO add-on installation or enumerate installed add-ons from Office.js API. If you have strong business case, you may post request at https://officespdev.uservoice.com/.

On other hand, you are able to check if particular Office.js add-on installed from inside of VSTO/COM add-on. In order to perform this check you would need to know Office.js Add-on ID and this shouldn't be the problem as this is your company product. You would need to enumerate messages in Associated contents table of the Inbox folder by using IMAPIFolder interface. And after find the message with the class “IPM.Configuration.ClientExtension.00000000000000000000000000000000”, where zeros must be ID of your Office JS Add-in. If the message has been found the Office.js add-on has been installed into the user's mailbox.

You may do even more, for example share the add-on properties and settings between VSTO/COM and O365 add-ons.

No, there is no way currently. The Outlook object model doesn't provide anything for that.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!