# mulesoft Microsoft Dynamics AX 2012 Connector - Full Documentation
---
product: Microsoft Dynamics AX 2012 Connector
version: 2.0
is-latest-version: true
---
# Microsoft Dynamics AX 2012 Connector
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Microsoft Dynamics AX 2012 Connector v2.0
Anypoint Connector for Microsoft Dynamics AX 2012 (Dynamics AX 2012 Connector) enables Mule apps to
interact with the Microsoft Dynamics AX Query Service.
This connector supports the following operations:
- Run a query against an AOT table.
- Run an AOT static query.
- Call an AIF Document Service.
The connector supports Microsoft Dynamics AX 2012.
## Before You Begin
To use this connector, you must be familiar with:
- Microsoft Dynamics AX
- Mule, Mule concepts, elements in a Mule flow, and Global Elements
- Anypoint Connectors
- Anypoint Studio
Before creating an app, you must have:
- Microsoft login credentials to test your connection to your target resource
- Anypoint Windows Gateway Services installed
For software requirements and compatibility information, see the Connector Release Notes.
## POM File Information
```xml
| Parameter | Description |
|---|---|
Username | The username to connect to Dynamics AX. |
Password | The password to connect to Dynamics AX. |
AOS Server Name | The name or IP of the server where the Application Object Server is running. |
AOS Services WSDL Port | The port number that the Services WSDL run on. Default is |
Gateway Router Service Url | The address (host and port) of the Windows Gateway Services. This address is usually similar to |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Name | String | The name for this configuration. Connectors reference the configuration with this name. | x | |
Connection | Gateway Username Password | The connection types that can be provided to this configuration. | x | |
Expiration Policy | ExpirationPolicy | Configures the minimum amount of time that a dynamic configuration instance can remain idle before the runtime considers it eligible for expiration. This does not mean that the platform expires the instance at the exact moment that it becomes eligible. The runtime actually purges the instances as it sees fit. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Disable SSL Certificate validation | Boolean | When dealing with HTTPS certificates, if the certificate is not signed by a trusted partner, the server might respond with an Exception. To prevent this it is possible to disable the CN (Common Name) check. Note: this is not recommended for production environments. | false | |
Gateway Router Service Address | String | The address of the gateway service that routes the requests to the CRM instance ( | x | |
Aos Endpoint Port | String | For overriding the port returned in the Service’s WSDL. | ||
Connection Timeout | Number | Used to set connection timeout for connector requests. This optional value is in milliseconds (0 for unlimited timeout). | ||
Receive Timeout | Number | Use to set receiving timeout for connector requests. This optional value is in milliseconds (0 for unlimited timeout). | ||
Company | String | Sets the company to use within all calls (this setting can be overridden using the 'dynamicsax.callcontext.company' outbound property). | ||
Language | String | Sets the language to use within all calls (this setting can be overridden using the 'dynamicsax.callcontext.language' outbound property). | ||
Logon As User | String | Sets the user to use within all calls (this setting can be overridden using the 'dynamicsax.callcontext.logonAsUser' outbound property). | ||
Message Id | String | Sets the message id to use within all calls (this setting can be overridden using the 'dynamicsax.callcontext.messageId' outbound property). | ||
Partition Key | String | Sets the partition key to use within all calls (this setting can be overridden using the 'dynamicsax.callcontext.partitionKey' outbound property). | ||
Username | String | x | ||
Password | String | x | ||
Aos Server Name | String | The Application Object Server (AOS) WSDL server name. | x | |
Aos Wsdl Port | String | The Application Object Server (AOS) WSDL port. | x | |
Reconnection | Reconnection | When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | The name of the configuration to use. | x | |
Action Input | Binary |
| ||
Streaming Strategy |
| Configure to use repeatable and their behavior. | ||
Service | String | The service group name (first level metadata key) | x | |
Action | String | The action name (second level metadata key) | x | |
Target Variable | String | The name of a variable on which the operation’s output will be placed | ||
Target Value | String | An expression to evaluate against the operation’s output and the outcome of that expression will be stored in the target variable |
| |
Reconnection Strategy |
| A retry strategy in case of connectivity errors |
Type | Binary |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | The name of the configuration to use. | x | |
Query | String | x | ||
Items Per Page | Number | x | ||
Streaming Strategy |
| Configure to use repeatable and their behavior. | ||
Target Variable | String | The name of a variable on which the operation’s output will be placed | ||
Target Value | String | An expression to evaluate against the operation’s output and the outcome of that expression will be stored in the target variable |
| |
Reconnection Strategy |
| A retry strategy in case of connectivity errors |
Type | Array of Object |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | The name of the configuration to use. | x | |
Static Query Name | String | x | ||
Ranges | Object |
| ||
Items Per Page | Number | |||
Streaming Strategy |
| Configure to use repeatable and their behavior. | ||
Target Variable | String | The name of a variable on which the operation’s output will be placed | ||
Target Value | String | An expression to evaluate against the operation’s output and the outcome of that expression will be stored in the target variable |
| |
Reconnection Strategy |
| A retry strategy in case of connectivity errors |
Type | Array of Object |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Fails Deployment | Boolean | When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy | ||
Reconnection Strategy |
| The reconnection strategy to use |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Frequency | Number | How often to reconnect (in milliseconds). | ||
Count | Number | The number of reconnection attempts to make. | ||
blocking | Boolean | If false, the reconnection strategy runs in a separate, non-blocking thread. | true |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Frequency | Number | How often in milliseconds to reconnect. | ||
blocking | Boolean | If false, the reconnection strategy runs in a separate, non-blocking thread. | true |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Max Idle Time | Number | A scalar time value for the maximum amount of time a dynamic configuration instance should be allowed to be idle before it’s considered eligible for expiration | ||
Time Unit | Enumeration, one of:
| A time unit that qualifies the maxIdleTime attribute |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Initial Buffer Size | Number | This is the amount of memory that will be allocated to consume the stream and provide random access to it. If the stream contains more data than can be fit into this buffer, then it will be expanded by according to the bufferSizeIncrement attribute, with an upper limit of maxInMemorySize. | ||
Buffer Size Increment | Number | This is by how much will be buffer size by expanded if it exceeds its initial size. Setting a value of zero or lower means that the buffer should not expand, meaning that a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised when the buffer gets full. | ||
Max Buffer Size | Number | This is the maximum amount of memory to use. If more than that is used then a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised. A value lower or equal to zero means no limit. | ||
Buffer Unit | Enumeration, one of:
| The unit in which all these attributes are expressed |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Max In Memory Size | Number | Defines the maximum memory that the stream should use to keep data in memory. If more than that is consumed then it will start to buffer the content on disk. | ||
Buffer Unit | Enumeration, one of:
| The unit in which maxInMemorySize is expressed |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Initial Buffer Size | Number | The number of instances to initially allow to keep in memory to consume the stream and provide random access to the stream. If the stream contains more data than can fit into this buffer, then the buffer expands according to the bufferSizeIncrement attribute, with an upper limit of maxInMemorySize. Default value is 100 instances. | ||
Buffer Size Increment | Number | By how much the buffer size expands if it exceeds its initial size. Setting a value of zero or lower means that the buffer should not expand, and to raise a STREAM_MAXIMUM_SIZE_EXCEEDED error when the buffer gets full. Default value is 100 instances. | ||
Max Buffer Size | Number | This is the maximum amount of memory to use. If more than that is used then a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised. A value lower or equal to zero means no limit. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Max In Memory Size | Number | This is the maximum amount of instances to keep in memory. If more than that is required, then it will start to buffer the content on disk. | ||
Buffer Unit | Enumeration, one of:
| The unit in which maxInMemorySize is expressed |