How do you execute code when a Configuration key is enabled?
It is pritty easy. Ax x++ has a build-in function ‘isConfigurationKeyEnabled’, witch you can use to check a configuration key.
Small example:
if (isConfigurationKeyEnabled(configurationkeynum(AIF))) { // Do something... } |