X++ is an object-oriented language with similarities to C#. X++ is part of the MorphX development platform that you use to construct accounting and business management systems.
MSDN: X++ Programming Guide
Version | Additional Information | Release date |
---|---|---|
7 | Dynamics 365 for Finance and Operations, Enterprise Edition | 2016-03-01 |
6 | Dynamics AX 2012 | 2011-08-01 |
5 | Dynamics AX 2009 | 2008-06-02 |
4 | Dynamics AX 4.0 | 2006-06-09 |
3 | Dynamics AX 3.0 | 2002-10-01 |
2 | Dynamics AX 2.5 | 2000-12-01 |
This example will walk the user through creating a job where they can run X++ code within Dynamics AX.
There is a node titled Jobs in the Application Object Tree (AOT). This sample can be added under the Jobs node, and then the job can be run.
Within Dynamics Ax, open the AOT (Application Object Tree).
Navigate to Jobs and right click the node.
Click New Job which will cause Ax to open a code editor window.
Enter the following text inside the code editor. You can run the code by pressing F5.
static void Job1(Args _args) // Job1 will be the name of the job in the AOT
{
; // This semicolon is necessary to mark the end of variable declarations in versions AX 2009 and lower. If you are interested in the details see https://stackoverflow.com/questions/1976080/is-semicolon-really-needed-after-declarations-in-x
info('Hello world.'); // Shows the text "Hello world" in a dialog called "infolog"
}
Detailed instructions on getting x++ set up or installed.