Context menu for Public folders

Add-in Express™ Support Service
That's what is more important than anything else

Context menu for Public folders
 
Tibor V?zh?ny?




Posts: 15
Joined: 2017-03-13
Hi.
I've an ADXRibbonContextMenu defined in my addin. I was able to add it several item types with the following code:


this.ExplorerContextMenu.ContextMenuNames.AddRange(new string[] {
    "Outlook.Explorer.ContextMenuMailItem",
    "Outlook.Explorer.ContextMenuMultipleItems",
    "Outlook.Explorer.ContextMenuContactItem",
    "Outlook.Explorer.ContextMenuTaskItem",
    "Outlook.Explorer.ContextMenuCalendarItem",
    "Outlook.Explorer.ContextMenuCalendarView"});


It works flawlessly with a normal Outlook items. Now, one of my user reported she cannot see this context menu if right-clicks on a specific Public Folder item. (I didn't expected to see with any other Public Folder items, though)
It turned out this specific item is a https://docs.microsoft.com/en-us/office/vba/api/outlook.documentitem. The item is in a Public folder for "Mail and Post Items", and just below this item there is a PostItem which shows my context menu.

I tried to figure out what MsoId should I use in the code above, using https://github.com/OfficeDev/office-fluent-ui-command-identifiers but I had no success.

Can you help me to figure out what should I set to my context menu item appear on DocumentItems?

Thank you.
Tibor
Posted 13 Mar, 2020 05:03:20 Top
Andrei Smolin


Add-in Express team


Posts: 18816
Joined: 2006-05-11
Hi Tibor,

The useful service add-in we describe in https://www.add-in-express.com/creating-addins-blog/2015/04/15/creating-office-context-menu-addin/ shows that the name of that menu is "ContextMenuRemoteDocument". Event handlers of a Ribbon button added to that context menu receive a context object of the type "Selection".


Andrei Smolin
Add-in Express Team Leader
Posted 13 Mar, 2020 05:36:55 Top
Tibor V?zh?ny?




Posts: 15
Joined: 2017-03-13
Thank you Andrei. You are the best.

Tibor
Posted 13 Mar, 2020 06:11:13 Top
Andrei Smolin


Add-in Express team


Posts: 18816
Joined: 2006-05-11
You are welcome!


Andrei Smolin
Add-in Express Team Leader
Posted 13 Mar, 2020 07:02:36 Top