Coded conditions are written in X++ code. In the field group, variables which can be used in the code are selected. The code is expected to return a Boolean operator. If the code returns TRUE, a configuration is invalid.

  1. Repeat the first six steps described in the Create validation ruletopic.

  2. Click the tab.

  3. Press CTRL+N to create a new condition.

  4. In the field, select .

  5. In the field group, press CTRL+N to select the variable you want to use for the condition creation.

  6. If the selected variable belongs to the array group, you can specify its index in the group in the field.

  7. In the field group, write the X++ code.

  8. Click the tab to create a message that will appear if the condition is true. Select the language in which you will write the message and then type the message text.