Download and extract files from GitHub https://github.com/microsoft/Dynamics365FO-AppChecker
The files must be unpacked into the corresponding directory, e.g. C:\AOSService\PackagesLocalDirectory\Bin\AppCheckerRules
Build model
In Visual Studio, under Dynamics 365 > Builds models, select the desired model and select the Run App Checks option:
Check result
Now corresponding entries should appear in the ErrorList if BP deviations have been detected.
In addition, a file AppCheckerResult.xml is stored in the packages directory, where the detected deviations can also be viewed.
Note
During my first attempts I always had the following error message on my screen:
Process: basex.bat exited with code 1.
basex.bat: Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid maximum heap size: -Xmx15000m
The specified size exceeds the maximum representable size.
Cause was an unclean basex.bat file in the BIN directory of BaseX, e.g. under C:\Program Files (x86)\BaseX\bin
The file looked like this, where the marked part had to be deleted:
These post applies to following version: Dynamics 365 for Finance and Operations
A colleague of mine has brought to my attention the Dynamics Application Checker, which can be used to implement advanced best practice checks.
The used XQuery files can be downloaded from GitHub. How to use them I try to describe here.
https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-tools/install-basex?tabs=admin
https://github.com/microsoft/Dynamics365FO-AppChecker
The files must be unpacked into the corresponding directory, e.g. C:\AOSService\PackagesLocalDirectory\Bin\AppCheckerRules
In Visual Studio, under Dynamics 365 > Builds models, select the desired model and select the Run App Checks option:
Now corresponding entries should appear in the ErrorList if BP deviations have been detected.
In addition, a file AppCheckerResult.xml is stored in the packages directory, where the detected deviations can also be viewed.
Note
During my first attempts I always had the following error message on my screen:
Cause was an unclean basex.bat file in the BIN directory of BaseX, e.g. under C:\Program Files (x86)\BaseX\bin
The file looked like this, where the marked part had to be deleted: