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: 6
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 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 this GitHub page 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: 17184
Joined: 2006-05-11
Hi Tibor,

The useful service add-in we describe in Office context menu add-in for Excel, Outlook, Word, PowerPoint 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".

Regards from Belarus (GMT+3),

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




Posts: 6
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: 17184
Joined: 2006-05-11
You are welcome!

Regards from Belarus (GMT+3),

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