Dynamics CRM and AX – Integrated Together

by | Dec 18, 2014 | Dynamics AX, Dynamics CRM, Installation, Set Up

Your CRM and ERP systems don’t have to be their own silos – with the Connector for Microsoft Dynamics, you can connect your Dynamics CRM data to Dynamics AX, GP or NAV.  This gives you the ability to have visibility to your CRM customers in AX and your orders in CRM.  I discussed in an earlier blog article about which tool you should use for sales, so this article assumes you made the decision to put CRM and AX together.

Microsoft Dynamics CRM 2015 just came out, as did Dynamics AX 2012 R2 CU8 and both are available to be connected via the latest version of the Connector.  Let’s go through the steps to get them connected.  These instructions are assuming you are using CRM 2013 Online or higher.

Installing the Connector

  1. First things first – you need the software.  It’s available at no charge for customers who have access to CustomerSource.  You can download the software directly from the Connector page on CustomerSource: https://mbs.microsoft.com/customersource/northamerica/Connector
  2. Determine where you want to install the Connector – depending on integration traffic, you may want to put it on a separate machine within the same network as your AX instance.  If you have minimal traffic, you can likely put it on your AX box.  Talk to your partner or technical specialist about the expected load for their opinion.
  3. Download the latest version of the Connector Tool which, as of this writing, is 3.4.304.1 or V3 CU4.
  4. If you don’t have it already, you need .NET Framework 4.5.2.  Install that before the Connector Tool.
  5. If you are on Dynamics AX 2012 R2 CU6 or earlier, you’ll need to download and install an XPO into your Dynamics AX instance, so grab that while you’re on CustomerSource.
  6. Install the Connector which places a new database (default MSDI) into your system.  The Connector now supports SQL Server 2014.

Configuring the Connector

Installing the Connector is the easy part – here comes the fun:

  1. When you open the Connector, you’ll see there are options to set up 4 different adapters.  You’ll need 2 of them to make this work.  Let’s set up the Dynamics AX 2012 and CRM 2011 (or later) adapters.
  2. For the Dynamics AX adapter, click on that option on the left side of the screen.  Enter the AOS Server Name, the document and services port and your integration account with domain, username and password.  Test the settings to make sure they work, then click “Apply”
  3. If you want to set up more integrations than the default, you’ll want to click the “Configure Microsoft Dynamics AX 2012” utility.  In that utility, additional document services are exposed that you can use when you create a new map (integration field mapping).  If you want to use the Project integration, you’ll want to configure those document services.
  4. Before you set up the Dynamics CRM adapter, make sure you have a service account set up in Dynamics CRM that has the System Customizer role (not the System Administrator role).
  5. For the Dynamics CRM adapter, click on Microsoft Dynamics CRM 2011 on the left if you are on CRM 2011 or higher or Dynamics CRM Online.  Enter the username (with domain) for the integration account you just set up and its password.  For the Discovery Service, go to your Dynamics CRM instance and navigate to Settings > Customizations and click on the Developer Resources tab.  Under there, you’ll see a few different service locations, copy the URL to the Discovery Service and paste it into the Adapter setup.  Click Test Settings to make sure it works and click “Apply”
  6. Before this will work, you’ll need to click the “Configure Microsoft Dynamics CRM” utility.  It will run through a number of steps including deploying a Solution to your Dynamics CRM instance.  (It’s nice that it does that without you having to do it manually).  Don’t be alarmed if you get a few errors during the process – they haven’t presented a problem for me in the past.

Building an Integration

You’ll find out pretty quickly if the configuration didn’t work – when you click “New Integration” you’ll see a drop-down for the Application 1 and Application 2 and Dynamics AX and Dynamics CRM should be available in those drop-downs.  If they aren’t, the adapter wasn’t fully set up.

    1. Click on New Integration and I recommend you choose “From template” and Dynamics AX 2012/Dynamics CRM 2011.  Choose Dynamics AX 2012 as Application 1 and choose the Company you want to integrate.  Choose Dynamics CRM 2011 as Application 2 and the Company you want to integrate.
      1. Note – you have to build an integration between each separate combination of companies you want to integrate
    2. The default integrations are now set up and will look like this:

Dynamics AX and CRM Integrations

  1. You’ll notice all of the Maps have a status of “Inactive”.  No integrations are turned on by default, so you can choose which ones you want to configure.  You’ll also notice that the default is to have it run every 45 seconds.  This is all configurable.

Let’s Run an Integration

