As enterprises move toward using more and more specialized applications rather than having an ERP do everything for them, you need a robust framework and strategy for managing integrations within the ERP system. Dynamics AX provides many such robust frameworks and functionalities to integrate with third-party applications using modern techniques.
The following section outlines the commonly-used integration technologies in Dynamics AX. It is important to make sure that the technical analysts and developers in your project are familiar with these technologies, so that they can support the design process and identify the best integration solution for your project.
AIF (Application Integration Framework) is the de facto integration methodology to integrate Dynamics AX with third-party applications and is a built-in infrastructure into the Dynamics AX platform.
AIF enables companies to integrate and communicate with the external business processes and partners through the exchange of XML over various transport media. AIF can be used to implement both business-to-business and application-to-application integration scenarios.
The following diagram shows the high-level AIF and services architecture. As shown in the diagram, AIF and service are based on Windows Communication Foundation (WCF) and are hosted on AOS. AIF web services can also be hosted on IIS. The AOS-hosted services are available to users and applications across Intranet. To consume these services over the Internet, you must host these services on Internet Information Services (IIS).
The key concepts in AIF include the following:
The different types of services AIF provides, are as follows:
The following table compares document services and custom services and explains some of the example scenarios to determine the appropriate programing model for your integration requirement:
Pros |
Cons |
Good for |
Examples | |
---|---|---|---|---|
Document services |
|
|
|
|
Custom services |
|
|
|
|
Adapters represent the transport mechanism for message transmission between Dynamics AX and the integration application. Dynamics AX 2012 provides the following out-of-the-box adapters for message transmission:
Generally, integrations are designed either around the source system or the target system schema. This is basically called as adding system dependency to your integration. The recommendation is to keep the integration schema in a generic format. The key benefits in keeping the schema generic are as follows:
AIF provides the following two powerful features to manage messages transformation and value substitutions:
The following diagram shows how data moves through an inbound integration port and the application of transform and pipelines:
The AIF Service Bus adapter provides a simple process for developers to build compelling companion applications, which are highly integrated with Dynamics AX. To build a cloud-based application for Dynamics AX, you need the following additional components:
To build a cloud-based application, the following are the high-level steps that a developer needs to perform the following steps:
The next diagram shows a high-level system architecture outlining how Microsoft Azure Service Bus, ADFS, and Dynamics AX AIF interact when used together for cloud-based applications.
The Microsoft Dynamics AX 2012 Data Import/Export Framework is an extension that helps you import and export data in Microsoft Dynamics AX. Primarily DIXF is designed for configuration and transaction data migration but the robust framework and extensibility makes it a perfect fit for high-volume asynchronous integration scenarios with small enhancements. Use of DIXF for data migration purpose is explained in Chapter 5, Data Migration – Scoping through Delivery.
The following sections explain some common integration scenarios where DIXF can be used as an integration solution.
We often encounter integration scenarios where a particular data entity needs to be exported or imported manually by the business users. The traditional way of supporting such an integration is by writing X++ classes to import or export specific data files. DIXF provides a robust framework to handle such manual integration scenarios by extending the framework to the applicable business area. For example, a company payroll is generated by a third-party system and at the end of the month, the accounting team receives a consolidated GL entry file, which they want to import in Dynamics AX. DIXF can be used for such a requirement by considering the following scenarios:
How this framework can be leveraged and extended is answered at a high level in the following three steps:
DMFStagingWriter
and DMFEntityWriter
.The following diagram depicts the solution idea:
It is important to know that Microsoft is investing heavily in DIXF and it will be the key integration tool for asynchronous message processing in Microsoft Dynamics AX 7.
Master data management (MDM) is a new feature in Dynamics AX 2012 R3 which can be used to synchronize master data across multiple instances of Dynamics AX 2012. MDM uses Microsoft SQL Server Master Data Services (SQL MDS) as the central data store and AX 2012 Data Import/Export Framework entities as the unit for data synchronization. MDM is preconfigured to support synchronization of the customers, vendors, employees, global address book, and product entities. You can also create customizations to support other Data Import/Export Framework entities in MDM.
The following diagram shows the high-level architecture of an MDM:
The following are the key features supported in MDM:
Dynamics AX can be used to consume the business logic developed in common .NET programing language. You can also build business logic in other programing languages, such as C# and Visual Basic, and use Dynamics AX objects such as tables, classes, and enums as proxy objects.
The .NET Business Connector enables you to build software applications that integrate with Microsoft Dynamics AX. You can access data or start a business logic. The .NET Business Connector is not a recommended integration technology for the following two reasons:
There are several vendors that provide specialized integration solutions with Dynamics AX such as EDI solutions, sales tax, and AP automation. These integration solutions typically utilize AIF or other integration technologies supported in Dynamics AX and extend the solution to implement common industry integration points with various products. The following table lists a sample of third-party integration solutions:
Vendor |
Category |
Specialized use |
---|---|---|
Data Masons |
EDI |
End-to-End EDI solution: This includes predefined EDI maps, data transformation, Integrations with trading partners, Integration with Dynamics AX. |
Vertex, CCH, Avalara |
Integration with Sales tax solution |
This integrates between Dynamics AX and tax solution, transactions like sales order inquiry, invoice posting, project invoices, free text invoices, and so on. |
Sandler Kahne Software |
Banking |
This includes lockbox, wire, bank reconciliation with banking institutions. |
Red Maple |
Credit card |
This includes enhanced credit card services and integration with payment processors. |
Connector for Microsoft Dynamics is an integration tool for connecting the Microsoft CRM application with any Microsoft Dynamics ERP system. The following diagram shows the high-level architecture of Connector for Microsoft Dynamics. As shown in the diagram, Connector for Microsoft Dynamics is a standalone integration component and provides connectivity between Dynamics CRM and the Dynamics ERP system through web services:
Connector for Dynamics, along with Dynamics AX, provides the following integration entities out of the box. Additional entities can be added though customization:
The following are the key features of the Connector for Microsoft Dynamics: