AX7 / D365: Where are my Jobs?

I get that question very often. People coming from AX 2012 often ask me that question. My answer is always the same, they are still there (as they are still a part of Dynamics 365 for Finance and Operations) and they are basically the same as before.

The only thing that is new is how to run them, but we will get to that later. First a short introduction on how to create a job in D365.

Create a new Job

First of all you have to create a new project in your model. Next you can hit “Add New Item” via right clicking your projects name. Select “Code” from the menu on the left and then select “Runnable Class (Job)”.

AX7 Create Job

This will create a new class with a main method in it.

Just like you were used to in previous versions of AX.

Run your Job

To run the job comes down to three options.

First, you are in Visual Studio on your development box, just right click the job and hit “Set as Startup Object”. Search for the green “play” button on the top menu and watch your job running.

AX7 Run Job

The second option would be to add it to a menu item, link it to the menu or call it via a URL parameter in your browser.
Thats also the third option, where you invoke the “SysClassRunner” menu item and run your job directly, without creating an extra menu item. I already made a post on that, so click here for details.

Advertisement

You may also like...