Code node (form) [AX 2012]

Updated: March 18, 2011

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Click Product information management > Common > Product builder > Product models. Select a product model line, and then click Open. In the Product model form, in the lower pane, right-click the Modeling tree node, point to New, and then select Code.


This information applies only to Product builder.

Use this form to include X++ code in a product model.


In a code node, write the X++ code as if you were writing the body of a method for a Microsoft Dynamics AX class. This means that all statements must end with a semicolon (;). You can also insert comments in your code by putting two slashes (//) in front of them.

This node type is intended for users who have some experience in X++ programming. For a description of the X++ language, see the Microsoft Dynamics AX Developer’s Guide.

The following tables provide descriptions for the controls in this form.




Test the code syntax.




X++ code that should be run, or for IF nodes, the condition that the IF node should be tested for. You must state the condition as a logical expression for IF nodes.


A short description of the purpose of the code.

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).