Authenticating with the Dynamics CRM Node
How to acquire credentials for the Dynamics CRM Node Connection
Step 1: Sign in to the Azure Portal Navigate to the Azure Portal (https://portal.azure.com) and sign in with your Azure account credentials.
Step 2: Create a new Azure App Registration
- In the Azure Portal, click on "Azure Active Directory" in the left-hand navigation pane.
- Select "App registrations" and click on the "New registration" button.
- Provide a meaningful name for your app registration.
- For Supported account types, choose "Accounts in this organizational directory only".
- You can leave the Redirect URI blank.
- Click on the "Register" button to create the app registration.
Step 3: Configure API permissions
- In the app registration's overview page, click on "API permissions" in the left-hand navigation pane.
- Click on the "Add a permission" button.
- Select "Microsoft APIs" and then choose "Dynamics CRM".
- Under permission choose "user_impersonation".
- Click on the "Add permissions" button to save the changes.
Step 4: Generate a client secret
- In the app registration's overview page, click on "Certificates & secrets" in the left-hand navigation pane.
- Under the "Client secrets" section, click on the "New client secret" button.
- Provide a description for the client secret, choose an expiration period, and click on the "Add" button.
- Copy the generated client secret value. Note: This value will not be visible again, so make sure to store it securely.
Step 5: Retrieve necessary information
- Make a note of the following details from the app registration's overview page:
- "Application (client) ID": This is the unique identifier for your app registration.
Step 6: Authorize the registered app in Dynamics 365
- Open a web browser and navigate to https://admin.powerplatform.microsoft.com/home.
- Once logged in, click on "Environments" in the left-hand menu.
- Choose the environment in which you want to authorize the registered app.
- At the top of the screen, click on "Settings" (not the left-hand menu).
- Expand the "Users + Permissions" section.
- Click on "Application Users" from the dropdown menu.
- On the Application Users page, click on the "New app user" button.
- In the "Add Application User" window, click on "Add an app" to select the registered app you created earlier.
- Choose the appropriate app from the list provided and click "Add."
- Next, select the desired business unit for the app user.
- Choose the appropriate security role for the app user, such as "System Administrator" or any other role that suits your requirements.
- Finally, click on the "Create" button to authorize the registered app in Dynamics 365.
Step 7: Create and populate the Flowgear Dynamics 365 connection.
- Create a new connection.
- Place the base url for your Dynamics environment in the Url property.
- Place the Application ID you made note of in ClientId
- Place the secret value you saved in ClientSecret