Introduction
In Dynamics 365 CRM or Power Platform, an Application Id is required (i.e., oAuth) to authenticate. Here we are going to register a new App in Azure Active Directory so that from Dynamics CRM we can use this app id in the applications. The most common scenario is to have this app id to connect from server-side code or connect through xrm toolbox with this App ID or through Post Man tool to connect to Dynamics CRM to test Dynamics 365 Web API Requests.
Step 1 - XRM
Login to the required Dynamics CRM/ Power Apps environment using URL make.powerapps.com by providing username and password and go to solutions as shown in the below figure.
Step 2
After step 1, now login to the Azure portal by using URL portal.azure.com with the same D365 CRM Trial or normal environment in another tab as shown in the below figure.
Step 3
After step 2, click on the portal menu to the left in the above screen and select Azure Active Directory as shown in the below figure.
Step 4
After step 3, in the Azure Active Directory under the Manage section select App Registrations and click on New Registration as shown in the below figure.
Step 5
After step 4, provide the name of the app and select appropriate account types, here in this example I have selected Accounts in any organizational directory and click on Register as shown in the below figure.
Step 6
After step 5, App will be registered, copy the Application (client) ID which is generated, and keep it to use in applications or in PostMan application as shown in the below figure.
Note
- Please make sure to login with your Dynamics environment URL first.
- Log in to the Azure portal with the same office 365 tenant of Dynamics CRM.
- Select the appropriate account type as specified in Step 5.
- Don’t forget to copy App Id mentioned in Step 6.
Conclusion
In this way, one can easily register an app in Azure Active Directory with Dynamics CRM Trial Environment or Office Tenant.