Connecting a CRM, ERP, or on-premises database to a different utility is less complicated to keep up when groups can reuse APIs relatively than rebuilding one-off connections. MuleSoft Anypoint Platform offers improvement, connectivity, API administration, and monitoring capabilities for that objective.
TL;DR: How do you combine functions utilizing MuleSoft?
To combine functions utilizing MuleSoft, create a mission in Anypoint Studio, configure the suitable connectors, outline a Mule move, and use DataWeave for transformations as wanted. Take a look at the mixing earlier than deploying and managing it by way of Anypoint Platform. For instance, you may expose a read-only HTTP endpoint that retrieves Salesforce Account data by way of MuleSoft’s Salesforce Connector.
Listed in G2’s iPaaS Software program and API Platforms classes, MuleSoft helps API-led connectivity throughout enterprise programs. This text explains its integration structure and strategies, examines current G2 person experiences, and walks by way of a read-only Salesforce Account retrieval instance in Anypoint Studio.
Methodology: We analyzed G2 critiques submitted between October 1, 2025, and October 31, 2026, for experiences with API integration, connectivity, reusable APIs, and implementation. Technical capabilities and directions had been checked towards the official documentation for MuleSoft and Salesforce in November 2026. Evaluation examples are qualitative.
What are you able to do with MuleSoft API integration?
MuleSoft API integration connects functions, APIs, and knowledge sources by way of reusable providers that help operational workflows and enterprise-wide knowledge entry. Groups can construct real-time endpoints, automate knowledge motion, and make legacy-system data accessible to newer functions.
| Use case | What the mixing allows | Enterprise instance |
| CRM and ERP connectivity | Join cloud CRM knowledge with enterprise back-office programs. | A gross sales staff makes use of an API to retrieve buyer account data from Salesforce alongside ERP order knowledge. |
| Legacy-system entry | Expose chosen capabilities of older functions by way of APIs. | A buyer portal retrieves stock availability from a legacy warehouse system and not using a direct database connection. |
| Order and buyer workflows | Orchestrate requests throughout a number of functions. | An order service validates buyer particulars, then requests inventory and delivery data from separate programs. |
| Knowledge transformation | Map between JSON, XML, CSV, and differing system schemas with DataWeave. | An integration converts ERP XML right into a constant JSON response for a gross sales utility. |
| API governance | Apply insurance policies, publish reusable property, and monitor API site visitors. | An integration staff manages entry insurance policies and observes the efficiency of APIs consumed by a number of departments. |
How does MuleSoft API-led integration structure work?
MuleSoft’s API-led connectivity mannequin separates entry to supply programs, reusable enterprise logic, and consumer-specific experiences. These are architectural roles, not three necessary deployments for each small integration.
| API layer | Duty | Instance |
| System APIs | Present managed entry to programs of report. | A Salesforce System API retrieves Account fields from CRM. |
| Course of APIs | Mix or remodel data and implement reusable enterprise logic. | A customer-profile service combines CRM and billing knowledge. |
| Expertise APIs | Current knowledge in a format suited to a selected channel. | A cell utility receives a concise customer-profile JSON response. |
How the layers work collectively: A buyer portal can name an Expertise API to request account particulars. That API makes use of a Course of API to mix buyer data from a Salesforce System API and order historical past from an ERP System API. This can be a conceptual multi-layer design; the Salesforce tutorial beneath demonstrates an easier single-flow lookup, not all three API layers.
For a single read-only lookup, one Mule move could also be ample. Layered APIs grow to be extra helpful when a number of groups or functions want the identical underlying capabilities. MuleSoft additionally makes use of DataWeave for transformation, Anypoint Trade for reusable property, and API Supervisor for relevant gateway insurance policies. See MuleSoft’s API integration overview.
Which MuleSoft integration methodology do you have to use?
Select a supported Anypoint Connector for a identified enterprise utility, an HTTP Request connector for a normal REST endpoint, and API Supervisor when the revealed API wants centralized governance. The most suitable choice depends upon the goal system, authentication mannequin, reuse necessities, and internet hosting atmosphere.
| Integration methodology | What it allows | When to make use of it |
| Prebuilt Anypoint Connectors | Hook up with supported functions, databases, and providers with configured operations. | Accessing Salesforce, ERP, databases, or messaging programs with out manually implementing each protocol. |
| HTTP Listener and Request | Expose an HTTP endpoint or name an exterior HTTP API. | Creating an application-facing REST endpoint or connecting to a service and not using a devoted connector. |
| DataWeave | Rework and map knowledge between buildings and codecs. | Normalizing buyer or order information for downstream customers. |
| API design and Trade | Outline contracts and publish reusable API property. | Coordinating API reuse throughout groups and tasks. |
| API Supervisor/gateways | Handle supported insurance policies, entry, and site visitors. | Making use of organization-level API governance after an API is offered. |
| Runtime Supervisor/monitoring | Deploy, function, and observe Mule functions. | Supporting manufacturing integrations and diagnosing failures. |
How do you name an exterior REST API from MuleSoft?
Use the HTTP Request connector inside a Mule move to name an exterior REST API. Configure the goal URL, HTTP methodology, and required authentication or headers. MuleSoft sends the request and makes the response accessible for additional processing, reminiscent of remodeling knowledge with DataWeave. Not like HTTP Listener, which accepts incoming requests, HTTP Request sends requests to exterior endpoints.
API integration vs. API administration: In MuleSoft, integration connects programs, transforms knowledge, and orchestrates workflows by way of Mule functions. API administration focuses on securing, governing, monitoring, and controlling entry to uncovered APIs. Anypoint Platform helps each, however constructing an integration doesn’t mechanically configure its API administration insurance policies.
What do G2 customers say about MuleSoft API integrations?
Latest G2 reviewers describe MuleSoft Anypoint Platform as helpful for reusable APIs, Salesforce connectivity, and centralized API administration. Particular person reviewers additionally establish onboarding complexity, debugging effort, and licensing concerns. These are qualitative experiences relatively than statistical findings about all customers.
| Evaluation theme | What G2 customers report | Integration takeaway |
| Reusable API structure | Reviewers worth APIs and integration property that may be reused throughout functions. | Reusable layers could scale back repeated point-to-point work. |
| Salesforce connectivity | Some reviewers describe connecting Salesforce with exterior programs. | MuleSoft can assist centralize CRM entry and business-system exchanges. |
| Governance and visibility | Customers point out centralized API administration and monitoring. | Operational visibility issues as integrations develop. |
| Implementation effort | Some reviewers describe a studying curve and time-consuming troubleshooting. | Plan for specialist abilities, testing, and governance. |
What works effectively for MuleSoft integrations?
A G2 reviewer integrating Salesforce with exterior programs describes how reusable APIs scale back the necessity for separate point-to-point connections. A reviewer describing reusable integrations equally says their subsequent integration turned simpler as soon as widespread connections had been established.
One other reviewer discussing API reuse and monitoring appreciates having improvement, API reuse, monitoring, and administration in a single atmosphere. A reviewer centered on API-led connectivity additionally calls out safety, monitoring, and governance as strengths.
The place do customers see alternatives for enchancment?
A G2 reviewer discussing implementation complexity describes a studying curve for groups new to integration and notes that advanced deployments want specialist abilities. The Salesforce integration reviewer suggests enhancing error visibility to make cross-system troubleshooting simpler.
Value and atmosphere complexity additionally seem in particular person accounts: a reviewer discussing enterprise-scale integrations mentions licensing, infrastructure, and efficiency tuning. These observations ought to inform mission scoping relatively than be handled as common limitations.
How do you expose Salesforce knowledge by way of a REST API utilizing MuleSoft?
To attach MuleSoft to Salesforce, create a Mule utility in Anypoint Studio, configure an authenticated Salesforce Connector, expose a GET endpoint with HTTP Listener, retrieve an Account by its Salesforce report ID, remodel the end result with DataWeave, and take a look at the entire request. The instance beneath walks by way of these operations so as.
Instance workflow: On this native demonstration, an HTTP consumer requests GET /api/accounts/{accountId}. MuleSoft makes use of its configured Salesforce credentials to retrieve the Account and returns its ID, identify, and business as JSON. The workflow doesn’t modify Salesforce knowledge. Client authentication and authorization should be configured earlier than exposing the endpoint past native testing.
Earlier than you start: Use a Salesforce sandbox and a take a look at Account that you’re licensed to entry. You want an Anypoint Platform account, a suitable Anypoint Studio set up, Mule runtime, Salesforce Connector, and Salesforce API permissions. This can be a configuration walkthrough with illustrative expressions, not an entire importable Mule XML utility. The mixing has not been independently executed with reside credentials.
Step 1: Create a Mule mission and put together Salesforce entry
Open Anypoint Studio and choose File > New > Mule Venture. Title the mission salesforce-account-api, then select a Mule runtime suitable with the Salesforce Connector. For Connector 12.x, test compatibility with Java 17, Mule 4.9 or later, and Studio 7.21 or later.
Put together a licensed Salesforce sandbox and a take a look at Account. To configure an OAuth Shopper Credentials connection for a brand new integration:
- In Salesforce Setup, open Exterior Shopper App Supervisor and create a brand new Exterior Shopper App.
- Allow OAuth and choose the Handle person knowledge through APIs (
api) scope, topic to your group’s safety insurance policies. - Allow Shopper Credentials Stream. Within the app’s OAuth insurance policies, assign a licensed Run As (execution) person.
- Acquire the Exterior Shopper App’s Client Key and Client Secret for configuring MuleSoft. Retailer them securely, not in supply management.
- Verify that the Run As person has API entry, learn entry to the
Accountobject, and field-level entry toId,Title, andBusiness.
Current Salesforce Related Apps can proceed to work underneath their supported configurations, however Salesforce restricted the creation of recent legacy Related Apps starting in Spring 2026. Observe your Salesforce group’s approval procedures for enabling and authorizing the Exterior Shopper App. See MuleSoft’s Salesforce Connector documentation.
Step 2: Configure the Salesforce connection
To configure OAuth 2.0 authentication for a MuleSoft integration with Salesforce, use the Salesforce Connector’s OAuth Shopper Credentials connection kind. In Anypoint Studio, find Salesforce Connector within the Mule Palette and add it to your mission if crucial. Open International Parts to create a connector configuration, or configure it when choosing the Retrieve operation in Step 4.
| Salesforce connector discipline | What to enter |
| Connection kind | OAuth Shopper Credentials |
| Shopper ID | Exterior Shopper App Client Key. |
| Shopper Secret | Exterior Shopper App Client Secret, referenced from safe properties. |
| Token URL | Your Salesforce group’s OAuth token endpoint. Use the sandbox’s precise My Area endpoint for a sandbox. |
| Scopes | Non-compulsory connector setting; if specified, align it with the OAuth scopes accredited in Salesforce (for this instance, api). Configure the scope grant within the Exterior Shopper App. |
| API model | Non-compulsory override; in any other case the connector makes use of its default supported Salesforce API model. Verify conduct for the put in connector launch. |
The token endpoint usually follows this sample:
https://{your-salesforce-domain}/providers/oauth2/token
Use the precise My Area host on your group or sandbox; don’t assume the manufacturing URL applies to the sandbox. Save the configuration and choose Take a look at Connection. If authentication fails, confirm the app’s Shopper Credentials coverage, Client Key/Secret, token URL, and the Run As person’s permissions. See the Salesforce Connector reference.
What you have accomplished: MuleSoft can authenticate to Salesforce. The following steps create the HTTP endpoint and place the operations of their execution order.
Mule move at a look
GET /api/accounts/{accountId}
Learn Account
DataWeave to JSON
Step 3: Create a GET endpoint with HTTP Listener
On the Mule move canvas, begin with HTTP > Listener as the primary processor. If the brand new mission has no move but, dragging the Listener to the canvas creates one. Don’t add Salesforce Retrieve earlier than this Listener. Configure the Listener’s connection and request settings as follows:
- Host:
localhostor127.0.0.1, for local-only improvement. - Port:
8081. - Path:
/api/accounts/{accountId}. - Allowed Strategies:
GETwithin the Listener’s Superior tab.
The endpoint now has a route for accepting an Account ID, though it is not going to return a Salesforce report till the remaining processors are configured. A pattern native request is:
GET http://localhost:8081/api/accounts/001XXXXXXXXXXXXXXX
Substitute the placeholder together with your Salesforce take a look at Account ID. Limiting Allowed Strategies issues as a result of HTTP Listener in any other case accepts all supported request strategies by default. See the HTTP Listener configuration reference.
Step 4: Cross the Account ID into the Salesforce Retrieve operation
Insert a Set Variable processor between HTTP Listener and Salesforce Retrieve. Title the variable accountId and set its worth to the trail parameter:
#[attributes.uriParams.accountId]
Subsequent, drag Salesforce > Retrieve after Set Variable. Select the examined OAuth international configuration from Step 2, set Sort to Account, and enter this expression in Retrieve Request:
#[{ fields: ['Id', 'Name', 'Industry'], ids: [vars.accountId] }]
The fields array selects the Salesforce fields to retrieve. The ids array passes a number of Salesforce report IDs; right here it incorporates the ID from the URL. The Retrieve operation is read-only and returns an array of outcomes. Add enter validation for malformed IDs earlier than the connector in manufacturing. See the Retrieve operation reference.
Stream order thus far: HTTP Listener → Set Variable (accountId) → Salesforce Retrieve. In Step 5, add Rework Message after Retrieve; the HTTP Listener sends the ensuing payload again to the caller when the move completes.
Step 5: Format the Salesforce Account knowledge with DataWeave
After the Retrieve operation, drag Rework Message into the move. Configure its output as JSON and use the next illustrative DataWeave mapping to pick the three Account fields:
%dw 2.0
output utility/json
---
(payload default []) map ((account) -> {
id: account.Id default null,
identify: account.Title default null,
business: account.Business default null
})
This mapping returns an array as a result of Salesforce Retrieve helps a number of IDs, though the demonstration requests only one. For an accessible take a look at Account, the response might appear to be this:
[
{
"id": "001XXXXXXXXXXXXXXX",
"name": "Example Account",
"industry": "Technology"
}
]
Deal with lacking information individually: Salesforce retrieval can produce a null entry when an Account is unavailable or inaccessible. The instance mapping could return an object containing null values as an alternative of HTTP 404. Earlier than sharing the API, add a validation or Selection router to establish lacking outcomes and configure an applicable sanitized HTTP response. Confirm the precise returned object form in your connector model. See MuleSoft’s DataWeave mapping reference.
Step 6: Run the move and take a look at the entire connection
Save the Mule utility and choose Run As > Mule Utility in Anypoint Studio. Verify the applying begins with out connector or authentication errors. Then request a licensed take a look at Account from a terminal or API consumer:
curl -i 'http://localhost:8081/api/accounts/001XXXXXXXXXXXXXXX'
Anticipated end result: The API returns a JSON array with the permitted Salesforce Account fields. Verify that id matches the requested Account and that identify and business match values seen to the licensed Salesforce person.
Additionally take a look at an invalid or nonexistent Account ID, inadequate discipline permissions, a failed OAuth connection, and a downstream timeout. This instance does not implement customized validation, HTTP error mapping, or sanitized error responses. Add these earlier than exposing the API exterior a managed atmosphere, and take a look at success and failure eventualities with MUnit.
How do you troubleshoot a MuleSoft-to-Salesforce connection?
If the take a look at request fails, test the difficulty towards the corresponding setup step earlier than altering your API design.
| Downside | What to test |
| OAuth authentication fails | Verify the Exterior Shopper App Client Key/Secret, sandbox My Area token endpoint, enabled Shopper Credentials move, accredited scopes, and Run As person. |
| HTTP endpoint can’t be reached | Make sure the Mule app is working, Listener is certain to localhost on port 8081, the trail matches, and the request makes use of GET. |
| Account is lacking or inaccessible | Verify the report ID, Account object learn entry, field-level permissions, and whether or not the report is seen to the execution person. |
| JSON fields are unexpectedly null | Examine the precise Retrieve payload and discipline illustration earlier than adjusting DataWeave mapping or null dealing with. |
| Salesforce restrict or timeout errors | Evaluation relevant Salesforce API limits, request quantity, timeout settings, and retry conduct. Don’t retry blindly. |
Essential: This desk is diagnostic steering, not an applied error handler. The illustrative move nonetheless requires specific enter validation and sanitized HTTP error mappings earlier than exterior deployment.
Step 7: Safe, deploy, and monitor the Salesforce integration
As soon as the native move works, transfer to a supported MuleSoft deployment atmosphere and configure applicable HTTPS, client authentication, authorization, secret storage, and entry insurance policies. The place supported, publish the API definition by way of Anypoint Trade, apply governance insurance policies utilizing API Supervisor, and monitor the Mule app by way of Runtime Supervisor and Anypoint Monitoring.
Earlier than manufacturing rollout, verify the Account fields you expose are applicable, implement Salesforce API limits, validate enter, implement secure failure responses, and doc who owns the mixing. An API-led System/Course of/Expertise design could be launched later if a number of customers want reusable providers.
Workflow recap: Native HTTP GET request → MuleSoft HTTP Listener → Account ID variable → Salesforce Retrieve → DataWeave JSON transformation → HTTP response.
Implementation boundary: This can be a read-only Salesforce Account retrieval tutorial. It doesn’t create or replace information, implement all three API-led structure layers, or provide an entire compiled Mule XML mission. The instance stays documentation-based and has not been live-tested with MuleSoft and Salesforce credentials.
What do you have to think about earlier than deploying MuleSoft API integration?
Earlier than rollout, validate connector compatibility, authentication, API permissions, knowledge contracts, operational visibility, and complete platform prices. A connection that works in a sandbox nonetheless wants manufacturing governance and failure dealing with.
| Consideration | What to test | Why it issues |
| Authentication and scopes | Use a supported OAuth methodology, licensed integration person, and least privilege. | Protects Salesforce information and repair credentials. |
| Connector and runtime variations | Verify Mule runtime, Java, and Salesforce Connector compatibility. | Avoids deploying an unsupported mixture. |
| Knowledge contracts | Evaluation Account fields, null dealing with, schemas, and API versioning. | Prevents downstream breaking modifications. |
| API-led reuse | Determine whether or not the endpoint wants System, Course of, or Expertise API separation. | Prevents both duplicated point-to-point integrations or pointless layers. |
| Error dealing with and limits | Take a look at lacking IDs, authentication failures, API quotas, retry guidelines, and timeouts. | Retains failures diagnosable with out overwhelming related programs. |
| Monitoring and governance | Configure secure logging, entry insurance policies, and monitoring in supported environments. | Makes operational points simpler to detect and remediate. |
| Licensing and internet hosting | Verify present MuleSoft entitlements, deployment capability, and Salesforce API limits. | Avoids sudden prices or runtime constraints. |
Take a look at different API integration guides:
FAQs about MuleSoft API integration
Obtained extra questions? Discover the solutions beneath.
Q1. What does API-led integration imply in MuleSoft?
API-led integration in MuleSoft is an method that organizes connectivity into reusable APIs. System APIs entry sources of report, Course of APIs coordinate enterprise logic, and Expertise APIs tailor data to functions or channels. These are architectural patterns relatively than necessary parts of each integration.
Q2. How do you join MuleSoft Anypoint Platform to Salesforce?
Create a Mule utility in Anypoint Studio, configure the Salesforce Connector with a supported authentication methodology, add a Retrieve or one other related operation to a Mule move, and take a look at the end result. For a read-only instance, use the Retrieve operation to fetch Account fields by report ID and remodel the response with DataWeave.
Q3. What’s the distinction between MuleSoft API integration and EAI?
Enterprise utility integration (EAI) is the broader follow of connecting enterprise functions and processes. MuleSoft API integration makes use of APIs and Mule flows as one implementation method, typically emphasizing ruled, reusable interfaces. Organizations could mix API-led designs with messaging, batch jobs, and different integration patterns.
This fall. Can MuleSoft join cloud providers with legacy on-premises programs?
Sure. MuleSoft helps connectors and integration patterns for cloud and on-premises programs. The precise method depends upon the goal system, networking, accessible connectors, authentication, runtime placement, and operational necessities.
Q5. Must you use MuleSoft as an alternative of a customized Salesforce API integration?
MuleSoft could match when a number of programs want reusable connections, centralized governance, transformations, and monitoring. A direct Salesforce API integration could also be easier for a narrowly scoped utility. Evaluate complexity, present infrastructure, possession, utilization, and prices earlier than selecting.
Q6. Which instruments are used to construct and handle MuleSoft APIs?
Anypoint Studio or different supported improvement environments construct Mule functions; connectors hyperlink to programs; DataWeave transforms knowledge; Trade catalogs reusable property; API Supervisor applies supported insurance policies; and Runtime Supervisor and monitoring instruments assist function deployed functions.
Q7. Is MuleSoft API integration free?
MuleSoft’s manufacturing API integration and administration capabilities can contain paid subscriptions and runtime or internet hosting prices. Trial and accessible entitlements fluctuate. Verify the present vendor settlement and pricing steering relatively than assuming that connector availability makes an integration free.
How are you going to construct reusable MuleSoft integrations?
MuleSoft API integration is most beneficial when the identical knowledge or enterprise functionality should serve a couple of utility. Begin with a clearly scoped workflow, expose solely the fields that buyers want, and plan for safety, testing, and upkeep as utilization grows. Reusable APIs can then grow to be the idea for wider integration applications relatively than remoted tasks.
Evaluating integration software program? Discover iPaaS Software program on G2 to check instruments and skim person experiences.







