Microsoft Dynamics 365 Connector Reference - Mule 4
Microsoft Dynamics 365 Connector v2.3
Release Notes: Microsoft Dynamics 365 Connector Release Notes
Configurations
Dynamics 365
Parameters
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Name |
String |
The name for this configuration. Connectors reference the configuration with this name. |
x |
|
Connection |
The connection types that can be provided to this configuration. |
x |
||
Expiration Policy |
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 purges the instances when it sees fit. |
Connection Types
Connection
Parameters
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Version |
String |
The version number of the API to connect to |
9.0 |
|
Scope |
String |
openid |
||
Resource |
String |
Connector resource URL |
x |
|
Response Type |
String |
query |
||
Read Timeout |
Number |
Specifies the amount of time in milliseconds that the consumer waits for a response before it times out. Default value is 0, which means infinite. |
0 |
|
Connection Timeout |
Number |
Specifies the amount of time, in milliseconds, that the consumer will attempt to establish a connection before it times out. Default value is 0, which means infinite. |
0 |
|
Host |
String |
Hostname of the proxy. If this property is not set, then a proxy is not used. Otherwise a proxy is used, but a proxy host must be specified. |
||
Port |
Number |
Port of the proxy. If host is set then this property must be set and cannot be a negative number. |
||
Username |
String |
Username used to authenticate against the proxy. If this property is not set, then authentication is not applied to the proxy, otherwise this value must be specified. |
||
Password |
String |
Password used to authenticate against the proxy. |
||
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 |
|||
Pooling Profile |
Characteristics of the connection pool |
|||
Consumer Key |
String |
The OAuth key registered with the service provider |
x |
|
Consumer Secret |
String |
The OAuth consumer secret registered with the service provider |
x |
|
Authorization Url |
String |
The service provider’s authorization endpoint URL |
|
|
Access Token Url |
String |
The service provider’s accessToken endpoint URL |
|
|
Scopes |
String |
The OAuth scopes to be requested during the dance. If not provided, it defaults to those in the annotation |
||
Resource Owner Id |
String |
The ID each component should use if it doesn’t have another reference. |
||
Before |
String |
The name of a flow to execute right before starting the OAuth dance. |
||
After |
String |
The name of a flow to execute right after an accessToken has been received. |
||
Listener Config |
String |
A reference to an <http:listener-config /> to use to create the listener to catch the access token callback endpoint. |
x |
|
Callback Path |
String |
The path of the access token callback endpoint |
x |
|
Authorize Path |
String |
The path of the local HTTP endpoint that triggers the OAuth dance |
x |
|
External Callback Url |
String |
If the callback endpoint is behind a proxy or should be accessed through a non direct URL, use this parameter to tell the OAuth provider the URL it should use to access the callback. |
||
Object Store |
String |
A reference to the object store to use to store each resource owner ID’s data. If not specified, the runtime automatically provisions the default object store. |
OAuth Username Password
Parameters
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Version |
String |
The version number of the API to connect to. |
9.0 |
|
Read Timeout |
Number |
Specifies the amount of time in milliseconds that the consumer waits for a response before it times out. Default value is 0, which means infinite. |
0 |
|
Connection Timeout |
Number |
Specifies the amount of time in milliseconds that the consumer will attempt to establish a connection before it times out. Default value is 0, which means infinite. |
0 |
|
Host |
String |
Hostname of the proxy. If this property is not set then no proxy will be used, otherwise a proxy will be used, but a proxy host must be specified. |
||
Port |
Number |
Port of the proxy. If host is set then this property must be set and cannot be a negative number. |
||
Username |
String |
Username used to authenticate against the proxy. If this property is not set then no authentication is going to use against the proxy, otherwise this value must be specified. |
||
Password |
String |
Password used to authenticate against the proxy. |
||
Username |
String |
User name used to initialize the session |
x |
|
Password |
String |
Password used to authenticate the user |
x |
|
Resource |
String |
The App ID URI of the web API (secured resource). |
x |
|
Client Id |
String |
The Application ID assigned to your app when you registered it with Azure AD. You can find this in the Azure Portal. Click Active Directory, click the directory, choose the application, and click Configure. |
x |
|
Client Secret |
String |
The Application Secret that you created in the app registration portal for your app. It should not be used in a native app, because client secrets cannot be reliably stored on devices. It is required for web apps and web APIs, which have the ability to store the client secret securely on the server side. |
x |
|
Token Request Endpoint |
String |
x |
||
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 |
|||
Pooling Profile |
Characteristics of the connection pool |
Sources
Microsoft Dynamics 365 Connector sources (listeners) use Object Store to save watermarks. You might experience limitations that are specific to the Object Store implementation you are using (Object Store for CloudHub deployments or Object Store for on-premises deployments), so configure Object Store to suit your needs. For more information, see The Different Types of Object Stores Explained. |
On Modified Object
<dynamics:on-modified-object>
Parameters
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Configuration |
String |
The name of the configuration to use. |
x |
|
Since |
String |
The required date format is |
||
Entity Type |
String |
Describes business data. Example values are |
x |
|
Primary Node Only |
Boolean |
Whether this source should only be executed on the primary node when running in a cluster. |
||
Scheduling Strategy |
scheduling-strategy |
Configures the scheduler that triggers the polling. |
x |
|
Redelivery Policy |
Defines a policy for processing the redelivery of the same message. |
|||
Reconnection Strategy |
A retry strategy in case of connectivity errors. |
On New Object
<dynamics:on-new-object>
Parameters
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Configuration |
String |
The name of the configuration to use. |
x |
|
Since |
String |
The required date format is |
||
Entity Type |
String |
Describes business data. Example values are |
x |
|
Primary Node Only |
Boolean |
Whether this source should only be executed on the primary node when running in a cluster. |
||
Scheduling Strategy |
scheduling-strategy |
Configures the scheduler that triggers the polling. |
x |
|
Redelivery Policy |
Defines a policy for processing the redelivery of the same message. |
|||
Reconnection Strategy |
A retry strategy in case of connectivity errors. |
Create
<dynamics:create>
Creates a new Entity:
-
Create New Entity -
https://msdn.microsoft.com/en-us/library/gg328090.aspx
-
Associate Entity Upon Creation -
https://msdn.microsoft.com/en-us/library/mt607875.aspx#Anchor_4
Parameters
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Configuration |
String |
The name of the configuration to use. |
x |
|
Logical Name |
String |
The logical name of the entity. It is always the Schema Name in lower case. |
x |
|
Attributes |
Object |
The attributes of the entity to be created as a Map. |
|
|
Target Variable |
String |
The name of a variable to store the operation’s output. |
||
Target Value |
String |
An expression to evaluate against the operation’s output and store the expression outcome in the target variable |
|
|
Reconnection Strategy |
A retry strategy in case of connectivity errors. |
Create Multiple
<dynamics:create-multiple>
Creates Multiple Entities:
-
Create New Entity -
https://msdn.microsoft.com/en-us/library/gg328090.aspx
-
Associate Entity Upon Creation -
https://msdn.microsoft.com/en-us/library/mt607875.aspx#Anchor_4
-
Batch Request -
https://msdn.microsoft.com/en-us/library/mt607719.aspx
Parameters
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Configuration |
String |
The name of the configuration to use. |
x |
|
Logical Name |
String |
The logical name of the entities to be created. It is always the Schema Name in lower case. |
x |
|
Entities Attributes |
Array of Object |
A list with the attributes of the entities to be created as a List of Maps. |
|
|
Use Single Transaction |
Boolean |
Use a single transaction for creation. If one entity fails to be created the transaction is rolled-back. |
false |
|
Target Variable |
String |
The name of a variable to store the operation’s output. |
||
Target Value |
String |
An expression to evaluate against the operation’s output and store the expression outcome in the target variable |
|
|
Reconnection Strategy |
A retry strategy in case of connectivity errors. |
Delete
<dynamics:delete>
Delete an Entity:
-
Delete an Entity -
https://msdn.microsoft.com/en-us/library/mt607664.aspx
Parameters
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Configuration |
String |
The name of the configuration to use. |
x |
|
Logical Name |
String |
The logical name of the entity. It is always the Schema Name in lower case. |
x |
|
Id |
String |
The ID of the entity to delete. |
|
|
Reconnection Strategy |
A retry strategy in case of connectivity errors. |
Delete Multiple
<dynamics:delete-multiple>
Delete Multiple Entities:
-
Delete an Entity -
https://msdn.microsoft.com/en-us/library/mt607664.aspx
-
Batch Request -
https://msdn.microsoft.com/en-us/library/mt607719.aspx
Parameters
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Configuration |
String |
The name of the configuration to use. |
x |
|
Logical Name |
String |
The logical name of the entity. It is always the Schema Name in lower case. |
x |
|
Ids |
Array of String |
The list of IDs to delete. |
|
|
Use Single Transaction |
Boolean |
Use a single transaction for deletion. If one entity fails to be deleted the transaction is rolled-back. |
true |
|
Target Variable |
String |
The name of a variable to store the operation’s output. |
||
Target Value |
String |
An expression to evaluate against the operation’s output and store the expression outcome in the target variable |
|
|
Reconnection Strategy |
A retry strategy in case of connectivity errors. |
Disassociate
<dynamics:disassociate>
Removes a reference to an entity.
Parameters
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Configuration |
String |
The name of the configuration to use. |
x |
|
Logical Name |
String |
The logical name of the entity. It is always the Schema Name in lower case. |
x |
|
Attributes |
Object |
Disassociates a request’s payload. |
|
|
Reconnection Strategy |
A retry strategy in case of connectivity errors. |
Do Action
<dynamics:do-action>
Call Action:
-
Use Web API Actions -
https://msdn.microsoft.com/en-us/library/mt607600.aspx
Parameters
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Configuration |
String |
The name of the configuration to use. |
x |
|
Action Name |
String |
The action name that is going to be called |
x |
|
Bounded Entity Type |
String |
An optional bounded entity type. It must be provided if the action is bounded. |
||
Bounded Entity Id |
String |
An optional bounded entity ID. It must be provided if the action is bounded. |
||
Related Entities |
Object |
The body to send in the request as a Map. |
|
|
Target Variable |
String |
The name of a variable to store the operation’s output. |
||
Target Value |
String |
An expression to evaluate against the operation’s output and store the expression outcome in the target variable |
|
|
Reconnection Strategy |
A retry strategy in case of connectivity errors. |
Invoke
<dynamics:invoke>
Generic Simple Invoke.
Parameters
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Configuration |
String |
The name of the configuration to use. |
x |
|
Uri |
String |
The URI that is going to be invoked. |
x |
|
Http Method |
Enumeration, one of:
|
The HTTP Method that is going to be invoked. |
x |
|
Headers |
Object |
The HTTP headers used in the request. There are some default headers that are used; read more in the documentation. |
||
Body |
String |
The string that will be placed in the body of the request. |
||
Target Variable |
String |
The name of a variable to store the operation’s output. |
||
Target Value |
String |
An expression to evaluate against the operation’s output and store the expression outcome in the target variable |
|
|
Reconnection Strategy |
A retry strategy in case of connectivity errors. |
Retrieve
<dynamics:retrieve>
Retrieve an Entity:
-
Retrieve an Entity -
https://msdn.microsoft.com/en-us/library/mt607871.aspx
Parameters
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Configuration |
String |
The name of the configuration to use. |
x |
|
Logical Name |
String |
The logical name of the entity. It is always the Schema Name in lower case. |
x |
|
Id |
String |
The id of the entity that is going to be retrieved. |
|
|
Target Variable |
String |
The name of a variable to store the operation’s output. |
||
Target Value |
String |
An expression to evaluate against the operation’s output and store the expression outcome in the target variable |
|
|
Reconnection Strategy |
A retry strategy in case of connectivity errors. |
Retrieve Multiple
<dynamics:retrieve-multiple>
Retrieve Multiple by URL:
-
Query Data using the Web API -
https://msdn.microsoft.com/en-us/library/gg334767.aspx
Parameters
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Configuration |
String |
The name of the configuration to use. |
x |
|
Data Query URL |
String |
The URL that is going to use for retrieve. |
x |
|
Page Size |
Number |
The size of a page |
5000 |
|
Streaming Strategy |
|
Configure if repeatable streams should be used and their behavior |
||
Target Variable |
String |
The name of a variable to store the operation’s output. |
||
Target Value |
String |
An expression to evaluate against the operation’s output and store the expression outcome in the target variable |
|
|
Reconnection Strategy |
A retry strategy in case of connectivity errors. |
Retrieve Multiple By Query
<dynamics:retrieve-multiple-by-query>
Retrieve Multiple by DSQL Query:
-
Query Data using the Web API -
https://msdn.microsoft.com/en-us/library/gg334767.aspx
Parameters
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Configuration |
String |
The name of the configuration to use. |
x |
|
Datasense Query |
String |
The DSQL query that is going to use for retrieve. The query will be transformed in a retrieve URL internally. |
x |
|
Page Size |
Number |
Number of items in a results page |
5000 |
|
Streaming Strategy |
|
Configure if repeatable streams should be used and their behavior |
||
Target Variable |
String |
The name of a variable to store the operation’s output. |
||
Target Value |
String |
An expression to evaluate against the operation’s output and store the expression outcome in the target variable |
|
|
Reconnection Strategy |
A retry strategy in case of connectivity errors. |
Unauthorize
<dynamics:unauthorize>
Deletes all the access token information for a given resource owner ID so that it’s impossible to execute any operation for that user without doing the authorization dance again.
Update
<dynamics:update>
Update:
-
Create New Entity -
https://msdn.microsoft.com/en-us/library/gg328090.aspx
-
Associate Entity Upon Creation -
https://msdn.microsoft.com/en-us/library/mt607875.aspx#Anchor_4
-
Batch Request -
https://msdn.microsoft.com/en-us/library/mt607719.aspx
Parameters
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Configuration |
String |
The name of the configuration to use. |
x |
|
Logical Name |
String |
The logical name of the entity. It is always the Schema Name in lower case. |
x |
|
Attributes |
Object |
The attributes of the entity. |
|
|
Reconnection Strategy |
A retry strategy in case of connectivity errors. |
Update Multiple
<dynamics:update-multiple>
Update Multiple Entities:
-
Update Entity -
https://msdn.microsoft.com/en-us/library/mt607664.aspx
-
Associate Entities Upon Update -
https://msdn.microsoft.com/en-us/library/mt607875.aspx#Anchor_4
-
Batch Request -
https://msdn.microsoft.com/en-us/library/mt607719.aspx
Parameters
Name | Type | Description | Default Value | Required |
---|---|---|---|---|
Configuration |
String |
The name of the configuration to use. |
x |
|
Logical Name |
String |
The logical name of the entity. It is always the Schema Name in lower case. |
x |
|
Entities Attributes |
Array of Object |
A list with the attributes of the entities that are going to be updated as a List of Maps. |
|
|
Use Single Transaction |
Boolean |
Use a single transaction for update. If one entity fails to be updated the transaction is rolled-back. |
false |
|
Target Variable |
String |
The name of a variable to store the operation’s output. |
||
Target Value |
String |
An expression to evaluate against the operation’s output and store the expression outcome in the target variable |
|
|
Reconnection Strategy |
A retry strategy in case of connectivity errors. |
Types
Reconnection
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. |
Reconnect
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 |
Reconnect Forever
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 |
Pooling Profile
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Max Active |
Number |
Controls the maximum number of Mule components that can be borrowed from a session at one time. When set to a negative value, there is no limit to the number of components that may be active at one time. When maxActive is exceeded, the pool is said to be exhausted. |
||
Max Idle |
Number |
Controls the maximum number of Mule components that can sit idle in the pool at any time. When set to a negative value, there is no limit to the number of Mule components that may be idle at one time. |
||
Max Wait |
Number |
Specifies the number of milliseconds to wait for a pooled component to become available when the pool is exhausted and the exhaustedAction is set to WHEN_EXHAUSTED_WAIT. |
||
Min Eviction Millis |
Number |
Determines the minimum amount of time an object may sit idle in the pool before it is eligible for eviction. When non-positive, no objects will be evicted from the pool due to idle time alone. |
||
Eviction Check Interval Millis |
Number |
Specifies the number of milliseconds between runs of the object evictor. When non-positive, no object evictor is executed. |
||
Exhausted Action |
Enumeration, one of:
|
Specifies the behavior of the Mule component pool when the pool is exhausted. Possible values are: "WHEN_EXHAUSTED_FAIL", which will throw a NoSuchElementException, "WHEN_EXHAUSTED_WAIT", which will block by invoking Object.wait(long) until a new or idle object is available, or WHEN_EXHAUSTED_GROW, which will create a new Mule instance and return it, essentially making maxActive meaningless. If a positive maxWait value is supplied, it will block for at most that many milliseconds, after which a NoSuchElementException will be thrown. If maxThreadWait is a negative value, it will block indefinitely. |
||
Initialisation Policy |
Enumeration, one of:
|
Determines how components in a pool should be initialized. The possible values are: INITIALISE_NONE (will not load any components into the pool on startup), INITIALISE_ONE (will load one initial component into the pool on startup), or INITIALISE_ALL (will load all components in the pool on startup) |
||
Disabled |
Boolean |
Whether pooling should be disabled |
Expiration Policy
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 |
Redelivery Policy
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Max Redelivery Count |
Number |
The maximum number of times a message can be redelivered and processed unsuccessfully before triggering process-failed-message |
||
Use Secure Hash |
Boolean |
Whether to use a secure hash algorithm to identify a redelivered message. |
||
Message Digest Algorithm |
String |
The secure hashing algorithm to use. If not set, the default is SHA-256. |
||
Id Expression |
String |
Defines one or more expressions to use to determine when a message has been redelivered. This property may only be set if useSecureHash is false. |
||
Object Store |
Object Store |
The object store where the redelivery counter for each message is going to be stored. |
Bulk Operation Result
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Id |
Any |
|||
Items |
Array of Bulk Item |
|||
Successful |
Boolean |
Bulk Item
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Exception |
Any |
|||
Id |
Any |
|||
Message |
String |
|||
Payload |
Object |
|||
Status Code |
String |
|||
Successful |
Boolean |
Repeatable In Memory Iterable
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Initial Buffer Size |
Number |
This is the number of instances to keep in memory to consume the stream and provide random access to it. If the stream contains more data than can fit into this buffer, then it expands according to the bufferSizeIncrement attribute, with an upper limit of maxInMemorySize. Default value is 100 instances. |
||
Buffer Size Increment |
Number |
This is by how much the buffer size by expands 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. 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 will be raised. A value lower or equal to zero means no limit. |
Repeatable File Store Iterable
Field | Type | Description | Default Value | Required |
---|---|---|---|---|
Max In Memory Size |
Number |
This is the maximum amount of instances that will be kept 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. |