RhinoAgents × Microsoft Dynamics 365
Connect AI Employees directly to Dynamics 365 Business Central, Finance & Operations (F&O), Sales, and Customer Service via Microsoft Entra ID OAuth 2.0, Dataverse Web API v9.2, and OData v4—with least-privilege RBAC, immutable audit logs, and human-in-the-loop approvals.
How RhinoAgents Connects Safely to Dynamics 365
AI Employees never connect directly to underlying SQL tables. All reads and writes go through Microsoft's official Dataverse Web API, Business Central OData v4, or F&O Data Entities under a scoped Application User.
Pattern A — On-Demand API Agent
Triggered by an email, chat request, or CRM form. The AI Employee queries Dynamics 365 via OData/Dataverse and returns validated answers or creates drafts.
Pattern B — Event-Driven Agent
Dataverse Webhooks or Azure Service Bus events (new PO, invoice variance, opportunity stage change) automatically trigger multi-step reconciliation workflows.
Pattern C — HITL Approval Agent
Before posting a high-value vendor invoice or journal entry in Dynamics, the AI Employee sends an Adaptive Card to Teams/Slack for manager sign-off.
Step-by-Step Entra ID OAuth 2.0 Setup
Configure a dedicated Service Principal in Microsoft Entra ID so RhinoAgents authenticates via OAuth 2.0 Client Credentials with automatic token rotation.
Create Entra ID App Registration
- Open Azure Portal → Microsoft Entra ID → App registrations → New registration.
- Name it
RhinoAgents-Dynamics-Connector(Single Tenant). - Copy the Application (client) ID and Directory (tenant) ID from Overview.
- Go to Certificates & secrets → New client secret and copy the secret value.
Grant Dynamics API Scopes
- Navigate to API permissions → Add a permission.
- For Dataverse / Sales / Customer Service / F&O: select Dynamics CRM →
user_impersonation. - For Business Central: select Dynamics 365 Business Central →
API.ReadWrite.All(Application). - Click Grant admin consent for your organization.
Map Application User & Security Role
- In Power Platform Admin Center → Environments → Settings → Application users, click New app user.
- Select your Entra ID app and assign a custom least-privilege Security Role scoped only to required tables.
- In Business Central, search Microsoft Entra Applications, add the Client ID, and assign scoped Permission Sets.
Verify Live Connection & Guardrails
- In RhinoAgents, open Integrations → Microsoft Dynamics 365 → Connect.
- Enter
tenant_id,client_id,client_secret, andenvironment_url. - Click Verify Connection (checks
/api/data/v9.2/WhoAmIor BC/companies). - Enable spend limits and Teams/Slack approval gates on write actions.
| Parameter | Example Format | Purpose |
|---|---|---|
| tenant_id | 72f988bf-86f1-41af-91ab-2d7cd011db47 | Microsoft Entra ID Directory (tenant) UUID |
| client_id | a1b2c3d4-5678-90ef-1234-567890abcdef | App Registration Application (client) ID |
| client_secret | •••••••••••• (Vault Encrypted) | Client Secret for OAuth 2.0 token exchange |
| environment_url | https://yourorg.crm.dynamics.com | Dataverse / F&O base URL or BC API environment |
| company_id | CRONUS USA, Inc. | Optional: Business Central multi-company routing ID |
40+ Supported Dynamics 365 Tools & Triggers
Every Dynamics 365 operation is exposed as a typed, schema-validated tool with role-based access control and immutable audit logging.
{
"tool": "dynamics365.validate_three_way_match",
"input": { "po_number": "PO-10482", "invoice_id": "INV-8841", "tolerance_pct": 0.5 },
"result": {
"status": "VARIANCE_DETECTED",
"po_total": 14050.00,
"invoice_total": 14500.00,
"variance": 450.00,
"next_step": "PAUSED_FOR_HUMAN_APPROVAL",
"approval_channel": "Microsoft Teams #finance-approvals"
}
}
Ready-to-Use Dynamics 365 AI Employees
AI AP Invoice Specialist
Reads incoming PDFs, validates POs in Business Central/F&O, and flags exceptions in Teams.
Use Template →AI Sales SDR
Qualifies inbound leads, creates Dataverse opportunities, books meetings, and logs notes.
Use Template →AI Procurement Assistant
Monitors low-stock alerts, collects supplier quotes, and drafts POs for manager sign-off.
Use Template →AI Support Executive
Looks up Dynamics order status and case history to resolve tickets with zero manual lookup.
Use Template →Microsoft Dynamics 365 Integration FAQ
Which Dynamics 365 editions are supported?
Dynamics 365 Business Central (Cloud & API-enabled On-Premises), Finance & Operations (F&O), Dynamics 365 Sales, Customer Service, and custom Power Platform Dataverse tables.
How are write actions & financial postings protected?
You can restrict the Entra ID Application User to read-only tables, enforce spend-limit guardrails, and require one-click Human-in-the-Loop approval in Microsoft Teams or Slack before posting invoices or journals.
Can RhinoAgents connect to custom Dataverse entities?
Yes. Using query_odata_entity(), execute_fetchxml_query(), and upsert_custom_table_row(), AI Employees work with any custom table in your environment.
Can we test in a Dynamics Sandbox first?
Yes. Connect your Dynamics Sandbox environment URL first, run pre-production evaluation suites on test POs and invoices, and promote to your production environment with zero downtime.
Build & Test Your Dynamics AI Employee Today.
Start on the RhinoAgents platform with credits, or have our engineering team build, integrate, and manage your Dynamics 365 AI workflows end-to-end.