Insert a Code node

Important

This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.

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

The Code node is used to insert X++ code in the product model and is intended for users who have some programming experience.

Note

This information applies only to Product builder.

  1. Click Product information management > Common > Product builder > Product models.

  2. Double-click a product model.

  3. In the Product models form, click the Product model button.

  4. Select the Tree tab in the lower pane.

  5. In the lower pane, right-click the Modeling tree node.

  6. Click New and select Code. A new node is added to the bottom of the modeling tree. To insert a node into a particular position in the tree, drag it from the node list displayed on the left.

  7. In the Description field, type the description for the node.

  8. In the Code field, write the X++ code to be run during item configuration.

  9. Click Test to test the code syntax.

  10. Click OK to save the code.