How to: Enable Best Practice Checks
You should check your code and application objects for compliance with the best practices for Microsoft Dynamics AX.
Enabling Best Practice Checks
Use the following procedures to enable, identify, and check your code for best practice compliance.
To enable best practice checks
From the Microsoft Dynamics AX menu, point to Tools, and then click Options.
In the Options form, click the Compiler button.
Set the Diagnostic level to Level 4.
To identify which best practice checks to enable
In the Options form, click the Best Practices button.
In the Best Practice parameters form, select the best practice parameter checks that you want to verify in your code.
Set the Warning level drop-down to All.
To check your code and application objects for best practice compliance
- In the AOT, right-click the element you want to verify for best practice compliance and then click Compile. Best practice information is provided in the Compiler output in the Best Practices tab.