Salesforce / Details

MuleSoft ERP Salesforce: 4 Steps to Self-Serve Inventory

Posted by Nguyên Đặng

MuleSoft ERP Salesforce is a way to connect a CRM with an ERP system so sales can see stock and order status right in Salesforce without calling the warehouse. Picture this: a customer asks if an item is in stock, sales answers I will ask the warehouse and get back to you, and half a day later there is an answer.

This article is an illustrative scenario, not a real customer. The approach: MuleSoft pulls stock and order status from the ERP and shows it on Account and Opportunity, while an order won in Salesforce automatically creates a sales order in the ERP. The biggest lesson: agreeing product and customer codes between the two systems is the most laborious part, not the programming.

Important note: this is an illustrative scenario. The 200-person factory, the handling and the product code examples below are hypothetical, not Sonix customers, and the article gives no result figures. The exact approach depends on the ERP type, version, edition and license, and menu names may differ by release. Content on cost and investment is general reference, not advice.

MuleSoft ERP Salesforce: 4 Bước Để Tự Kiểm Tồn Kho.
Illustrative scenario: MuleSoft brings ERP data into Salesforce and sends won orders from Salesforce to the ERP.
Background

Background: a 200-person factory with a CRM and ERP that are apart

Illustrative scenario: a factory that makes office furniture has 200 people. The sales team uses Salesforce for customers and deals. Planning and the warehouse use an ERP for stock, sales orders and production progress. The two systems do not talk to each other.

Each time a customer asks if an item is in stock or how soon it can ship, sales must call or message the warehouse, wait for a check, then reply to the customer. When a deal closes, the order is typed into the ERP by hand. The table below describes the usual flow of information.

StepWho does itThe problem
Customer asks about stock and delivery timeSalesCannot look it up, must ask someone else
Check stock and production progressWarehouse, planningThey must stop their own work to answer
Quote the customerSalesOnly after the answer comes back, late for the customer’s need
Close the deal and enter the order in the ERPSales, adminRetyped by hand, error-prone and slow

According to the brief’s hook, the total time from a customer’s question to an answer can reach half a day. That is what an integration project aims to shorten.

Approach

MuleSoft ERP Salesforce: a 4-step approach

According to Salesforce’s materials, MuleSoft follows an API-led approach, building reusable APIs instead of hard-wiring each link. See the foundations in the Trailhead module on connecting external data or our article What Is MuleSoft. The four steps of the illustrative scenario:

1

Decide which system is the source of truth for each piece of data

  • Usually the ERP holds the truth about stock, sales orders and production progress, while Salesforce holds customers and deals
  • Write this down before designing, so two places do not both claim to be the source
2

Bring stock and order status from the ERP into Salesforce

  • MuleSoft reads data from the ERP and shows it on Account and Opportunity
  • Sales open a deal and see available stock and the status of related orders, no need to ask anyone
3

Send won orders from Salesforce to the ERP

  • When a deal is won, the integration creates a sales order in the ERP automatically
  • The ERP confirms whether the order was accepted and returns an order number to store in Salesforce
4

Monitor errors and supervise

  • An order may be rejected by the ERP for missing or invalid data, so you need a way to alert whoever handles it
  • Assign an owner to watch the flow after it goes live
4
steps from asking the warehouse to a sales order in the ERP
2
systems connected: Salesforce and the ERP
1
most laborious part: agreeing product and customer codes
Choice

Two ways to show stock: MuleSoft or Salesforce Connect

If the goal is only to let sales see ERP data in Salesforce, MuleSoft is not the only option. Salesforce Connect is another route.

According to the Salesforce Connect documentation (which may be an older version), it maps external objects to data tables in an external system, accessing the data on demand instead of copying it into Salesforce. The documentation’s own example is order information stored in a back-office ERP.

