
| Topic | Work with AX client (AX 2009/2012) |
|---|---|
| Category | Utility |
| Special features |
|
| Microsoft documentation | https://msdn.microsoft.com/en-us/library/sysautorun.execrun.aspx |
Parameters
- Run mode
- Object type
- Job name
- Class name
- Method name
- Parameters
- Menu item type
- Client config file path (.axc)
- Log file path (*.log)
- Layer name
- Layer code
- Model name
- Max wait time (min)
- AutoRun file path (*.xml)
| Parameter | Type | Required | Default | Example |
|---|---|---|---|---|
| Run modeHow should the step be executed? Possible values are "Direct", or "Batch. | Picklist | True | Direct | — |
| Object typeWhat object type should be run? Possible values are "Job", "Static class method", "Menu item". Please note that Object type "Job" is not supported by all versions of Microsoft Dynamics AX. | Picklist | True | Job | — |
| Job nameSpecifies the name of the job to execute.Depends on: Only visible if Object type is "Job" | String | True | — | MyJob |
| Class nameSpecifies the name of the class to run.Depends on: Only visible if Object type is "Static class method" | String | True | — | MyClass |
| Method nameSpecifies the name of the static method to execute. If empty "main" is used.Depends on: Only visible if Object type is "Static class method" | String | False | — | MyStaticMethod |
| ParametersSpecify parameters which should be added.Depends on: Only visible if Object type is "Static class method" | String | False | — | 'MyString', 100 |
| Menu item typeWhat menu item type should be run? Possible values are "Action", "Display", or "Output".Depends on: Only visible if Object type is "Menu item" | Picklist | True | Action | MyActionMenuItem |
| Client config file path (.axc)The file path of the client configuration file.Depends on: Only visible if Run mode is "Direct" | File path | True | — | $/Microsoft Dynamics AX (Test)/Client.axc |
| Log file path (*.log)The file path to save the log file to.Depends on: Only visible if Run mode is "Direct" | File path | True | — | $/Microsoft Dynamics AX (Test)/MyAutorunLogFile.log |
| Layer nameSpecifies which layer to open in the AOT.Depends on: Only visible if Run mode is "Direct" | String | False | — | VAR |
| Layer codeSpecifies the developer license code for developer options.Depends on: Only visible if Run mode is "Direct" | String | False | — | SDSA43432DSADSADAS |
| Model nameThe "current model" is the model where all new AOT elements are created in.Depends on: Only visible if Run mode is "Direct" | String | False | — | MyModel |
| Max wait time (min)The number of minutes to wait before failing the step.Depends on: Only visible if Run mode is "Direct" | Integer | False | 120 | — |
| AutoRun file path (*.xml)The autorun file to append the build step to.Depends on: Only visible if Run mode is "Batch" | File path | True | — | $/Microsoft Dynamics AX (Test)/MyAutorunFile.xml |
Frequently asked questionsError message "Unsupported type job specified for run command."
Error message "Unsupported type job specified for run command."
The Object type "Job" is not supported by all version of Microsoft Dynamics AX. If so in your installation, you have to do some customization to support it. Maybe you could copy the required code in "SysAutoRun.execRun" from Microsoft Dynamics AX 2012 R3. Please see Microsoft site for more informations.