Button in Outlook context menu on multiple selections

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

Button in Outlook context menu on multiple selections
 
MirkoB




Posts: 14
Joined: 2019-04-02
Hello,

I sucessfully added a button to the context menu in Outlook 2016 explorer.
So when right-clicking an email entry in the explorer, the button shows up.
I noticed that, when selectintg multiple entries and then right-clicking one of the selected entries, the button does not show up as intended.
Just when I click a single entry, it is working perfectly.

Can anyone please advice how to make the button appear in the context menu, even when multiple Outlook explorer entries are selected?

Thanks and best regards

Mirko
Posted 08 Dec, 2019 11:49:08 Top
Andrei Smolin


Add-in Express team


Posts: 17684
Joined: 2006-05-11
Hello Mirko,

In that case, you should use a different context menu name.

I recommend using the .NET based add-in described at https://www.add-in-express.com/creating-addins-blog/2015/04/15/creating-office-context-menu-addin/ whenever you need to find what context menu name is required.

If multiple emails are selected, the add-in reports:

Context menu name = "ContextMenuMultipleItems"
Context object type name="Selection"

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 09 Dec, 2019 04:31:18 Top
MirkoB




Posts: 14
Joined: 2019-04-02
Hello Andreij,

thanks for helping me out. That is working perfectly.
Now I can iterate through the selected items.

Best regards...

Mirko
Posted 09 Dec, 2019 11:56:34 Top
Andrei Smolin


Add-in Express team


Posts: 17684
Joined: 2006-05-11
Welcome!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 10 Dec, 2019 02:41:09 Top