Microsoft BizTalk Server and Microsoft Dynamics AX Integration - Configuring Message Properties in BizTalk Server for sending data to Microsoft Dynamics AX

The configuration that needs to be performed on BizTalk Server Message properties in order to send data to Microsoft Dynamics AX using BizTalk Dynamics AX Adapter and Application Integration Framework (AIF) is as follows:

To send data to Microsoft Dynamics AX from BizTalk there are properties that needs to be set on the message, before Microsoft Dynamics AX adapter can push the same.

The following properties need to be set on the message:

i. Set the Dynamics Action on the Message as per the Action configured in Microsoft Dynamics AX:

_message (Dynamics.Action)

ii. Set the Dynamics Destination Endpoint on the Message as per the Destination Endpoint configured in Microsoft Dynamics AX:

_message (Dynamics.DestinationEndpoint)

iii. // Set the Dynamics Source Endpoint on the Message as per the Destination Endpoint configured in Microsoft Dynamics AX

_message (Dynamics.SourceEndpoint)

iv. // Set the Dynamics Source Endpoint User on the Message as per the Destination Endpoint configured in Microsoft Dynamics AX

_message (Dynamics.SourceEndpointUser)

Here is the sample for the setting the properties for VendTable:

// Set the Dynamics Action for VendTable

msg_VendTableRequest(Dynamics.Action)="createListVendTable"; // this too can be made configurable and taken from SSO

// Set the Dynamics Destination Endpoint from the SSO Config

msg_VendTableRequest(Dynamics.DestinationEndpoint) = SSOConfigHelper.Read("BizTalk.OracleFinancials.VendorData", "Dynamics.DestinationEndpoint");

// Set the Dynamics Source Endpoint from the SSO Config

msg_VendTableRequest(Dynamics.SourceEndpoint) = SSOConfigHelper.Read("BizTalk.OracleFinancials.VendorData", "Dynamics.SourceEndpoint");

// Set the Dynamics Source Endpoint User from the SSO Config

msg_VendTableRequest(Dynamics.SourceEndpointUser) = SSOConfigHelper.Read("BizTalk.OracleFinancials.VendorData", "Dynamics.SourceEndpointUser");