A Customer Ordering Portal on Business Central That Does Not Double Sell Stock
Live availability and customer prices read from Business Central at order time, a reservation made on submit, and each trade customer seeing only their own data.
Cheap portal plug-ins oversell because they work from a copy: stock is synced into the shop every so often, decremented locally, and orders reach Business Central later with no reservation, so the same units are sold by the portal and by your sales team. A sound design keeps Business Central as the only source of truth. A Power Pages portal reads availability and the customer's own prices from Business Central when the customer builds the order, checks again on submit, and creates the sales order and its reservation in one step, returning any shortfall. Each customer signs in and sees only their own prices, orders and invoices.
Why do portal plug-ins sell stock that is no longer there?
Because most of them are a separate shop with its own database. Stock levels are copied from Business Central on a schedule, the shop decrements its own copy as orders come in, and orders flow back into Business Central later, often in a batch. Between those moments, your sales team is selling the same units from Business Central, the warehouse is shipping other orders, and the shop is working from a number that was true at the last sync.
Two more gaps make it worse. The copied figure is usually inventory on hand, which still includes stock reserved for other customers and claimed by open orders. And nothing is reserved when the portal order is placed, so even an accurate number is out of date a minute later. Prices have the same problem: a shop with its own price table drifts from the price lists, discounts and customer agreements in Business Central, and trade customers notice.
What does a sound ordering portal on Business Central look like?
Business Central stays the only place where stock, prices and orders are decided. The portal asks; it does not keep its own answer.
| Part | Role |
|---|---|
| Power Pages portal | Sign-in, catalogue, basket, order history and invoices for each trade customer |
| Dataverse | Portal identity, contacts and accounts with the Business Central customer number, and content such as product descriptions and images |
| Server-side call to Business Central | A cloud flow or custom API that calls Business Central for the signed-in customer, never directly from the browser |
| Business Central AL API | Returns availability and calculated prices, and creates the sales order with its reservations in one transaction |
| Business Central | Source of truth for items, availability, price lists, discounts, credit limits, orders and invoices |
How does the portal read availability and customer prices at order time?
For availability, the portal should show the figure your sales team should promise from: on hand minus reservations and open demand, by location, not raw inventory. Business Central API v2.0 exposes items with an inventory figure, which is on hand, so a small AL API page that returns available quantity per item and location is usually needed. How to set the reservation rules behind that figure is covered in reservations and available to promise in Business Central.
For prices, let Business Central calculate them. Price lists, customer price groups, line discounts and quantity breaks are already defined there, and Business Central calculates the price for a customer when a sales line is created. An AL API action that runs the same calculation for a customer and a list of items returns exactly the price that customer will be invoiced, with nothing duplicated in the portal. Browsing pages can show cached, clearly indicative figures for speed; the basket and the submit step always call Business Central.
How do you reserve stock when the customer submits the order?
Make submission one call that does three things in a single Business Central transaction: check availability again, create the sales order with the customer's prices, and reserve each line against inventory or inbound supply. If two customers try to buy the last units at the same moment, Business Central decides who gets them, because the reservation is made where the stock lives. The portal confirms the order only when Business Central returns success.
When a line cannot be fully reserved, return the shortfall rather than failing silently. Let the customer accept a back order with a date, take the partial quantity or remove the line, according to the policy you agreed. Reservations on portal orders follow the same housekeeping as any other: when an order is cancelled or changed, the reservation is released, so the portal does not create phantom availability of its own.
How does each customer see only their own prices and orders?
Identity is resolved on the server, never taken from the page. Each portal user is a Power Pages contact linked to an account, and the account carries the Business Central customer number. Every call to Business Central uses the customer number found from the signed-in user, so changing a value in the browser cannot reveal another customer's prices. Order history and invoices shown from Dataverse are protected with table permissions scoped to the contact's account and assigned through web roles.
Credit limits and blocked customers deserve the same care: check them in Business Central on submit, and tell the customer clearly when an order needs approval rather than accepting it and stopping it later.
Should the portal be built on Power Pages or as a custom front end?
Power Pages suits most trade portals for Business Central customers already on Microsoft 365, because sign-in, contacts, table permissions and hosting come with it, and the Business Central calls sit behind a cloud flow or a custom API. A custom React front end calling the same AL API makes sense when the ordering experience is the product, or when the external audience and licensing make a custom build the better fit. The full comparison, including identity, licensing and who maintains each option, is on customer portal: Power Pages or a custom front end. Business Central virtual tables in Dataverse are another way to read data in place; check whether your Power Pages version supports them for the operations you need before designing around them. If the portal feels slow, see Power Pages portal performance.
What are the steps to build an ordering portal that does not oversell?
A sequence from promise policy to a tested go-live.
| Step | What to do |
|---|---|
| 1. Decide what the portal promises | Agree with sales and the warehouse which figure the portal shows (available to promise, not on hand), which locations it sells from, and what happens on a shortfall: back order, partial or refuse. |
| 2. Build the Business Central API | Write AL API pages and actions that return availability and calculated prices for a given customer and item list, and one action that creates the sales order and reserves its lines together. |
| 3. Map portal users to customers | Link each Power Pages contact to an account that carries the Business Central customer number, and resolve the customer on the server from the signed-in identity only. |
| 4. Build the catalogue and basket | Show indicative availability while browsing, call Business Central for live availability and prices when items go into the basket, and again on submit. |
| 5. Handle the shortfall | When the reservation cannot cover a line, return the shortfall to the portal and let the customer accept a back order, a partial quantity or remove the line before confirmation. |
| 6. Test concurrency and isolation | Submit competing orders for the last units at the same moment, sign in as different customers and try to read data that belongs to another customer, and test what the portal shows when Business Central is unavailable. |
What does Solzet build for a Business Central ordering portal?
Solzet agrees the availability and shortfall policy with your sales and warehouse teams, writes the AL API in Business Central for availability, customer prices and order submission with reservation, builds the Power Pages portal with sign-in, catalogue, basket, order history and invoices, and connects them through a server-side flow or custom API. The same senior consultants and developers work on Power Pages, Dataverse and Business Central, so the portal and the ERP side are designed together and tested together, including competing orders for the last units. The Business Central service line is Business Central implementation.
If you would rather not carry Microsoft licensing for the customer-facing side, a custom portal and CRM on React and Node.js can call the same Business Central API. 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?
Why does our B2B portal sell stock we do not have?
Usually because it works from a copy of Business Central stock synced on a schedule, shows on-hand rather than available quantity, and reserves nothing when the order is placed, so the portal and your sales team sell the same units.
Can a Power Pages portal show live Business Central stock?
Yes. The portal calls Business Central through a server-side cloud flow or custom API, and an AL API returns available quantity per item and location for the signed-in customer when items go into the basket and again on submit.
How do customer-specific prices from Business Central reach the portal?
Let Business Central calculate them. An AL API action runs the same price calculation Business Central uses on a sales line, with price lists, customer price groups and discounts, so the portal shows the price the customer will be invoiced.
How do you stop two customers buying the last units at the same time?
Submit the order as one Business Central transaction that checks availability, creates the sales order and reserves the lines. Business Central decides who gets the stock, and the portal confirms only on success.
How do you make sure customers cannot see each other's prices?
Resolve the Business Central customer number on the server from the signed-in contact and its account, never from a value in the page, and protect order history with table permissions scoped to the account.
Should we use a shop plug-in or build the portal on Power Pages?
A plug-in with its own stock and price tables suits simple catalogues where overselling is tolerable. When stock is tight and prices are customer-specific, a portal that reads from and reserves in Business Central avoids the overselling.
Can Solzet build a B2B ordering portal on Business Central?
Yes. We write the AL API for availability, prices and order submission with reservation, build the Power Pages portal, and test competing orders and customer isolation before go-live.
Where should you go next?
Power Pages or a custom front end
External access to Dynamics 365 data compared: identity, licensing, maintenance.
Business Central implementation
Business Central online, AL extensions, integrations and support.
Reservations and available to promise
The availability figure a promise should be based on.
Power Pages portal performance
Measure first, then fix Liquid, lists and scripts.
Live ERP prices in CRM quotes
Price calculation at quote time or price list sync.
Custom CRM development
CRM and portals built on React, Node.js, PostgreSQL and .NET, without Microsoft licensing.
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.