Cart 0

Configuring The Dynamics Connector To Synchronize Dynamics AX With CRM

Posted by Murray Fife on

Dynamics AX and Dynamics CRM are two sides of the same coin and together they provide both the front office (sales & customer service) and back office (transactional) capabilities that you need to run a business. But there is a lot of shared information between the two that you need to keep in sync such as Customers, Invoices, Products etc. Luckily this is not a problem, because Microsoft deliver a Dynamics Connector which handles all of this for you out of the box, and it’s a breeze to set up and configure.

Dynamics AX and CRM can live together in harmony and even help each other out.

Installing The Dynamics AX Connector

The first thing that we need to do is install the Dynamics Connector which we will use to synchronize all of the data between Dynamics AX and CRM. You don’t even have to pull out your wallet to do this either, because the Dynamics Connector is available for free on Customer Source.

  1. If you do a quick Bing! Search then you should be able to find the Connector for Dynamics AX on CustomerSource.
  2. If you scroll down to the bottom of the download page, then you will see a Connector For Dynamics AX.msi installation kit. All you need to do is download it and start the installer.
  3. When the installer starts, skip over the welcome screen by clicking the Next button.
  4. Then accept the obligatory license agreement and then click on the Next button.
  5. Then the Connection Information page is displayed, enter in the server name where you have MSSQL installed on and then click the Next button.
  6. Then enter in the username and password that you want to use to run the Connector Service that the Connector will create and click on the Next button.
  7. Then click on the Install button to start the installation.
  8. After a little while the connector will finish installing itself and you can click on the Finish button.

You should now see a Connector For Dynamics AX application.

That was easy.

Preparing The Services Within Dynamics AX

Before we move onto the next step, there is a little bit of house keeping that we need to perform. The integration uses web services to integrate with Dynamics AX, but the services are not initially configured. We just need to run a quick routine within Dynamics AX to get these set up. But it’s not quite where you expect it to be…

  1. To do this, click on the Project To Dynamics CRM Integration Setup within the Microsoft Dynamics CRM Integration folder of the Setup group within the Project Management
    And Accounting area page.

This will run for a little while and also show a compile window. After it has completed, then you can move on to the next step.

Configuring The Dynamics AX Connector

Now we can start configuring the connections within the Connector. The first connection that we will configure is the Dynamics AX Connection.

  1. To do this, open up the Connector For Dynamics AX and click on the Adapter Settings button within the menu bar.
  2. This will open up the Adapter Settings dialog box and you will see on the left hand side all of the different adapters that are available. Click on the Microsoft Dynamics AX 2012 adapter.
  3. Then type in the AOS Server Name and also all of the user information and password that you will be using during the integration.
  4. After you have done that, click on the Configure Microsoft Dynamics AX 2012 link.
  5. This will open up the AX Configuration dialog. Click on the Refresh Services button.
  6. This will show you a list of all the available services that you can use within the integration. Notice that there are a number of services related to the DynamicsConnector which were created in the previous step.
  7. All you need to do is click on the Configure button at the bottom of the form and then click out of the Configuration dialog.
  8. When you return to the Adapter Settings form, click on the Test Settings button just to make sure that everything is fine.
  9. If everything is configured correctly then you will get a successful message and you can click the OK button.
  10. All that is left to do here is to click on the Apply button and you are done.

Configuring The Dynamics CRM Connector

Now we need to configure the connection to the Dynamics CRM environment. This could be on-premise, or hosted – the connector doesn’t care.

  1. To do this, click on the Microsoft Dynamics CRM 2011 adapter on the left of the form. Don’t get distracted by the Microsoft Dynamics CRM adapter – this is only needed for CRM 4.0.
  2. Within the Microsoft Dynamics CRM 2011 Settings, enter in the User Name and Password for the user that will be used for the integration.
  3. Then enter in the discovery URL for your instance of CRM.
  4. Tip: If you don’t know what that URL is, just open up CRM and go to the Customization page. Then click on the Developer Resources menu item.
  5. That will take you to a form that shows you all of the Service Endpoints and you will see your Discovery Service is listed there.
  6. Now click on the Configure Microsoft Dynamics CRM link to start the configuration tool.
  7. When the Welcome page is displayed, just click on the Next button.
  8. This will take you to the Adapter Configuration form with the discovery URL already populated for you.
  9. Just type in the administrator User Name and Password and click on the Get Organizations button.
  10. This will retrieve the Organizations that you have within CRM and you can select the one that you want to synchronize with and then click the Next button.
  11. Next you will be asked what Entities you want to synchronize. The usual suspects are already check for you so all you need to do is click on the Next button.
  12. That will take you to a Configuration page so that you can start updating CRM. Click on the Configure button.
  13. The Connector will update Dynamics CRM for you, adding any additional components that are needed for the integration and also updating the security for you. After a short time you will be able to click on the Finish button to exit from the form.
  14. When you return to the CRM Adapter Settings you can click on the Test button to make sure that everything is fine.
  15. And then click on the Apply button to make sure that your changes are saved.

Configuring The AX To CRM Integration

Now that we have our adapters we can create our integration between Dynamics AX and CRM.

  1. To do this, return to the Connector For Dynamics AX and click on the New Integration button in the menu bar.
  2. This will open up the New Integration dialog box.
  3. Although you can configure the integration by hand, it’s easier to select a template from the dropdown box.
  4. This will set the first adapter to Dynamics AX, and the second to CRM. Select the Company that you want to synchronize with from the first applications dropdown list.
  5. Then select your CRM organization from the Company within the second application.
  6. After you have done that, just click on the Create button.

All the heavy lifting will be done by the system and when you return to the Connector page you will see that it has all of the default Maps already created for you.

How cool is that?

Synchronizing The CRM Picklists

Now we can start using the connector. But before we start synchronizing the main tables, we need to get AX and CRM in sync by synchronizing the Picklists which contain all of the codes like Customer Group etc. If we don’t do this then the main synchronization will fail because of codes not being available.

  1. To do this, list click on the Enumerated Values To Picklist map and then click on the Activate button.
  2. Note: Once you activate a map, you can deactivate it at any time just by clicking on the Deactivate button.
  3. Now click on the Save button in the menu bar.

After a couple of seconds the integration will kick off and you will see the connector discover the changes within AX that need to be updated in CRM.

It will run for a second and then return to idle mode after pushing the data to CRM.

Enabling The Synchronization Maps

Now we can start synchronizing all of the important data. As an example we can synchronize all of the customer data from Dynamics AX over to CRM.

  1. To do this, Select the Customer Service To Account map and then click on the Activate button.
  2. This will now run every 45 seconds to check for new Customer records.
  3. All we need to do to see this in action is to create a new Customer record in AX.
  4. When we return to the Connector we can watch the map for updates.
  5. After a few seconds the map will be processed and the Connector will show that the record was found and updated.

If you look at CRM then you will see a new record has been created…

And all of the pertinent AX data has been moved over as well.

That is too cool!


The Dynamics Connector is a great tool and also is already configured to allow you to share data between AX and CRM without having to buy additional integration services or software and is a breeze to set up.

What are you waiting for? Set yours up already!

More Information

To view the original post and also to download the full PDF walkthrough click on the following link:

Share this post

← Older Post Newer Post →

Leave a comment

Please note, comments must be approved before they are published.