Outlook mailitem context menu item or submenu dynamic RRS feed

  • Question

  • Hi I'm developing add-in for Outlook, where I wanted to show context menu or context menu with sub-menu for mail item based on some condition dynamically.

    now I'm using

      <contextMenu idMso="ContextMenuMailItem" >

          <button id=".." onAction=".." getImage=".." getLabel=".." getVisible=".." getEnabled=".."/>


    and for submenu 

      <contextMenu idMso="ContextMenuMailItem" >

          <dynamicMenu id=".." label= "submenu" getContent=".." />


    I wanted to have either 

       <button id="..". ... > nor <dynamicMenu id=".." ...> . not both, this I have to decide dynamically and show the menu or submenu.

    How can I  do that?


    Balamurali C

    Tuesday, June 16, 2015 9:38 AM


All replies