Show Epicor Prophet 21 data in Salesforce
Connect Prophet 21 and Salesforce to Portal. Prophet 21 customers and contacts become Salesforce accounts and contacts, each account can show balance, open orders and credit hold, and every a Prophet 21 projected order with an expiration date can be tracked as an opportunity.
What reaches Salesforce from Prophet 21.
| Salesforce | From Prophet 21 | Direction |
|---|---|---|
| Account | Each Prophet 21 customer, 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: name, phone and the website from the email domain, matched on a Portal ID field | Portal writes; unmatched Salesforce accounts come in as company leads |
| Contact | The Prophet 21 contacts of each linked customer | Portal writes; contacts made only in Salesforce come into Portal, and an edit to a Prophet 21 contact becomes a change for your team to approve |
| Account summary fields (optional) | The customer's open balance and customer number, the count of open orders, the last five orders with status, and credit hold | Portal writes, as text fields on the account |
| Opportunity | One per a Prophet 21 projected order with an expiration date or order, with its total and close date | Portal writes; Salesforce changes to it are not read back |
| Product (optional) | Item code, quantity on hand less quantity allocated at each Prophet 21 location as on hand and available, and the base price | Portal writes |
| Lead, Task, Note | Salesforce leads, tasks and notes | Portal reads them; workflows, agents and staff can create new ones |
Connect Prophet 21 and Salesforce.
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 Salesforce
In Connect, Integrations, Salesforce, choose Connect Salesforce and sign in as a Salesforce administrator. Portal adds a Portal ID field to accounts, contacts and opportunities, the account summary and product stock fields, and a Portal integration permission set, then runs a first sync of your Prophet 21 customers and contacts.
Choose what Portal writes
Tick Also write balance, open orders, recent orders and credit hold on each Salesforce account so reps see the Prophet 21 numbers on the account page. Turn on Products and stock to send item stock and base prices. Accounts Portal cannot match with confidence wait under Companies to check for staff to approve.
Track quotes as opportunities
Add the Create CRM deal action to a workflow that runs when a quote is sent, and Change CRM deal when it is won or lost. Each a Prophet 21 projected order with an expiration date becomes an opportunity at Proposal/Price Quote and moves to Closed Won when Portal clears the projected order flag on that same P21 order and adds the buyer's PO number, so the confirmed order keeps the quote's order number.
Give reps the rest in the rep portal
Reps sign in to their own Portal site and see only their assigned customers with balance, credit limit and credit hold. They can open each customer's Prophet 21 invoices and credit memos, with the amount paid and the balance still open and place orders, quotes and returns on the customer's behalf, logged under their name.
How Portal reads 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.
| 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 |
What it does not do.
- Invoice lines, payment status and credit limits from Prophet 21 are not written to Salesforce; reps see them in the rep portal.
- Portal syncs with Salesforce every 15 minutes, and soon after customers or contacts change in the ERP. It is not instant.
- Changes made to opportunities in Salesforce are not read back, so winning one there does not start a workflow in Portal.
- The Salesforce connection is tested against a Salesforce stand-in so far, so your Portal team sets it up with you on your org.
Prophet 21 and Salesforce, answered.
Can reps see Prophet 21 payment status in Salesforce?
Not invoice by invoice. With the account summary turned on, each Salesforce account shows the customer's open balance, open and recent orders and credit hold. Reps open Prophet 21 invoices and credit memos, with the amount paid and the balance still open themselves in the rep portal.
Does Salesforce write anything back into Prophet 21?
No. Prophet 21 owns customers and their contacts. A Salesforce edit to a Prophet 21 contact becomes a proposed change that staff approve in Portal, and nothing is written into Prophet 21 from Salesforce.
What stops duplicates?
Every account, contact and opportunity carries a Portal ID that Portal upserts on, and orders reaching Prophet 21 carry 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.
Which Prophet 21 APIs does Portal use?
Data Services, the OData API on the P21 middleware, for every read, and the Transaction API for every write, which fills P21 windows such as Order and Cash Receipts the way a user would. Because P21 sends no next-page link, Portal pages through each table by last modified date and key.