In this section, we will learn some best practices to be followed during development in Dynamics AX.
Run your code through the X++ best practices process, evaluate all the best practices errors and warnings, and take the appropriate action.
Begin the variable and method names with lowercase letters like
validateFields, and so on. Begin the names of the AOT elements with capital letters such as
SalesFormLetters, and so on.
Prefix the parameters names with an underscore (
Args _args). Use meaningful and self-explanatory variable names. For example:
SalesTable salesTable and not
Code comments enhance the readability of the code ...