A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
Platform [PC desktop, Mac, iOS, Office on the web]: Mac, Office on the web
Host [Excel, Word, PowerPoint, etc.]: Outlook
Office version number: 16.79.3 (23120117)
Operating System: macOS Sonoma 14.2
Browser (if using Office on the web): Edge for Mac (Version 120.0.2210.61 (Official build) (arm64))
Expected behavior
Same properties and values for SelectedItemDetails on web and desktop when calling Office.context.mailbox.getSelectedItemsAsync
Current behavior
When calling Office.context.mailbox.getSelectedItemsAsync, the properties and values of the result are different between Outlook on Mac and Outlook on the web.
On Mac the mode comes with itemMode in capital letter. On web it's commandSurface in lower letter. The itemType on Mac comes in capital letter. On web it's in lower letter.
Thanks for reporting this issue regarding getSelectedItemsAsync API. This has been put in our backlog. We, unfortunately, have no timeline to share at this point.
Your Environment
Expected behavior
Same properties and values for
SelectedItemDetails
on web and desktop when callingOffice.context.mailbox.getSelectedItemsAsync
Current behavior
When calling
Office.context.mailbox.getSelectedItemsAsync
, the properties and values of the result are different between Outlook on Mac and Outlook on the web.Outlook Web:
Outlook Mac:
On Mac the mode comes with
itemMode
in capital letter. On web it'scommandSurface
in lower letter. TheitemType
on Mac comes in capital letter. On web it's in lower letter.The properties and values from Outlook on Mac are consistent with the official documentation (https://learn.microsoft.com/en-us/javascript/api/outlook/office.selecteditemdetails?view=outlook-js-1.13)
Steps to reproduce
npm install
andnpm run dev-server
Link to live example(s)