How to automate purchase order entry into Epicor Prophet 21
Connect your order mailbox and Prophet 21 to Portal, then add a routing rule that creates an order draft. The AI reads the lines, matches them to items and prices from Prophet 21, and an approver sends the draft on as a Prophet 21 order entered through the Order window transaction, carrying Portal's reference in web_reference_no.
About Epicor Prophet 21.
Epicor Prophet 21, usually called P21, is Epicor's ERP for wholesale distributors, which Epicor describes as the only ERP designed by distributors for distributors. It covers order management, purchasing across one warehouse or dozens, inventory control, a warehouse management system with barcoding for receiving, put away, picking and cycle counts, a real-time general ledger and service management.
Prophet 21 runs on a distributor's own servers or in the Epicor Cloud, and releases are numbered by year. Release 2026.1 moved the back end to .NET 10, added Bulk Data API capabilities and let Prism users create business rules from natural language.
Epicor has scheduled 2028.1, tentatively May 2028, as the final Prophet 21 release with new features for on-premises customers. Active Support for that release runs through June 30, 2029, Sustaining Support begins July 1, 2029, and new features after it ship in the Epicor Cloud only.
Portal by Webisoft is a B2B portal for Epicor Prophet 21: customer self-service and team apps on live Prophet 21 data.
Why connecting to Prophet 21 is hard.
Inside sales at a P21 distributor still retype emailed purchase orders into Order Entry, matching each customer part number to an item ID by hand.
On-premises P21 stops getting features in 2028
Distributors who host Prophet 21 themselves get their last feature release with 2028.1, and from July 2029 only Sustaining Support remains. A portal bought now will probably outlive that server, so its connection has to keep working when the same middleware moves to the Epicor Cloud.
Every release changes the platform underneath
The 2026.1 release alone moved the P21 back end to .NET 10, added Bulk Data API capabilities and gave Prism deeper access to user-defined data. When this much changes in a yearly release, anything built on the middleware has to be retested after each upgrade instead of assumed to keep working.
Stock and prices belong to a location
Epicor builds Prophet 21 for distributors running one warehouse or dozens, with purchasing centralized across them. Quantities on hand, allocations and selling prices are kept per item and location, so an integration has to decide which location sells and ships an online order and which location's price the buyer sees.
Your options.
| Option | Fits when | Watch out for |
|---|---|---|
| Native Prophet 21 add-ons | You need one narrow function and an add-on covers it. | Each add-on is its own product to license, learn and upgrade. |
| Generic integration platform | You have someone in-house to build and maintain the flows. | You still build the screens, the AI layer and the Prophet 21 write rules yourself. |
| Custom code | The need is unique and you have developers who know Prophet 21. | Upgrades and staff changes put the integration at risk. |
| Portal by Webisoft | You want customers, your team and AI agents working on live Prophet 21 data. | It works on top of Prophet 21; it does not replace it. |
How Portal reaches Prophet 21.
Portal connects to the Prophet 21 middleware: Data Services, its OData API, for every read, and the Transaction API for every write. Your administrator enters the middleware address, the company ID (empty reads every company), the location used for orders and prices, the company currency, and either a P21 user and password or a consumer key from SOA Admin. Portal signs in for a bearer token and keeps it until five minutes before it expires. The connection test compares every table and column Portal reads with the middleware's OData metadata and names any the user or key cannot see. For a middleware server inside your network, the On-site connector relay calls it from inside with outbound connections only.
P21 sends no next-page link, so Portal reads each table in pages ordered by last modified date and key. Writes fill P21 windows through transactions: an order goes in through the Order window with the customer, ship-to, PO number and location, after Portal checks the customer's credit status and that no item is deleted, and Portal's reference in web_reference_no is looked up before every create so a retry finds the first order. A quote is an order flagged as projected, and accepting it clears the flag, so the order keeps the quote's number. Card and bank payments are posted through the Cash Receipts window against each paid invoice once the open balance is checked; shipments and receipt history are not read back yet.
What you need.
- The Prophet 21 middleware server, reachable from the internet or from a Windows machine on your network
- A P21 user, or a consumer key from SOA Admin, whose API scope covers the customer, item, location, order, invoice and purchasing tables
- The mailbox purchase orders arrive in, on Gmail, Microsoft 365 or any address you can forward
Step by step.
Your Portal team sets up the Prophet 21 connection with you during onboarding, so the first step is done together. The rest is yours to change any time.
Point Portal at the P21 middleware
Under Setup, ERP, ERP system, choose Epicor Prophet 21 and enter the middleware address, such as https://p21.example.com, the company ID, the location that sells, ships and prices portal orders, and the company currency. Sign in with a P21 user and password, or with a consumer key created in SOA Admin, then choose Test connection: Portal compares every table and column it reads with the middleware's OData metadata and names anything the user or key cannot see.
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.
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 Prophet 21 items and priced from the price1 column of each item at the Prophet 21 location you choose, one base price per item, without customer or contract pricing; anything unmatched is listed in the draft notes.
Approve and send
Drafts wait in the Review queue. An approver checks the lines and chooses Submit to ERP; the draft becomes a Prophet 21 order entered through the Order window transaction, carrying Portal's reference in web_reference_no, and once Prophet 21 confirms it the customer gets a reply with the order number.
What syncs with Prophet 21.
| Record | Read | Write back | Note |
|---|---|---|---|
| Customers | Yes | Yes | Credit hold from the customer credit status |
| Contacts, addresses and ship-tos | Yes | No | |
| Items | Yes | Yes | |
| Prices | Yes | No | One base price per item at the location you set; no customer pricing |
| Stock by location | Yes | Yes | On hand less allocated; adjustments and transfers |
| Quotes (projected orders) | Yes | Yes | Accepting clears the projected flag and keeps the number |
| Sales orders | Yes | Yes | Credit status and deleted items checked first |
| Invoices and credit memos | Yes | Yes | Totals and amount paid, without invoice lines |
| Cash receipts | No | Yes | Applied to the paid invoices; not read back yet |
| Shipments | No | Yes | A pick ticket confirmed shipped; not read yet |
| RMAs | No | Yes | Created against the original order |
| Purchase orders | Yes | Yes | New orders, due dates, quantities and cancelled lines |
Limits today: Shipments, tracking numbers and payment history are not read from Prophet 21 yet, and prices are one base price per item from one location, without customer-specific pricing.
What you can do next.
- A customer emails a PDF purchase order; Portal drafts it against their Prophet 21 account and pricing, and an approver submits it.
- A buyer uploads a photo of a printed PO with Order from a file on the portal; the lines land in their cart, priced from Prophet 21.
Prophet 21 questions, answered.
What if the customer is on credit hold in Prophet 21?
The draft cannot be submitted while the customer is on hold, which Portal reads from the Prophet 21 customer record, on credit hold when its credit status is a hold or stop code, with its ship-tos and contacts from P21.
Can it read our Prophet 21 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 Portal's reference in the P21 order's web_reference_no field, looked up before every create and again when P21 does not answer with a number, so a retry finds the first order instead of creating another.
Keep going.
- Automate order entry from email: overview
- B2B portal for Epicor Prophet 21
- Connect an AI agent to your ERP, Epicor Prophet 21
- Take invoice payments online, Epicor Prophet 21
- Give customers order status, Epicor Prophet 21
- Build a B2B ordering portal, Epicor Prophet 21
- Quotes customers accept online, Epicor Prophet 21
- Triage a shared inbox, Epicor Prophet 21
- Add approval workflows, Epicor Prophet 21
- One REST API for your ERP, Epicor Prophet 21
- Connect an on-prem ERP safely, Epicor Prophet 21