Reputation: 523
I am developing an Outlook add-in where I need to know what is the client release version like 2013
, 2016
, 2019
, 365
etc.
While I can get client version using Office.context.mailbox.diagnostics.hostVersion but it returns version like 15.0.468.0
.
I want to know is there any way to get versions like 2013
, 2016
etc or is there any way to get that from client version 15.0.468.0
?
Upvotes: 2
Views: 1326
Reputation:
For your scenario of using the client version to diagnose customer issues, I would recommended logging both the platform and the Outlook version.
Please use the Office.context.diagnostics.platform
API to get the host platform. The version number can be retrieved from the Office.context.diagnostics.version
API.
With the version number and platform (i.e. PC, Mac, or OfficeOnline) in hand, the Outlook release can be identified using the update history for each Outlook application. For example:
Outlook on Windows
Outlook on Mac
Outlook on the web (on-premise)
Upvotes: 4