Anypoint Connector for Salesforce Composite (Salesforce Composite Connector) provides a way to integrate with the Salesforce Composite API. The connector exposes convenient methods for preparing subrequests, executing them in a batch, and parsing the results.
Hello Everyone,
In this blog post, we are going to learn how we can configure the Salesforce Composite Connector using Mule 4.
Anypoint Connector for Salesforce Composite (Salesforce Composite Connector) provides a way to integrate with the Salesforce Composite API. The connector exposes convenient methods for preparing subrequests, executing them in a batch, and parsing the results. The connector provides DataSense for the preparation of subrequests and for parsing a response of an execution.
According to MuleSoft.com
There is ample no of operations that we can perform using Salesforce Composite Connector. To see the list of all the Operations visit This link.
In this blog post we will see how we can configure composite connector and perform a Pre Query operation.
In Studio, create a new Mule project in which to add and configure the connector:
Add Salesforce Composite Connector to your Mule project, follow the below steps:

A source initiates a flow when a specified condition is met. You can configure one of these sources to use with Salesforce Composite Connector: For the demo, we are going to Use HTTP Listener
For example, to configure an HTTP listener, follow these steps:



To add an operation for Salesforce Composite Connector, follow these steps:


Use below code for Composite Request pre query operation
{
"compositeRequest": [
{
"method": "GET",
"url": "/services/data/v51.0/query/?q=SELECT+Id,Name,Email,Phone,Fax+FROM+Contact+Limit+10",
"referenceId": "refc"
},
{
"method": "GET",
"url": "/services/data/v51.0/query/?q=SELECT+Id,name+FROM+Account",
"referenceId": "refa"
},
{
"method": "GET",
"url": "/services/data/v51.0/query/?q=SELECT+Id,name+FROM+organization",
"referenceId": "refo"
}
]
}
You can also use “Select Id, Name From Account”
%dw 2.0
output application/json
---
payload
Step6 – Run the Project

Thanks for reading 🙂 Please do like share & Subscribe
#Mule4 #Integration #MuleSoft #SalesforceCompositeConnector
[…] create a Rating Component in Lightning… How to Create and Update dependent picklist values… How to Configure Salesforce Composite Connector using Mule… How to use Lightning Web Component inside Visual… How to integrate Salesforce Platform Event […]
[…] seen how to configure MuleSoft Composer in MuleSoft AnyPoint Studio. If you missed this Here is the Link for […]