How can I reliably get the object of a contact context menu in an Outlook 2013 addin?
I am adding an entry to the context menu for a Contact in Outlook 2013 following the example in this article . Here is the XML: <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load"> <contextMenus> <contextMenu idMso="ContextMenuContactItem"> <button id="MyContextMenuContactItem" label="Do something..." onAction="OnDoSomething" insertAfterMso="DialMenu"/> </contextMenu> </contextMenus> </customUI> The entry shows up in the menu properly, and when I click it, my event handler is executed: public void OnDoSomething(IRibbonControl control) { object context =