O'Reilly logo

Learning MS Dynamics AX 2012 Programming by Erlend Dalen, Mohammed Rasheed

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating your first AX program

To make the Hello World example, we simply open the AOT by pressing Ctrl + D from anywhere in the main Dynamics AX window, or pressing the AOT button in the top menu, as shown in the first screenshot of this chapter. Then perform the following steps:

  1. Go to the Jobs node in the AOT, right-click on it and select New job.
  2. Check if the job opens automatically.
  3. A new X++ editor window will open, showing a new job:
    static void Job1(Args _args)
    {
    }

As a job is static and has an input parameter of the Args class, it can be run directly. Obviously, the preceding example doesn't do anything, but simply editing the job as shown in the following code will display a HelloWorld message in the print window, after running the job by ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required