CriteriaMuleSoft (integration layer)Salesforce Connect
Main goalConnect and orchestrate several systems, in both directionsLet users see external data right in Salesforce
DataProcessed, transformed and can be storedAccessed on demand, not copied
Creating orders in the ERPDoable, with logic and error handlingDepends on setup, more often used for viewing than orchestration
Watch forDesign, license, who maintains itPerformance, license, requirements of the data source

This scenario needs both directions: viewing stock and creating sales orders, so MuleSoft is the better fit. If you only need to view data, consider the simpler route first. For even simpler flows, see MuleSoft Composer: 3 Easy Integration Flows, No Code Needed.

Example

Example: from is it in stock to a sales order

Hypothetical example, no figures: an office customer wants to order a batch of chairs. The table below compares the information flow before and after integration.

MomentBefore integrationAfter integration
Customer asks if it is in stockSales call the warehouse and waitSales see available stock on the Opportunity
Customer asks how soon it shipsAsk about the production planSee order status and related progress on the Account
QuoteAfter an answer comes from the warehouseRight during the call or meeting with the customer
Close the dealRetype the order into the ERPThe order is created in the ERP, which returns the order number

One important note: physical stock differs from available stock. Items already reserved for another order should not show as sellable. Agree with the warehouse which ERP field is shown to sales.

Lesson

Lesson: product codes and customer codes

This is what usually makes projects most laborious, and it is not programming. For Salesforce and the ERP to understand the same product and the same customer, both sides must agree on codes.

DataCommon problemHow to handle it
Product codeSalesforce and the ERP use different codes, or one product has several codesBuild a mapping table and choose one shared code as the key
Unit of measureOne side counts sets, the other counts piecesAgree on a unit and the conversion
Customer codeA customer has different codes in each systemAttach one shared code to both sides
Old dataDiscontinued products still in the catalogClean the catalog before integrating

Hypothetical example: the same chair model is GH-001 in Salesforce and 100245 in the ERP. Without a mapping table kept by a specific person, stock will show for the wrong product. Give this job to someone who understands both sales and the warehouse. On why clean data decides the quality of every integration, see Einstein AI in Salesforce for sales and marketing.

Considerations

What to weigh

Who is the source of truth. Salesforce should only record the intent to buy, and the ERP confirms whether the order is valid and issues the order number. Do not let two places both edit the same data.

Performance and latency. If every time a deal is opened a call goes to the ERP, the page can be slow. Test and decide which data needs to be instant and which can be on a schedule.

Error handling. An order rejected by the ERP, ERP maintenance or a lost connection can all happen. You need a way to alert and retry in a controlled manner.

Security. Not all ERP data should show to sales, such as cost price or receivables. Decide clearly which fields are shown.

Cost and license. MuleSoft and Salesforce Connect each have their own licenses, and an integration project needs implementers. Ask for a quote based on your real needs. This is general reference, not financial advice.

If you need help, see Sonix’s Salesforce solutions (in Vietnamese).

Summary

MuleSoft ERP Salesforce checklist for a manufacturer

If your sales team still has to ask the warehouse before quoting, run through this short list.

☐ Decided which system is the source of truth for stock, sales orders and customers
☐ Decided whether you only need to view ERP data or need both directions
☐ Built a product and customer code mapping table and assigned someone to keep it
☐ Agreed on units of measure and the type of stock shown to sales
☐ Defined how to handle ERP rejections or lost connections
☐ Decided which ERP fields are not shown to sales
☐ Asked about licenses and implementers before starting

The hard part of integration is not writing code. It is agreeing on the same product and the same customer across two systems.

Can your sales team see stock without asking anyone? Leave a comment below and the Sonix team will suggest a sensible place to start.

Case Study
Salesforce
MuleSoft
ERP System
Salesforce Sales Cloud
Business
Does your sales team still ask the warehouse before quoting?

Book a conversation with Sonix to review how your CRM and ERP are connected today and decide on a sensible starting point before investing.

Book a free conversation

Sonix: Your success is our happiness.

Leave us your comment