As per this article, we can use office's diagnostic API to get host related information. Problem is that there is no example there to show how to use this API. If someone can give an example, please provide. I need to get this info in my outlook addin.
Thanks
There are two sets of diagnostics APIs. In both cases, the properties are available immediately, without calling an asynchronous API.
In Outlook, the Office.Diagnostics object is available at Office.context.mailbox.diagnostics
. And its properties are:
Office.context.mailbox.diagnostics.hostName
Office.context.mailbox.diagnostics.hostVersion
Office.context.mailbox.diagnostics.OWAView
In both Outlook and other Office add-in hosts, the Office.context.diagnostics API returns similar information.