BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
12 / 81 · Module 6 — Mule Routing and Orchestration · filtered: interview← prev⊞ allnext →

6.17Scatter-Gather example

Requirement:

GET /customer-profile/C001 should return Salesforce Account details, outstanding billing balance, and loyalty status.

Flow:

HTTP Listener
      ↓
Scatter-Gather
   ┌───────┼─────────┐
   ↓       ↓         ↓
Salesforce Billing  Loyalty
Query      API      API
   └───────┼─────────┘
           ↓
     Aggregate result
           ↓
      DataWeave
           ↓
        Response

Output:

{
  "customerId": "C001",
  "companyName": "Acme",
  "balance": 4725.50,
  "loyaltyLevel": "Gold"
}