Connecting to Microsoft Dynamics CRM involves several steps to ensure a secure and reliable connection. Follow the guide below to successfully set up the connection.
Before you begin, make sure you have the following prerequisites in place:
Microsoft Azure Account: You need access to a Microsoft Azure account with the necessary permissions to create and manage applications.
Access to Your CRM Instance: Ensure you have access to the Microsoft Dynamics CRM instance you intend to connect to.
Go to Azure Portal and log in using your Microsoft credentials.
Select App registrations in the Azure Portal.
Click on New registration.
Fill in the following information:
https://your-tenant-address/callback/oauth2
.Click on API Permissions.
Click Add a permission.
Search for and select Dynamics CRM.
Check the user_impersonation checkbox and click Add permissions.
Click Grant admin consent and confirm by clicking Yes.
Click on Certificates & secrets.
Click New client secret.
Create a new credential on elastic.io platform for connecting to Microsoft Dynamics CRM.
https://login.windows.net/common/oauth2/authorize?resource={ URL encoded URL of CRM instance }
. For example, if your CRM instance URL is https://orgfb974624.crm4.dynamics.com/
, the encoded URL becomes https%3A%2F%2Forgfb974624.crm4.dynamics.com%2F
.https://login.windows.net/common/oauth2/token
.That’s it! You’ve successfully configured the connection to Microsoft Dynamics CRM using OAuth. Make sure to test the connection on your platform to ensure it’s working as expected.
Warning: To maintain a smooth experience, we recommend reusing stored credentials where possible. Duplicating secrets across OAuth clients can result in errors and complications.
Click here to learn more about the elastic.io iPaaS