Microsoft Dynamics
Overview
The Dynamics Integration connects IFS Loops to your Microsoft Dynamics environment to pull tickets, customer details, and knowledge articles. It uses OAuth authentication via an Azure app registration, with credentials generated in the Azure Portal and entered during setup in IFS Loops.
Prerequisites
Before adding the Dynamics integration in IFS Loops, you must create an OAuth application in the Microsoft Azure Portal.
The Client ID and Client Secret generated from this step will be required while adding the integration.
Setup instructions
Create OAuth App in Azure
Go to the Microsoft Azure Portal and sign in using a tenant admin account.
From the home page, click App registrations, then click New registration.
Fill in the following details:
Name — Enter an application name.
Supported account type — Select Multiple Entra ID tenants and allow all tenants.
Redirect URL — Select platform as Web. Based on your cluster, enter the appropriate redirect URL:
Click Register.
Add API Permissions
Go to API Permissions.
Click Add a permission.
Select Dynamics CRM.
Choose Delegated Permission → user_impersonation and click Add permissions.
Grant Admin Consent
Click Grant admin consent and ensure the status shows Granted.
Create Client Secret
Go to Certificates & secrets.
Click New client secret.
Add a Description and Expiry date (as per your preference).
Click Add.
Copy the Client Secret Value (shown only once).
Once the client secret expires, you will need to repeat this step to generate a new client secret and update it in the IFS Loops integration authentication page.
Add Dynamics Integration in IFS Loops
Log in to the IFS Loops platform using your credentials.
Navigate to the Connectors section from the sidebar.
Click on the Add Integration button.
Choose Dynamics from the list.
Enter a unique Integration Name and select the required capability:
Helpdesk — To pull ticket details.
CRM — To pull customer details.
Content Management — To pull knowledge articles.
Click on the Next button.
Enter the following authentication details:
Domain — From the Dynamics URL, extract the domain.
For example, from
https://orgb713773c.crm.dynamics.com, enterorgb713773c.crm.
Client ID and Client Secret — Enter the Client ID and Client Secret copied from Azure (Section 1).
App ID — Extract the App ID from the Dynamics URL when you are logged into Dynamics.
For example, from
https://orgb713773c.crm8.dynamics.com/main.aspx?appid=3f82b518-7c43-f011-877a-002248d64834&..., the App ID is3f82b518-7c43-f011-877a-002248d64834.
Click on the Connect button.
A login screen will appear. Sign in using a tenant admin account and grant the required permissions.
On success, you will see a popup: "Integration Configured Successfully"
Setup Webhook
Webhook setup is required to receive live updates (such as case creation, updates, and comments) from Dynamics in IFS Loops. This setup is applicable only for the Helpdesk capability.
If you have not installed the Plugin Registration Tool, download it using PowerShell.
Open PowerShell.
Run the following script:
After execution, the tool will be available in the same directory where you ran the script.
Open Plugin Registration Tool
Navigate to the directory path and open the PluginRegistration folder.
Open the PluginRegistration application.
Click on Create New Connection.
Sign in using admin credentials.
Register Webhook
Click on Register → Register New Webhook.
Enter the following details:
Name — Any meaningful name.
Endpoint URL — Copy from the IFS Loops Dynamics integration configuration page.
Under HTTP Headers, add:
Key:
clientValue:
theLoopsHeader keys and values are case-sensitive. Ensure they are entered exactly as shown.
Click Save.
Register Step for Case Creation
Right-click on the created webhook → Register New Step.
Enter:
Message: Create
Primary Entity: incident
Execution Mode: Asynchronous
Click Register New Step.
Register Step for Case Update
Right-click on the created webhook → Register New Step.
Enter:
Message: Update
Primary Entity: incident
Execution Mode: Asynchronous
Click Register New Step.
Register Step for Annotation Creation
Right-click on the created webhook → Register New Step.
Enter:
Message: Create
Primary Entity: annotation
Execution Mode: Asynchronous
Click Register New Step.
Register Step for Annotation Update
Right-click on the created webhook → Register New Step.
Enter:
Message: Update
Primary Entity: annotation
Execution Mode: Asynchronous
Click Register New Step.
Verify Setup
Ensure all steps are successfully registered under the webhook.
Final setup should show all created steps linked to the webhook.
Use the Dynamics Integration in IFS Loops
Once the integration is added, follow the steps below:
Go to your Dynamics integration.
Navigate to the Jobs / Data Ingestion tab.
If the capability is Helpdesk or CRM, select a date range to pull the data. For Content Management, a date range is not required.
Select Ingress Type as Full Ingress.
Click on Start Ingress.
After a few minutes, check the job status to confirm it is successful.
Regenerate Token
Go to your Dynamics integration. Click on the Edit button.
Navigate to the Authentication tab.
Click on the Regenerate Token button.
A login screen will appear. Log in using your credentials.
On success, you will see a popup: "Integration updated successfully".
Last updated
Was this helpful?