Skip to content
Portalby Webisoft®Book a demo

Integrations / Epicor Prophet 21

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.

01What syncs

What reaches Salesforce from Prophet 21.

SalesforceFrom Prophet 21Direction
AccountEach 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 fieldPortal writes; unmatched Salesforce accounts come in as company leads
ContactThe Prophet 21 contacts of each linked customerPortal 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 holdPortal writes, as text fields on the account
OpportunityOne per a Prophet 21 projected order with an expiration date or order, with its total and close datePortal 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 pricePortal writes
Lead, Task, NoteSalesforce leads, tasks and notesPortal reads them; workflows, agents and staff can create new ones
02Set it up

Connect Prophet 21 and Salesforce.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

03The Prophet 21 side

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 recordReadWrite backNote
CustomersYesYesCredit hold from the customer credit status
Contacts, addresses and ship-tosYesNo
ItemsYesYes
PricesYesNoOne base price per item at the location you set; no customer pricing
Stock by locationYesYesOn hand less allocated; adjustments and transfers
Quotes (projected orders)YesYesAccepting clears the projected flag and keeps the number
Sales ordersYesYesCredit status and deleted items checked first
Invoices and credit memosYesYesTotals and amount paid, without invoice lines
Cash receiptsNoYesApplied to the paid invoices; not read back yet
ShipmentsNoYesA pick ticket confirmed shipped; not read yet
RMAsNoYesCreated against the original order
Purchase ordersYesYesNew orders, due dates, quantities and cancelled lines
04Limits

What it does not do.

05FAQ

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.

Related

Keep reading.