Configure Connection
Microsoft Dynamics 365 guide
Follow this focused guide to configure and validate Microsoft Dynamics 365 in NIM.
You need access to create an application registration in Microsoft Entra ID and an application user with the appropriate security role in the target Dynamics 365 environment.
This connector uses an Entra application registration and certificate authentication. Keep the private-key .pfx certificate secure.
Create an application registration
- Open the Azure portal and go to Microsoft Entra ID > App registrations.
- Select New registration, enter a descriptive name such as
NIM Dynamics 365, and select Register. - On the application Overview page, record the Application (client) ID and Directory (tenant) ID. You will enter both values in NIM.
Create and upload a certificate
- Create a certificate using your organization’s approved certificate process. Export both formats:
- An X.509 public certificate in
.cerformat. - A password-protected certificate with its private key in
.pfxformat.
- An X.509 public certificate in
- In the Entra application registration, open Certificates & secrets and select Upload certificate. Upload the
.cerfile. - In NIM, go to Settings > Certificates, select Add a certificate, and upload the
.pfxfile.
The .pfx file contains the private key used by NIM. Store it only in approved locations, restrict access to it, and plan to replace it before it expires.
Grant Dynamics 365 API access
- Return to the Entra application registration and open API permissions.
- Select Add a permission > Dynamics CRM.
- Under Delegated permissions, select
user_impersonation. - Select Grant admin consent and confirm the action.
For entity and API behavior, see the Microsoft Dynamics 365 Web API entity reference.
Add the application user to Dynamics 365
- Open the Power Platform admin center and select the environment NIM will access.
- Go to Settings > Users + permissions > Application users.
- Select New app user, then select the Entra application registration created above.
- Assign only the Dynamics 365 security roles needed for the tables and operations NIM will perform.
Configure and validate the NIM connection
- In NIM, open the Microsoft Dynamics 365 system and select the Connection tab.
- Enter the Application (client) ID and Directory (tenant) ID recorded earlier.
- Select the certificate uploaded to NIM, enter the Dynamics 365 environment URL, and save the connection.
- Collect the system and review the result. If collection fails, confirm the environment URL, certificate validity, API consent, and assigned Dynamics 365 security roles.