Microsoft Dynamics 365
Overview
Microsoft Dynamics 365 is a cloud-based business applications platform that combines CRM and ERP capabilities. Integrate with Dynamics 365 to sync sales, customer, and operational data with Suger.
Org-Level vs User-Level
Org-Level: Uses Azure AD app registration with client credentials flow for organization-wide access. Best for backend integrations and automated workflows.
User-Level: Uses OAuth2.0 authorization code flow for individual user access. Each user authenticates via Microsoft OAuth to access their own Dynamics 365 data.
Create Integration (Org-Level)
Org-level integration uses Azure AD client credentials for application-level access. This is suitable for backend integrations that need to access data across the organization.
Prerequisites
- Dynamics 365 instance URL (e.g.,
https://yourorg.crm.dynamics.com) - Tenant ID from Azure AD
- Application User in Dynamics 365: Create an application user in Dynamics 365 linked to your Azure AD app registration. This application user will be used by Suger to access Dynamics 365 data via the Web API.
Create Application User in Dynamics 365
- In Dynamics 365, go to Settings > Security > Users
- Change the view to Application Users
- Click New and fill in the details:
- User Name: Enter a name (e.g.,
Suger Integration) - Application ID: Enter
1a00a839-496c-488d-a97a-4cdb171b747f - Display Name: Enter a display name (e.g.,
Suger Integration) - Email: Enter an email address (can be any valid email)
- User Name: Enter a name (e.g.,
- Click Save
- After saving, assign the appropriate security roles to the application user
Authenticate
- Navigate to Settings > Integrations
- Click Connect Dynamics 365
- Enter your Tenant ID and Instance URL
- Click Verify to test the connection
- Once verified, click Connect
Create User Integration
User-level integration uses OAuth2.0 authorization code flow. Each user authenticates via Microsoft OAuth to access their own Dynamics 365 data.
Prerequisites
- Dynamics 365 instance URL (provided before OAuth authorization)
Before OAuth Authorization
Before initiating the OAuth flow, you must provide your Dynamics 365 instance URL. This is required to construct the correct OAuth scopes and API endpoints.
Authenticate
-
Click
Connect Nowbutton in the User Integrations section -
Enter your Dynamics 365 Instance URL when prompted
-
You will be redirected to Microsoft for authentication
-
Sign in with your Microsoft credentials
-
Click Accept to grant Suger permission to access your Dynamics 365 data
-
After authorization, you will be redirected back to Suger
-
Verify the integration by clicking the Verify button
Edit Integration
For security purposes, editing an existing Microsoft Dynamics 365 integration is not allowed. The practical way is to delete it and then recreate it from the beginning.
Delete Integration
The Microsoft Dynamics 365 integration can be deleted like all other integrations. Once the deletion is triggered, all integration info including the credentials and access tokens will be deleted immediately and permanently from Suger.
- Org-Level: To completely delete the integration, please also delete the application user from Dynamics 365 and consider revoking the application permissions from Azure Active Directory.
- User-Level: Deleting the integration in Suger does not automatically revoke permissions granted in Microsoft. To fully disable access, the user must also revoke the application's permissions.
Steps to revoke Microsoft Dynamics 365 permissions (User-Level):
- Go to Microsoft Account → Privacy
- Select Apps and services
- Locate the Suger application that was granted Dynamics 365 access
- Click Remove these permissions
Supported Operations
| Operation | Org-Level | User-Level |
|---|---|---|
| Read Data | ✓ | ✓ |
| Write Data | ✓ | ✓ |
| Sync Data | - | - |
| Webhooks | - | - |
Note: Dynamics 365 integration does not support sync or webhooks at this time.