Sandun Tharaka
Sandun Tharaka

Reputation: 747

Outlook Add-in Hostname not getting correctly in Mac

I am working on getting host name to identify which platform Add-in runs. I followed Provides diagnostic information to an Outlook add-i. Its return following string in each platform.

var hostName = Office.context.mailbox.diagnostics.hostName;

1.OWA - OutlookWebApp

2.Outlook on windows - Outlook

3.Outlook on mac - Outlook

But the documentation says return string can be one of the following values: Outlook, Mac Outlook, OutlookIOS, or OutlookWebApp.

For Outlook on mac i am expecting a Mac Outlook or OutlookIOS, but i am returning a Outlook. Is that a expected behavior?

Upvotes: 0

Views: 96

Answers (1)

user7823505
user7823505

Reputation:

Try using the office.context.platform to differentiate between the platforms.

Upvotes: 1

Related Questions