Notifications
Announcements
No record found.
How can I start a Job by X++ Code?
*This post is locked for comments
You can do that, but using a job instead of a class has only disadvantages (e.g. jobs aren't able to run on server side). Don't use jobs in any production code.
In general, you have two possibilities - to create a menu item and call it:
//you can change the type of called object without changing the invocation codeMenuFunction::runClient(menuItemActionStr(YourMenuItem), MenuItemType::Action);
or to run an application object via TreeNode:
#AOT;TreeNode::findNode(strFmt(#JobPath, identifierStr(YourJob))).AOTrun();
Hi Martin,
Thank You very much for your help to people.
Its working great..
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2