Dynamics 365 CRM integration through the Dataverse API
Dynamics 365 CRM apps store their data in Dataverse, so integration runs through the Dataverse Web API (OData v4), the SDK, webhooks, Azure Service Bus endpoints and Power Platform connectors. The common jobs are syncing accounts and orders with an ERP, feeding marketing and telephony tools, and exposing customer data to portals, and each needs a clear owner per record type plus respect for API limits.
When this makes sense
- Sales needs ERP credit limits, orders and invoices visible on the account in Dynamics 365
- Won opportunities should create sales orders in Business Central, Finance and Operations, SAP, NetSuite or another ERP
- You use an external marketing, telephony or ecommerce platform that must sync with CRM
- Integrations hit service protection limits or fail during bulk updates
- You are evaluating Customer Insights - Journeys versus a third-party marketing tool
What the engagement covers
Dataverse Web API
OData v4 REST operations, batch requests, alternate keys for upserts, change tracking for delta sync and FetchXML queries where needed.
Event-driven integration
Webhooks and Azure Service Bus service endpoints registered with the Plug-in Registration Tool, plus Dataverse business events.
Server-side logic
C# plug-ins and custom APIs for validation and transformation that must run inside the Dataverse transaction.
ERP integration
Dual-write with Finance and Operations, the Business Central integration with Dataverse, or middleware flows for non-Microsoft ERPs, covering accounts, products, prices, orders and invoices.
Marketing integration
Customer Insights - Journeys uses Dataverse data natively; third-party tools need contact, consent and engagement sync with care for consent fields and duplicates.
Virtual tables and analytics
Virtual tables to surface external data without copying it, and Synapse Link for Dataverse for analytics exports.
Limits and resilience
Handle service protection API limits with retry-after logic, use batching wisely and monitor Dataverse capacity growth from integration logs.
How it runs
- 1
Map data ownership (1-2 weeks)
- Define the master system per entity
- List flows, triggers and volumes
- Identify keys for matching records
- 2
Design (1-3 weeks)
- Choose API, event or connector per flow
- Design mappings and alternate keys
- Plan error handling and retries
- 3
Build and test (2-8 weeks)
- Build integrations and plug-ins
- Load test against API limits
- Test conflict and failure scenarios
- 4
Operate (Ongoing)
- Monitor failures and latency
- Review storage and API usage
- Include flows in release wave regression
What you get
- Data ownership and flow map
- Interface specifications with mappings and keys
- Built integrations, plug-ins and registration settings
- Load and failure test results
- Monitoring and reprocessing runbook
What drives cost and effort
| Direction of sync | One-way feeds are simple; two-way sync needs conflict rules and more testing. |
| ERP platform | Microsoft ERPs have native options; other ERPs need middleware and custom mapping. |
| Volume and frequency | High-volume flows need batching and limit handling, adding design and testing effort. |
| Consent and privacy data | Marketing integrations must carry consent and preference data accurately, which adds rules and audits. |
| Existing middleware | Using an established iPaaS or Azure setup reduces build effort versus new tooling. |
Fixed-price interface
A defined flow such as won opportunity to ERP sales order.
Integration project on time and materials
Several systems connected during a CRM rollout.
Managed integration support
Ongoing monitoring and changes after go-live.
Questions to ask any Dynamics 365 CRM consultant
How will you handle Dataverse service protection limits?
Integrations that ignore limits fail during bulk updates or peak periods.
Which system owns each record type, and how are conflicts resolved?
Unclear ownership causes duplicates and overwrites.
When do you use plug-ins versus external middleware?
Plug-ins run in the transaction but are limited in duration; heavy work belongs outside.
How do you carry consent data into marketing tools?
Incorrect consent sync creates compliance exposure.
How are failures surfaced to business users?
Silent failures leave sellers working with stale data.
Score candidate partners side by side with the free Implementation Partner Scorecard
Where these projects go wrong
Infinite update loops between systems
Use source flags, change tracking and filtering attributes on triggers.
Storage growth from logs and history
Set retention for integration logs and monitor capacity reports.
Duplicate contacts from marketing sync
Match on stable keys and enable duplicate detection rules.
Long-running plug-ins timing out
Move heavy processing to asynchronous plug-ins or Azure Functions.
If your ERP is Business Central or Finance and Operations, start with Microsoft's native Dataverse integration or dual-write before building custom middleware. If you only need to view ERP data in CRM, a virtual table or embedded report may be enough. Netray builds these integrations and uses AI agents to generate mappings and test payloads, but native options often win on cost.
Frequently asked questions
What API does Dynamics 365 CRM use?
The Dataverse Web API, an OData v4 REST API secured with Microsoft Entra ID. .NET applications can also use the Dataverse SDK, and Power Automate offers a Dataverse connector.
What are the strengths and weaknesses of Dynamics 365 marketing and CRM integration?
Customer Insights - Journeys shares Dataverse with Sales, so contacts, leads and consent are native with no sync to maintain, which is its main strength. Weaknesses include licensing and capacity cost, a learning curve, and less flexibility than some specialist marketing tools for complex campaigns.
How do we connect Dynamics CRM to a non-Microsoft ERP?
Typically through middleware such as Logic Apps or an iPaaS, using the Dataverse Web API on one side and the ERP's APIs on the other. Define keys, ownership and order of operations for accounts, products and orders.
What are Dataverse service protection limits?
They are per-user limits on request count, execution time and concurrent requests over a sliding window. When exceeded, the API returns a 429 response with a retry-after value that integrations must respect.
Can Dataverse push changes to other systems?
Yes, through webhooks, Azure Service Bus endpoints, business events and Power Automate triggers, which avoids constant polling.