Skip to main content

Hi ,  

Is there a way to send Salesforce Composite requests in MuleSoft composer .  My usecase is to execute multiple requests ( create multiple objects )  in  a transaction "allorNone" . I tried the option of HTTP connector , however it requires a json schema and in the provided example request , the fields are common to all requests and is very strongly typed .  

 

  "compositeRequest": [ 

    { 

      "method": "POST", 

      "url": "/services/data/v55.0/sobjects/Account/", 

      "referenceId": "refAccount", 

      "body": { 

        "Name": "Doe's Widgets" 

      } 

    }, 

    { 

      "method": "POST", 

      "url": "/services/data/v55.0/sobjects/Contact/", 

      "referenceId": "refContact", 

      "body": { 

        "FirstName": "John", 

        "LastName": "Doe", 

        "AccountId": "@

refAccount.id

      } 

    } 

  ] 

 

Regards, 

Arun

2 answers
  1. Jun 9, 2025, 10:47 PM

    Hi @Arun Arunachalam

    You might be looking for 

    Salesforce composite connector

     to execute the composite requests. 

    At this stage, I'm not sure MuleSoft Composer supports the advanced capabilities provided by the Salesforce Composite Connector. If you’re looking to leverage those functionalities, you’ll need to use MuleSoft’s Anypoint Studio instead.

0/9000