Skip to content
Portalby Webisoft®Book a demo

Learn / Automate order entry from email

How to automate purchase order entry into Dynamics 365 Finance & Operations

Connect your order mailbox and Dynamics 365 F&O to Portal, then add a routing rule that creates an order draft. The AI reads the lines, matches them to items and prices from Dynamics 365 F&O, and an approver sends the draft on as an F&O sales order in your legal entity.

01About

About Dynamics 365 Finance & Operations.

Microsoft Dynamics 365 Finance and Dynamics 365 Supply Chain Management, together called the finance and operations apps or F&O, are Microsoft's ERP for medium-sized organizations and enterprises. Finance runs global financial operations; Supply Chain Management covers order fulfillment, planning, procurement, production, inventory, warehousing and transportation for manufacturers, distributors and retailers. They are the successor to Dynamics AX, and Dynamics 365 Commerce runs on the same platform.

Each app is licensed per user, in a standard and a Premium edition, and the security roles a user holds decide which license that user needs. Most companies run F&O in Microsoft's cloud, where Microsoft applies One Version service updates; Microsoft's dual use rights also allow on-premises deployment.

F&O is not a bigger Business Central. Where Business Central serves smaller companies through one fixed standard API, F&O exposes its data as data entities over OData, such as CustomersV3 or SalesOrderHeadersV2, and keeps transactions per legal entity, so an integration has to be built around entities and companies from the start.

Portal by Webisoft is a B2B portal for Dynamics 365 Finance & Operations: customer self-service and team apps on live Dynamics 365 F&O data.

02The hard part

Why connecting to Dynamics 365 F&O is hard.

In F&O an emailed purchase order still becomes a sales order header and lines keyed in by a licensed user, one item number at a time.

Every request belongs to a legal entity

F&O keeps data per company: each legal entity has a company ID, the dataAreaId, which is the security boundary for most functional areas. OData returns only the user's default company unless the request adds cross-company=true and filters on dataAreaId, so an integration that skips this reads or writes the wrong company without any error.

Throttling follows server load

Microsoft stopped implementing the per-user service protection limits in March 2023 and removed the option in version 10.0.36. What remains is resource-based throttling: when web server use crosses Microsoft's thresholds, OData calls get 429 Too Many Requests. Administrators rank each integration Low, Medium or High on the Throttling priority mapping page, so a portal competes with every other integration on the environment.

OData is for real-time traffic, not bulk

Microsoft classes OData as a synchronous pattern and recommends the batch data API once volumes pass a few hundred thousand records. Server-driven paging stops at 10,000 records a page, OData actions added through extensions are not supported, and on-premises deployments support only the Data management package REST API, not OData.

Licensing reaches past the API

Microsoft's licensing guide says multiplexing does not reduce the licenses required: internal users who view or enter Dynamics 365 data through a website or an API still need a license, and roles decide which one. External users such as your customers do not need user licenses, and the tenant-wide Operations Order Lines license covers indirect updates to qualifying lines such as sales order lines, with an allowance of 100K transactions a month.

Microsoft sets the update calendar

Cloud environments receive One Version service updates, applied first to the user acceptance testing environment and then to production. You choose the maintenance window and can pause at most one consecutive update, so every integration has to keep working release after release.

03Options

Your options.

OptionFits whenWatch out for
Native Dynamics 365 F&O 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 Dynamics 365 F&O write rules yourself.
Custom codeThe need is unique and you have developers who know Dynamics 365 F&O.Upgrades and staff changes put the integration at risk.
Portal by WebisoftYou want customers, your team and AI agents working on live Dynamics 365 F&O data.It works on top of Dynamics 365 F&O; it does not replace it.
04How Portal connects

How Portal reaches Dynamics 365 F&O.

Portal reads and writes F&O through the environment's OData endpoint and its public data entities, among them CustomersV3, ReleasedProductsV2, SalesPriceAgreements, WarehousesOnHandV2, SalesQuotationHeadersV2, SalesOrderHeadersV2 and SalesInvoiceHeadersV2. It signs in with Microsoft Entra client credentials: your administrator clicks Connect with Microsoft to approve Webisoft Portal for the tenant, then adds its client ID under System administration, Setup, Microsoft Entra applications and maps it to an integration user with the security roles it needs. Companies that prefer their own app registration can enter its client ID and secret.

One connection is one legal entity. Every read passes cross-company=true with a filter on that dataAreaId and every write carries it, so the integration user's default company never leaks in. Orders and quotations are a header plus one request per line, marked with a portal reference in the customer reference field that Portal searches before each create; a retry posts only the missing lines, and a line F&O refuses removes the whole document instead of leaving half of it. Because OData cannot confirm a quotation, accepting a quote creates a sales order from its lines at the quoted prices, linked to the quotation.

OData offers no posting action, so packing slips and invoices stay with F&O's own forms and batch jobs, and the payment journals, credit notes and other journals Portal writes are saved unposted with a reminder to post them. The standard entities have no change stamp, so each sync reads them in full, or reads headers incrementally once an extension adds a UTC modified date-time field that you name in the connection.

05Before you start

What you need.

06Steps

Step by step.

Your Portal team sets up the Dynamics 365 F&O connection with you during onboarding, so the first step is done together. The rest is yours to change any time.

  1. Approve Portal in Entra and add it to F&O

    Under Setup, ERP, ERP system, choose Dynamics 365 Finance & Operations and enter the environment URL, such as https://yourcompany.operations.dynamics.com, and the legal entity ID (the dataAreaId, for example usmf). Click Connect with Microsoft so a Microsoft Entra administrator approves Webisoft Portal for your tenant. Then in F&O open System administration, Setup, Microsoft Entra applications, add Portal's client ID and map it to an integration user with the security roles it needs. Test connection checks that the legal entity exists.

  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 Dynamics 365 F&O items and priced from F&O released product prices and sales trade agreements, with price groups and customer-specific lines; 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 an F&O sales order in your legal entity, and once Dynamics 365 F&O confirms it the customer gets a reply with the order number.

07What syncs

What syncs with Dynamics 365 F&O.

RecordReadWrite backNote
CustomersYesYesCustomersV3; Blocked set to Invoice is credit hold, All is inactive
Contacts and postal addressesYesNoInvoice and delivery roles become bill-to and ship-to
Released productsYesYesNames from the shared product; variants are not split
Sales prices and trade agreementsYesNoPrice groups, customer prices and all-customer quantity breaks
On-hand stock by warehouseYesNo
Sales quotationsYesYesAccepting creates a linked sales order; close the quotation in F&O
Sales ordersYesYesCredit hold checked first; open orders can be changed or cancelled
Posted sales invoicesYesNoBalance estimated from payment lines marked against the invoice
Customer payment journalsYesYesOne line per paid invoice, saved unposted for your team to post
Packing slipsYesNoOnly when an extension exposes packing slip header entities
Return ordersNoYesCreated from the portal, not synced back
Purchase ordersYesYesNew orders, plus confirmed delivery dates and quantities

Limits today: Today the connection works with Finance and Operations cloud environments. Packing slips need an extension, and payments are saved unposted for your team to post.

08Next

What you can do next.

09FAQ

Dynamics 365 F&O questions, answered.

What if the customer is on credit hold in Dynamics 365 F&O?

The draft cannot be submitted while the customer is on hold, which Portal reads from the F&O customer in CustomersV3, where Blocked set to Invoice means credit hold and All means inactive.

Can it read our Dynamics 365 F&O 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 in the customer reference field, searched before every create, with only missing lines added on a retry, so a retry finds the first order instead of creating another.

10More guides

Keep going.

Sources