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
657 stars 93 forks source link

Missing API for retrieving folder of Office.context.mailbox.item #164

Closed binarykitchen closed 5 years ago

binarykitchen commented 6 years ago

Looking at your latest API in https://dev.office.com/reference/add-ins/outlook/preview/Office.context.mailbox.item it seems there is no way to find out the folder the currently selected message resides.

Think this is an important feature. Already searched on StackOverflow, Github and in your code base for answers but nah, no luck.

I don't want to retrieve a full folder list and compare their messages with the itemId to find this out. Way too complicated/long.

Any clues?

exextoc commented 6 years ago

The way to do this would be to get the item id of the current item, then use graph or EWS to look up the folder id.

JuaneloJuanelo commented 5 years ago

please add to https://officespdev.uservoice.com/ if solution is not suitable. thanks!

hmuris commented 1 year ago

On this link, we get only this message: This UserVoice instance is no longer available. Feature is still missing as there is no way to find out if the message is incoming or outgoing message, by ONLY using office js.

eugene-plutoflume commented 1 year ago

Use https://aka.ms/M365dev-suggestions for posting your feature requests or suggestions instead.