Hello Everyone,
I am a beginner at MS Dynamics AX , and am stuck at something i.e. I want to call a menu item through a batch job through a menuFunction, I also have to pass the current record as an arg to the menu Item. I am using the following code for it,
Args args = new Args();
args.record(custPackingSlipJour);
menufunction = new MenuFunction(menuItemOutputStr(SalesPackingSlip), MenuItemType::Output);
menuFunction.run(args);
but it is giving me the error : Expected type is str whereas encountered type is date. The called from property of each of the class,menuitem is 'called from' .
P.S. The same code is working fine in a simple Job.
*This post is locked for comments
I have the same question (0)