SysAutoRun.execConfiguration Method [AX 2012]

Enables modification of the default Microsoft Dynamics AX configuration keys.


protected boolean execConfiguration(XmlNode _command)

Run On



  • _command
    Type: XmlNode Class
    The XML node to get the value from.

Return Value

Type: boolean
true if execution is successful; otherwise, false.


The execConfiguration method is called when the <ConfigurationKey> tag is used in the configuration file when Microsoft Dynamics AX is started. For more information, see the SysAutoRun class.

Execution of this method is controlled by the SysAutoRun.execCommand method.

The <ConfigurationKey> tag has the following attributes:

  • name, specifies the name of the configuration key

  • enabled, specifies whether the key is enabled (enabled="true") or disabled

The execConfiguration method uses the ConfigurationKeySet class to modify the enabled/disabled status of each configuration key. Only the values specified in the configuration file are changed; other keys retain their default values.


The following example shows a possible use of the <ConfigurationKey> tag in the configuration file.

 <ConfigurationKey name="SysUserLog" enabled="true" /> 
 <ConfigurationKey name="PBA_AdvancedProductBuilder" enabled="false" /> 

See Also


SysAutoRun Class