BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
169 / 279 · Module 11 — Salesforce Bulk Processing + Mule Batch Jobs · filtered: code← prev⊞ allnext →

11.21Batch Aggregator

This one matters a lot.

If Mule Batch processes records individually, but Salesforce prefers arrays/batches, you need to aggregate records.

Enter:

Batch Aggregator

Conceptually:

record
record
record
record
...
   ↓
Aggregator size = 200
   ↓
[200 records]
   ↓
Salesforce operation

MuleSoft describes Batch Aggregator as grouping processed records so a processor capable of handling an array can operate on them.