Three Broken Integrations Between Magento, Business Central and Dynamics 365 Sales: Fix or Rebuild as One

Which system owns each record, what a single monitored integration layer looks like, how to decide fix or rebuild per flow, and how to switch over with shadow running.

When Magento, Business Central and Dynamics 365 Sales are joined by three separate integrations from three contractors, the usual fix is one integration layer with clear ownership of each record. Business Central is the master for prices, stock and posted orders. Sales connects to Business Central through the standard Dataverse connection, so customers, items, prices and orders couple without custom code. The webshop gets one queued, monitored flow to and from Business Central, with retries, idempotent order import and alerts. The new layer shadow-runs next to the old integrations, comparing results, before each flow is switched over and the old one is turned off.

Why do three separate integrations keep breaking?

Because each one was built to its own half of a specification and nobody owns the data model across all three. The typical picture: Magento pushes orders to Business Central through one connector, Sales reads customers from Magento through a second, and a third script copies prices from Business Central to Magento overnight. Each contractor can show that their piece works on its own terms, and the faults appear where they meet.

  • Two systems both believe they own the customer, so addresses and credit terms are overwritten in both directions.
  • Prices reach the webshop on a nightly schedule, so promotions and price changes in Business Central are late or missed.
  • Stock is pushed as a number without reservations, so the webshop sells items already promised to other orders.
  • Orders that fail validation in Business Central are dropped or retried as duplicates, and nobody is alerted.
  • Sales shows webshop customers but not their orders or invoices, so account managers ask finance by email.

Which system should own each record?

Agree this first, in writing, before any code is changed. Every later decision follows from it, and most of the current faults are two systems owning the same field.

RecordMasterHow the others get it
Items, prices and stockBusiness CentralSales through the Dataverse connection; Magento through the integration flow, with available stock rather than inventory on hand
Web ordersMagento creates, Business Central owns once importedImported to Business Central as sales orders; status and shipment flow back to Magento
Business accounts and credit termsBusiness Central for financial fields, Sales for relationship fieldsCoupled through the Dataverse connection with field ownership set per direction
Web consumer customersMagentoCreated in Business Central on first order, often against a template rather than one record per shopper
Posted invoices and paymentsBusiness CentralVisible in Sales through the connection or a virtual table; never edited outside Business Central

What does a single integration layer look like?

Two links, not three, each with one owner. Business Central and Sales use the standard Dataverse connection, set up from Business Central, which couples accounts, contacts, items, prices and sales orders and is maintained by Microsoft rather than by a contractor. Magento talks only to Business Central, through one flow built on Business Central API pages and the Magento REST API, hosted in Azure Functions or Logic Apps with a queue in between.

The queue is what makes it reliable. Every order is written to the queue first, imported once under its Magento order number so a retry cannot create a duplicate, and moved to a failed list with a reason if Business Central rejects it. Prices and stock are pushed on change rather than overnight. One dashboard shows messages waiting, failed and processed, and an alert fires when nothing has arrived for longer than normal, not only when something errors. The pattern for moving many integrations onto this shape is set out in rationalising point-to-point integrations.

Should we fix the existing integrations or rebuild them?

Decide per flow, not for the whole estate. Some existing pieces are worth keeping, especially if one of them is already a maintained connector.

SignalFix itRebuild it
Source code and credentialsYou hold the code, the repository and every service accountCode sits with a contractor who has gone, or nobody knows what runs where
Data ownershipThe flow respects the agreed masterThe flow writes to fields another system owns
Failure handlingFailures are logged and can be retriedFailures disappear silently or create duplicates
Sales to Business Central linkIt already uses the standard Dataverse connectionIt is custom code doing what the standard connection does
Upgrade exposureIt survives Business Central and Magento updatesIt breaks on each update and is patched by hand

How do you switch over without stopping web orders?

Shadow running, one flow at a time. The new layer runs next to the old integrations, reads the same events and computes what it would write, but writes to a comparison log instead of the live systems. Differences are reviewed daily until the new layer matches or the old one is shown to be wrong. Then that flow is switched: the old integration is disabled, the new one writes for real, and the old one stays available to re-enable for an agreed period.

The usual order is prices and stock first, because a mistake there is visible and reversible, then the Sales link through the Dataverse connection, and web orders last, switched at a quiet trading time with the order queue drained beforehand.

Who should own the integration after the rebuild?

One team, accountable for both systems and the link between them, so a failed order is never a dispute between a webshop contractor, an ERP partner and a CRM partner. Solzet designs and builds the single integration layer, configures the Dataverse connection between Business Central and Sales, writes the AL on the Business Central side where API pages or validation need extending, sets up the monitoring, and runs the shadow period and switch-over. We then support it as one owner. The wider service is described on CRM and ERP integration, with Business Central and Dynamics 365 Sales on their own pages. If the CRM side is better without Microsoft licensing, we build a custom CRM connected to Business Central instead. We recommend the right solution: Dynamics 365 (Customer Engagement, Business Central or Finance and Operations), Power Platform, or a custom-built CRM. One team for CRM, ERP and the integration between them.

What do people ask us?

Should Magento, Business Central and Dynamics 365 Sales be integrated with one integration or three?

Two links with one owner usually works best: the standard Dataverse connection between Business Central and Sales, and one queued, monitored flow between Magento and Business Central. Magento then never talks to Sales directly, and every record has one master.

Which system should be the master for prices and stock?

Business Central. It holds the price lists, the inventory and the reservations, so it is the only system that knows what can be sold. Sales receives prices through the Dataverse connection, and Magento receives prices and available stock through the integration flow, pushed on change.

How do we stop duplicate web orders in Business Central?

Import each order once under its Magento order number, so a retry finds the existing order instead of creating a second one. Put a queue between Magento and Business Central, and move rejected orders to a failed list with a reason and an alert rather than retrying blindly.

Can we keep any of the existing integrations?

Often yes. Keep a flow when you hold its code and credentials, it respects the agreed master, it logs and retries failures and it survives updates. Rebuild it when the code is with a contractor who has gone, it writes to fields another system owns, or it fails silently.

What is shadow running for an integration?

The new integration runs next to the old one on the same events and logs what it would write, without writing to the live systems. Differences are reviewed until the new one matches, then that flow is switched over, with the old one kept ready to re-enable for an agreed period.

Does Solzet build the Magento side as well as Business Central and Sales?

Solzet builds the integration flow between Magento and Business Central, including the calls to the Magento REST API, the queue, the monitoring and the AL on the Business Central side, and configures the Dataverse connection to Sales. Theme and storefront work on the webshop stays with your web team.

Which solution is right for your business?

Tell us what you need. A senior consultant replies within one business day with a recommendation (Customer Engagement, Business Central, Finance and Operations, Power Platform or a custom-built CRM), not a sales script.