title: How to invoke a menu item from code in AX 2012
body: <p>I have some custom code in PurchTable "Register" menuitem's clicked method, Now I need to run the Register command from code after a buttons function has been perfomed.</p>
  
  <p>My question is that how can I call the Register command from code ?</p>
  
  <p><img src="https://i.stack.imgur.com/DwIjC.png" alt="Screenshot"></p>