Skip to content
Portalby Webisoft®Book a demo

Learn / Automate order entry from email

How to automate purchase order entry into Dynamics 365 Business Central

Connect your order mailbox and Business Central to Portal, then add a routing rule that creates an order draft. The AI reads the lines, matches them to items and prices from Business Central, and an approver sends the draft on as a Business Central sales order.

01About

About Dynamics 365 Business Central.

Microsoft Dynamics 365 Business Central is a business management system for small and mid-sized companies, covering finance, manufacturing, sales, shipping, projects and service. Microsoft describes its sweet spot as wholesale and professional services. It is the successor to Dynamics NAV, also known as Navision.

It runs online as a Microsoft-hosted service, with two major releases every April and October, or on-premises on your own Business Central Server and SQL Server. Licenses are sold through Microsoft partners as Essentials, Premium and Team Member seats.

On-premises versions follow Microsoft's Modern Lifecycle Policy and are supported only while you keep current; for example, version 26 support ends on October 14, 2026.

Portal by Webisoft is a B2B portal for Dynamics 365 Business Central: customer self-service and team apps on live Business Central data.

02The hard part

Why connecting to Business Central is hard.

Emailed purchase orders still get keyed into Business Central sales orders by hand, which is where a full-price seat goes to typing.

Per-user API limits

Business Central online limits each user to 5 concurrent OData requests and 6,000 requests in any 5-minute window, and pages are capped at 20,000 records. Service principals get the same limits, and Microsoft's own advice for heavy integrations is to rotate requests across several users or service principals.

The standard API is fixed

The standard API v2.0 cannot be extended with extra fields. If you need one, Microsoft says to copy the AL code and build a custom API as an extension, which then has to survive every release wave.

Old integration methods are being removed

Online only accepts OAuth 2.0; web service access keys stopped working on October 1, 2022, and the password OAuth flow was removed in version 23. Exposing Microsoft pages as SOAP endpoints ends in version 29 and as OData endpoints in version 30, so older NAV-era integrations keep breaking.

Online and on-premises connect differently

On-premises deployments cannot be reached through Microsoft's common online endpoint; you connect to your own server directly, and service-to-service sign-in there needs Microsoft Entra configured with OpenID Connect.

03Options

Your options.

OptionFits whenWatch out for
Native Business Central add-onsYou need one narrow function and an add-on covers it.Each add-on is its own product to license, learn and upgrade.
Generic integration platformYou have someone in-house to build and maintain the flows.You still build the screens, the AI layer and the Business Central write rules yourself.
Custom codeThe need is unique and you have developers who know Business Central.Upgrades and staff changes put the integration at risk.
Portal by WebisoftYou want customers, your team and AI agents working on live Business Central data.It works on top of Business Central; it does not replace it.
04How Portal connects

How Portal reaches Business Central.

For Business Central online, Portal uses the standard API v2.0 with Microsoft Entra service-to-service sign-in. Your administrator clicks Connect with Microsoft to grant consent, then adds the app on the Microsoft Entra Applications page in Business Central with the D365 BUS FULL ACCESS permission set. Companies that prefer their own Entra app can enter its client ID and secret instead.

For Business Central on-premises, Portal connects to your server's API with a user name and web service access key, either directly or through the On-site connector relay, which calls the server inside your network over outbound connections only. The server needs OData and API services enabled. Orders carry a portal reference comment so a retry never creates a duplicate.

05Before you start

What you need.

06Steps

Step by step.

Your Portal team sets up the Business Central connection with you during onboarding, so the first step is done together. The rest is yours to change any time.

  1. Grant consent and add the app in Business Central

    Under Setup, ERP, ERP system, choose Business Central and click Connect with Microsoft so a Microsoft Entra admin can grant consent. Then in Business Central, open Microsoft Entra Applications, add the Portal app and give it the D365 BUS FULL ACCESS permission set. Back in Portal, pick the environment and company and choose Test connection. For Business Central on-premises, enter the server address, a user name and a web service access key instead.

  2. Connect the orders mailbox

    In Email, Sources, choose Connect Gmail or Connect Microsoft 365, or create a forwarding address and forward your orders inbox to it.

  3. Create order drafts from purchase orders

    In Email, Routing rules, add a rule for the purchase order intent with the action Create an order draft. Lines are matched to Business Central items and priced from Business Central item unit prices; anything unmatched is listed in the draft notes.

  4. Approve and send

    Drafts wait in the Review queue. An approver checks the lines and chooses Submit to ERP; the draft becomes a Business Central sales order, and once Business Central confirms it the customer gets a reply with the order number.

07What syncs

What syncs with Business Central.

RecordReadWrite backNote
Customers and contactsYesNoBlocked customers treated as on hold
AddressesYesNoBill-to only; the standard API has no ship-to
Items and unit pricesYesNoThe standard API has no price lists
InventoryYesNoTotal per item, not per location
Sales quotesYesYesConverted with Make Order on acceptance
Sales ordersYesYes
Posted sales invoicesYesNo
Customer paymentsNoYesWritten to a cash receipt journal and posted
Posted sales shipmentsYesNoNo carrier tracking in the standard API
Purchase ordersYesYesUpdate receipt dates and quantities
AttachmentsNoYesOn customers, orders, quotes and invoices
08Next

What you can do next.

09FAQ

Business Central questions, answered.

What if the customer is on credit hold in Business Central?

The draft cannot be submitted while the customer is on hold, which Portal reads from the Business Central customer, with blocked customers treated as on hold.

Can it read our Business Central item numbers from a customer's part numbers?

Lines are matched to your catalog by the AI; anything it cannot match is listed in the draft so a person can pick the right item.

What stops a duplicate order if something is retried?

Every order carries a portal reference comment line on each order, so a retry finds the first order instead of creating another.

10More guides

Keep going.

Sources