Now that we have all the building blocks in place, we have a few more steps to go through to make the integration work.  In this illustration, I’m going to show how to integrate an Account from CRM to AX without any customized fields (baby steps).

  1. The first thing you need to do is turn on the Map that integrates Enumerated Values to Picklists.  Click to Activate it and click Save. You can confirm it ran by clicking the “View log for this map”.  You only need to run this once.
  2. Next you need to integrate your users between the two systems.  To do this, you need to activate the “Employees Service to ERP System User” as that will port the AX users into CRM and allow you to associate a CRM user with an AX user.  Turn that on and set the appropriate frequency (I think that one can run less often unless you immediately need to activate the integration when a new employee is entered into AX.)
  3. Once you’ve run that map, you’ll need to go into Dynamics CRM and look at the User record where there will be a new field called “ERP System User”.  For each CRM user, you’ll need to select the appropriate ERP System User to have the data flow over to AX as that particular user.  If you want, you could map everything over to one ERP system user if you’re not concerned about the CRM source user when you get to AX.
  4. Next you’ll need to map unit schedules and unit groups, currencies, items and products through similar steps to what was done above.
  5. OK – we’re finally ready to integrate customers.  Click on “Account to Customer Service” and click Active.  I left the other defaults the same including all of the field mappings.
  6. CRM accounts don’t automatically flow over to AX – you actually need to “Submit” them into the queue where they get picked up and moved over.
  7. In CRM, I am selecting an account and making sure I have the new “Category” field completed.  Once the account looks the way I’d like, I click on “Submit” so it’s queued to go into AX.

Design Considerations

If your goal is to keep the leads, opportunities, customers and contacts in CRM, the default mapping will be a good solution. The default mapping is set up to make your CRM system the Informational/Sales system and your AX system to be the Transactional/Invoicing system. Because of that the Quote entity doesn’t integrate by default, so the transition in the sales process happens at Order time. Orders have a two way integration between Dynamics CRM and Dynamics AX and invoices are integrated back from AX to CRM. When AX2012 R2CU7 came out, they added an integration between CRM and AX at the project level, so if you’re a professional services company, that option may be something you want to take advantage of.

If you’d like to make customizations at the field level on the mapped entity, those changes are pretty straight-forward. On the maps, you select the field from the source system and map it to the new system. This applies to out-of-the-box attributes as well as custom attributes you may create. These changes can be done by system analysts.

If you’d like to make new entities or record types available between the two systems, you’ll need to do mapping between your CRM system and a custom service from Dynamics AX. This is more complicated as you will need knowledge of how to configure a service in AX to expose the fields to the Connector. Honestly, it’s very straight-forward on the CRM side, but you will need a technical/development resource to assist with the service creation on the Dynamics AX side. Once you’re able to connect the CRM entity to the AX service, the mapping process is similar to what it would take to do to map attributes of existing, mapped entities.

Resources

There is a lot more you can read about how to get the integration running.  Here’s a list of what I find to be the best resources available:

Best of luck with your CRM to AX integration – let us know if we can be of any help.

AX and CRM Integration

Related Posts

  • Over on the AX Support site on MSDN, Daniel Durrer has taken the time to keep tabs on the latest builds for Microsoft Dynamics AX 4.0, 2009 and 2012.  I…

  • Filter - All Dynamics AX Dynamics GP Dynamics NAV Dynamics 365 CRM Dynamics 365 Business Central Dynamics 365 Finance and Operations News

  • There have been quite a few sneak-peeks at how Dynamics would work on the new Windows 8 interface, and now the CRM team has come out with a cool video…

3 Comments

  1. sudam

    thanks for sharing this information.

  2. Anand

    Is there any connectors between Dynamics 365 CRM and GP 2016?

Trackbacks/Pingbacks

  1. Dynamics CRM and AX – Integrated Together – 12/18, Stoneridge Software | - […] Continue reading on Source Blog […]

Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events

july

16jul11:00 am12:00 pmConfab with Stoneridge - Livestream - Business Intelligence Power Hour

22jul10:00 am10:30 amOn the Job with Dynamics 365 - Manufacturing Material Handler

22jul12:00 pm1:00 pmImprove Field Service Delivery and Increase Customer Satisfaction

30jul11:00 am12:00 pmConfab with Stoneridge - Livestream - Power Apps Power Hour

august

03aug(aug 3)8:00 am07(aug 7)5:00 pmMicrosoft Dynamics GP Core Financials Bootcamp

05aug10:00 am10:30 amOn the Job with Dynamics 365 - Manufacturing Shipping / Receiving Department

05aug12:00 pm1:00 pmHow Ag Retailers Can Simplify Processing Equity Payments using Levridge

12aug10:00 am10:30 amWhy Levridge Grain? How to Achieve Efficient and Accurate Scale Tickets

12aug12:00 pm1:00 pmThe Three Paths to Dynamics 365 Finance and Supply Chain from Dynamics AX

13aug11:00 am12:00 pmConfab with Stoneridge - Livestream - Dynamics 365 2020 Wave 2 Preview

19aug10:00 am11:00 amWhat is Levridge? An Overview of the Ultimate Ag Solution

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X