OfficeDev / office-js

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.
https://learn.microsoft.com/javascript/api/overview
Other
641 stars 92 forks source link

Missing property or function for retrieving folder of Office.context.mailbox.item #4399

Closed sandymane closed 3 weeks ago

sandymane commented 3 weeks ago

We can't get the mailbox folder of the selected message in Outlook directly in office-js.

No property or function described here allows us to find out this info : https://learn.microsoft.com/en-us/javascript/api/requirement-sets/outlook/preview-requirement-set/office.context.mailbox.item?view=common-js-preview

I don't want to use Microsoft graph or EWS api to retrieve it.

Your Environment

Expected behavior

Use a property or a function in Office.context.mailbox.item to get the selected message's folder name

Current behavior

No property or a function existing in Office.context.mailbox.item to get the selected message's folder name

Oleg-O commented 3 weeks ago

Currently the feature to retrieve item's folder via JS API, you requested, is not a part of the product. We track Outlook add-in feature requests on our Tech Community Page. Please submit your request there and choose the appropriate label(s). Feature requests on Tech Community are considered, when we go through our planning process.