BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
172 / 1048 · Module 6 — Mule Routing and Orchestration← prev⊞ allnext →

6.3Real Salesforce Choice example

Suppose upstream sends:

{
  "customerId": "C001",
  "operation": "DELETE"
}

Business rule:

CREATE / UPDATE
→ upsert Salesforce

DELETE
→ mark Account inactive

Not actually delete.

So:

Choice

operation == "DELETE"
   ↓
Update Status__c = "Inactive"

otherwise
   ↓
Upsert Account

This is exactly where Choice belongs.