Show Sage X3 data in Salesforce
Connect Sage X3 and Salesforce to Portal. Sage X3 customers and contacts become Salesforce accounts and contacts, each account can show balance, open orders and credit hold, and every a Sage X3 sales quote, of type SQN by default can be tracked as an opportunity.
What reaches Salesforce from Sage X3.
| Salesforce | From Sage X3 | Direction |
|---|---|---|
| Account | Each Sage X3 customer, the Sage X3 customer record (BPC), where credit control set to Blocked means credit hold: 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 Sage X3 contacts of each linked customer | Portal writes; contacts made only in Salesforce come into Portal, and an edit to a Sage X3 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 Sage X3 sales quote, of type SQN by default or order, with its total and close date | Portal writes; Salesforce changes to it are not read back |
| Product (optional) | Item code, stock by Sage X3 stock site, accepted stock less allocations 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 Sage X3 and Salesforce.
Publish the X3 web services and connect
In Sage X3, an administrator sets up a classic SOAP pool on the endpoint of the folder Portal should use and publishes the objects Portal calls: BPC, ITM, ITV, SQH, SOH, SIH, PAY, SDH and SRH, each left list with its keys and UPDDATTIM. Orders and quotes get a YPORTALREF user field. In Portal, under Setup, ERP, ERP system, choose Sage X3 and enter the X3 web server address, the pool alias, the sales site, the order and quote types (SON and SQN by default) and the web service user and password, then choose Test connection.
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 Sage X3 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 Sage X3 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 Sage X3 sales quote, of type SQN by default becomes an opportunity at Proposal/Price Quote and moves to Closed Won when Portal saves a Sage X3 sales order whose lines point to the quote and its lines, so X3 shows the quote as ordered.
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 posted Sage X3 sales invoices, with the balance from their open items and place orders, quotes and returns on the customer's behalf, logged under their name.
How Portal reads Sage X3.
Portal talks to Sage X3 version 12 (patch 9 and later) through the classic SOAP web services: query, read and save calls to the CAdxWebServiceXmlCC service on your X3 web server, with the alias of a SOAP pool and a web service user and password. Your X3 administrator publishes the objects Portal uses (customers BPC, items ITM, stock by site ITV, quotes SQH, orders SOH, invoices SIH, payments PAY, deliveries SDH and returns SRH), adds the update date UPDDATTIM to each left list so Portal can sync only what changed, and adds a YPORTALREF user field to orders and quotes.
Every order and quote Portal saves carries its portal reference in that user field, and Portal queries for it before each save, so a retry never creates a second document. Credit control set to Blocked stops an order before it reaches X3, and inactive items are refused. For an X3 server inside your network, the connection can go through the Portal On-site connector, which relays each call to the X3 web server over outbound connections only. Portal signs in with basic authentication, which Sage supports on premises; Sage X3 Online, which only accepts OAuth 2, is not covered yet.
| Sage X3 record | Read | Write back | Note |
|---|---|---|---|
| Customers, contacts and addresses | Yes | Yes | Credit hold when credit control is Blocked |
| Items | Yes | Yes | Only active items can be ordered |
| Prices | Yes | No | Item base price; X3 price lists are not mapped yet |
| Stock by site | Yes | No | Accepted stock less allocations |
| Sales quotes | Yes | Yes | Converted to a sales order whose lines reference the quote |
| Sales orders | Yes | Yes | Credit control and item status checked first |
| Sales invoices | Yes | Yes | Posted invoices, balance from the open items |
| Customer payments | Yes | Yes | One line per invoice paid; a surcharge is not posted |
| Deliveries | Yes | Yes | Validated deliveries, tracking from the PRO number |
| Customer returns | Yes | Yes | Made from the deliveries |
| Purchase orders | Yes | Yes | Update expected receipt dates and quantities |
| Attachments | No | No | The SOAP web services take no files |
What it does not do.
- Invoice lines, payment status and credit limits from Sage X3 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.
Sage X3 and Salesforce, answered.
Can reps see Sage X3 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 posted Sage X3 sales invoices, with the balance from their open items themselves in the rep portal.
Does Salesforce write anything back into Sage X3?
No. Sage X3 owns customers and their contacts. A Salesforce edit to a Sage X3 contact becomes a proposed change that staff approve in Portal, and nothing is written into Sage X3 from Salesforce.
What stops duplicates?
Every account, contact and opportunity carries a Portal ID that Portal upserts on, and orders reaching Sage X3 carry a portal reference in the YPORTALREF user field, which Portal queries before every save.
Which Sage X3 web services does Portal use?
The classic SOAP web services, through a pool on the endpoint of your folder. Sage's REST Web API only reads classic modules such as sales orders and quotes, so SOAP is the documented way to save them. Portal keeps at most two calls in flight so it does not crowd out your other users of the pool.