Microsoft Dynamics CRM

Reading time: 1 minute

Mautic - Microsoft Dynamics CRM bi-directional plugin

This plugin can push/pull contacts to and from Dynamics CRM when a contact makes some action and when manually executing the sync leads command.

If you don't have a Dynamics CRM account, follow the instructions below to create a Trial Dynamics 365 account.

Configure the Dynamics CRM plugin

  1. Insert your Dynamics CRM URL, the Application ID and Secret into the Mautic Dynamics integration plugin and authorize it. Set the Publish switch to Yes. Save.

    Dynamics CRM Plugin configuration

  2. Select the features you like in the Features tab. Push contacts to this integration checkbox is checked by default.

  3. Configure the field mapping.

  4. Save the plugin configuration.

Set Up Dynamics 365

How to create a Dynamics 365 Trial account

  1. Go to the Dynamics 365 Trial website


Set Up Azure

  1. Go to the Azure Portal

  2. Log in with your account


  3. Go to Azure Active Directory


  4. Add a new Application Registration


  5. Fill in the CRM Application information


  6. Click on Create

  7. Click on the Application you just created


  8. You will use the Application ID when configuring the plugin in Mautic


  9. Add a new Key. Use any name, click on save and copy the value. You will use it as the plugin secret in Mautic.


  10. Configure the reply URLs using the callbacks from the plugin settings in Mautic. Click Save


  11. Configure the Required Permissions. Click on Add


  12. Add Dynamics CRM Online Api Access. Click Select


  13. Enable Dynamics CRM access for the users. Click Select and then click Done


  14. Activate the permissions by clicking "Grant Permissions". Click Yes


  15. Go back to Mautic

  16. Authorize the plugin


  17. Use your account to authenticate:


Test the plugin

Follow these steps to test the integration.

  1. The plugin is ready. You can test using "Push to Integration" form and campaign actions.
  2. You can also test by executing the command: php bin/console mautic:integration:fetchleads -i Dynamics

Found errors? Think you can improve this documentation? edit this page