Dynamics AX 2012 Tips And Tricks : Calling MenuItem through Code in Dynamics AX 2012
![Dynamics AX 2012 Development Services](https://dynamics.folio3.com/wp-content/uploads/2014/02/1a.png)
Calling MenuItem through Code in Dynamics AX 2012 Tips and Tricks We often need to execute menu items from X+. Menu Items are represented by the MenuFunction class. Below is a code sample that depicts how to run Menu Items through code. MenuFunction menuFunction = new MenuFunction(menuitemdisplaystr(MENUITEM), MenuItemType::Display); Args args = new Args(); args.caller(element); args.record(DS); […]