integration between Microsoft Dynamics 365 CRM and Elastix

Integration between Microsoft Dynamics 365 and Elastix

You asked for it! So here it is, we’re more than happy to announce the integration between Microsoft Dynamics 365 CRM and Elastix!

Microsoft Dynamics 365 Integration

Out of the box, Microsoft Dynamics 365 and Elastix can be integrated from the Management Console without writing a complicated script, having to do anything on your clients or downloading a plugin. With this CRM integration, when a call comes in, the web client will show the contact name and a link icon to the corresponding contact in the CRM. So, how do you get started? Just follow the steps below.

Microsoft Dynamics 365 Integration (Online)

  1. Login to your Microsoft Dynamics 365 Online account, go to Azure Portal > Azure Active Directory > App registrations > New application registration and create the app that will be used for authentication.
  2. New Application registration

  3. Enter “3CX Server Side” for the Name, Select “Native” for the Application type, and enter “https://MY_URL/api/oauth2crm” for the Redirect URI, where you need to replace MY_URL with the URL you use to access the Managemente Console and click on Create.
  4. Create application

  5. Take note of the Application ID, as we will need it on a second stage.
  6. Application ID

  7. Click on Settings > Required permissions > Add.
  8. Required permissions

  9. Click on “Select an API”, choose the Dynamics CRM Online API and click the Select button.
  10. Select an API

  11. Check all the permissions from the following screen and press the Select button.
  12. Enable access to Microsoft Dynamics 365 Integration

  13. The application is created and ready to use. However, there is one additional step we need to perform, in order to get the Tenant ID, which will be needed later. Go to Azure Active Directory > App registrations > and click the Endpoints button.
  14. Endpoints button

  15. From any endpoint, take note of the Tenant part. For example, the “OAUTH 2.0 AUTHORIZATION ENDPOINT” looks like this: https://login.microsoftonline.com/dedc4ebb-183f-42e2-9192-92eb425a027d/oauth2/authorize
  16. The Tenant ID in that case is “dedc4ebb-183f-42e2-9192-92eb425a027d”.

CRM Server Side Integration

  1. Go to Management Console > Settings > CRM Integration > Server Side tab.
  2. Select Microsoft Dynamics 365 from the dropdown list.
  3. CRM Provider Configuration

  4. Enter the values for the Application ID and Tenant, taken from the previous steps and the URL you use to access your Microsoft Dynamics 365 Online account.
  5. Authorize access to the app we’ve just created.
  6. Authorize application

  7. Setup is ready, press OK to save the changes.
  8. You can test the integration using the Test button at the top of this configuration page.