Connect Magento (Adobe Commerce) with Microsoft Dynamics CRM to sync customers, orders, and lead data, so Sales and Support work from one reliable profile.
Dynamics 365 Sales and Dynamics 365 Customer Service, Microsoft's CRM apps, store their data in Microsoft Dataverse, so a Magento (Adobe Commerce) integration reads and writes through the Dataverse Web API. Teams either use an integration platform with ready Magento 2 and Dynamics 365 steps, such as Workato, or build a custom sync that upserts contacts, accounts, and orders by alternate key from Magento events or scheduled REST pulls.
• Customer profiles are matched between Magento (Adobe Commerce) and Microsoft Dynamics CRM using email and/or external IDs, with conflict handling based on record ownership rules.
• New and updated customers are synced as deltas, mapping contact fields such as name, email, phone, customer group, and consent attributes to CRM contact and account entities.
• Orders are exported from Magento to Dynamics as order records with linked line items, totals, taxes, discounts, currency, and payment and shipping descriptors.
• Address data is mapped with separate billing and shipping structures, including region and country normalization to Dynamics lookups when available.
• Sync events are triggered by order placement and customer updates, with retry queues, idempotent processing, and timestamp-based watermarks to avoid duplicates.
• Errors and validation failures are logged with payload references, and failed records are routed for reprocessing once mapping or data issues are resolved.
.avif)
| Option | Type | Best for | Notes |
|---|---|---|---|
| Workato: Magento 2 and Microsoft Dynamics 365 | Integration platform | Teams that want event-driven and batch recipes without maintaining their own code | Workato lists Magento 2 triggers such as New or updated customer and New invoice, Dynamics 365 actions such as Create object, Update object, and their batch versions, and real-time Dynamics triggers such as New/updated object. |
| Custom sync on the Dataverse Web API | Custom API | Two-way sync, B2B account hierarchies, order lines with catalog products, and high volumes | Upsert with PATCH requests keyed on alternate keys such as the Magento customer ID, and pull Dynamics changes back with change tracking delta links. Default service protection limits are 6,000 requests and 20 minutes of execution time per user in a 5-minute window, and 52 concurrent requests, per web server. |
| Adobe I/O Events with an App Builder app | Custom API | Adobe Commerce stores that want order and customer events pushed out instead of polling | Commerce sends events to Adobe I/O Events, which routes them to an App Builder application that can call Dataverse. Processors can add custom fields to an event payload; they run in the event_data_batch_send cron job. |
| Data | Direction | System of record | Timing |
|---|---|---|---|
| Registered customers | Magento to Dynamics (Contacts) | Magento for login and addresses, Dynamics for sales ownership | On save through events, or a scheduled delta pull |
| B2B companies | Magento to Dynamics (Accounts) | Agreed per field | On change |
| Orders and order lines | Magento to Dynamics (Orders and Order Products) | Magento | After the order is fully saved |
| Credit memos and refunds | Magento to Dynamics | Magento | When created |
| Products | Magento or ERP to the Dynamics product catalog | Magento or the ERP | Scheduled batch |
| Form leads | Magento to Dynamics (Leads) | Dynamics after creation | On submit |
| Sales-owned contact and account fields | Dynamics to Magento | Dynamics | Scheduled change tracking pull |
Dataverse GET, update, and upsert calls do not work when an alternate key value contains any of these characters: / < > * % & : \ ? +. A plus-addressed email such as [email protected] breaks a key built on email, so key on the numeric Magento customer ID and match email separately.
For Dataverse to block a duplicate on a Web API write, the request must send MSCRM.SuppressDuplicateDetection: false, and updates skip detection by default. Default rules exist only for accounts, contacts, and leads, so an integration that only POSTs can create a new contact on every retry. Upsert by alternate key instead.
Microsoft's docs say that when a Dynamics order has a price list, a catalog product that is not on that list causes an error, and catalog products also need a unit of measure. Write-in lines avoid the catalog but can only be added while the order's Prices Locked field is No.
On a scandiweb Magento project connected to Dynamics 365 on the ERP side, every new order added the delivery address to the customer record again. Compare an incoming address with the stored ones before creating another.
On the same project the team used the sales_order_save_commit_after event and extended its payload with billing and shipping addresses, discount, order-level tax, coupon code, store credit, and the payment reference. Plan those payload fields up front rather than querying Magento again for each order.
Dataverse counts limits per user per web server: by default 6,000 requests and 20 minutes of combined execution time in a 5-minute sliding window, and 52 concurrent requests. Microsoft says data load applications must retry on 429 errors using the Retry-After value, so ramp a historical backfill up gradually.
We map Magento customers, contacts, and orders to Dynamics entities and sync via API or middleware, with clear ownership rules. This prevents duplicates and keeps updates consistent across both systems.
Typical payloads include customer profiles, addresses, order history, returns status, and key marketing consent fields. We align fields to your Dynamics pipelines, queues, and reporting needs.
Yes, we support multiple websites, store views, and segmentation, including company accounts and shared contacts. Store context can be carried into Dynamics for routing, SLAs, and territory logic.
We define a single identity key strategy and apply matching rules, normalization, and conflict handling. You also get monitoring for sync errors and data drift.
Our Magento (Adobe Commerce) team is the world’s #1 most certified, with 894+ Adobe certifications. Since 2003, we’ve delivered 2,100+ eCommerce projects, including complex CRM and ERP integrations.
No. Dynamics 365 Sales and Customer Service keep their data in Dataverse and expose it through the Dataverse Web API. Finance and Operations apps need Microsoft's Data Integrator to make their data available in Dataverse, so ERP order and inventory sync is usually its own integration.
Yes. Each line is either a catalog product, which needs a unit of measure and must be on the order's price list, or a write-in product with its own price, which needs the order's Prices Locked field set to No.
Define an alternate key, for example a column holding the Magento customer ID, and send a PATCH to the contacts entity set with that key in the URL. Without an If-Match header the call creates the row if it is missing and updates it if it exists.
Enable change tracking on the table, request it once with the Prefer: odata.track-changes header, and store the delta link it returns. Later calls to that link return only new, changed, and deleted rows; Microsoft's docs give a default window of seven days, so run the job more often than that.
Last updated by the scandiweb integration team.