Case Study
Integrating a Next.js Website With Dynamics 365: Lessons From a Rebuild
25 August 2026 · 7 min read
Rebuilding a business website is straightforward until there is an enterprise system behind it. For one consultancy, the rebuild was a Next.js front end talking to Microsoft Dynamics 365, and the integration is where the real work was. The client’s summary afterwards was that the rebuild fixed every pain point in the original setup and has held up since. Here is what that took.
The front end is not the hard part
A modern Next.js site, server-rendered where it matters for SEO and statically generated where the content is stable, is well understood. The difficulty is that Dynamics 365 is the source of truth for real business data, and an ERP is not a friendly content API. It has its own authentication model, its own record shapes, its own rate limits, and its own idea of how often data should be read.
Put a layer between the site and the ERP
The site never calls Dynamics directly. A dedicated integration layer handles authentication with Microsoft’s identity platform, translates ERP record shapes into the clean shapes the front end wants, and caches aggressively so a page render is not a live ERP query. When Dynamics is slow or briefly unavailable, the site serves cached data instead of failing. This boundary is the single most important design decision in the whole build.
Decide what has to be live
Not all data needs to be real time. Company information, service descriptions, and team pages can be rebuilt on a schedule or on a content change. Only the genuinely dynamic pieces need a fresh read. Being deliberate about that split keeps ERP load low and the site fast, and it is the difference between an integration that scales and one that gets throttled.
Why it held up
- The caching layer means normal traffic never reaches Dynamics, so the site’s performance is independent of ERP performance.
- The translation layer means a change in an ERP field is absorbed in one place instead of rippling into the front end.
- Graceful degradation means an ERP outage is a stale page, not a broken site.
An ERP integration that treats the ERP as if it were a fast, always-on API will be fragile. Treating it as a slow, occasionally-absent system of record, and designing the boundary accordingly, is what makes it last.