How to call job to another job in axapta using x++ code


1. Create simple job Job2  and add it to action menu item.
2. Call Job2  in other Job1 using following code.
   Args                    args; 
    args = new Args();  )); 
    new menuFunction(menuItemActionStr(Job2 ), MenuItemType::Action).run(args);
//Here Job2 in last line is the name of the menu item and in above that is name of the job
Share on email
Share on facebook
Share on twitter
Share on linkedin
Share on pinterest

Leave a Reply

Your email address will not be published.