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

6.7For Each example

Suppose each customer requires complicated individualized work:

For Each customer
     ↓
Query special configuration
     ↓
Call external service
     ↓
Transform
     ↓
Update Salesforce

This may legitimately require record-by-record processing.

But be careful.

If you have:

10,000 records

and inside each iteration:

Salesforce Query
Salesforce Update

you've probably designed something inefficient.