'Can Outlook MessageReadCommandSurface be limited to "Sent" folder only (not inbox?)
Or more specifically I guess - how do I prevent my add-in button showing up anyplace besides the "Sent" folder ?
I assume, if it's possible, that I'd put something in the Manifest XML? - and if so - I'd somehow need to link it to the "Sent" folder, which (of course) might not be called "Sent" (e.g. other languages etc), so would need to be some kind of canonical identifier for the folder where things people have sent go into...
Solution 1:[1]
OfficeJS doesn't provide anything for specifying for which folder the ribbon UI should be displayed or not. Outlook web add-ins are run under the context of currently selected item in Outlook only. Read more about add-in commands in the Add-in commands for Outlook article.
Solution 2:[2]
Currently the feature of limiting the add-in to any one of the folders 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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Eugene Astafiev |
| Solution 2 | Outlook Add-ins Team - MSFT |
