BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
146 / 278 · Module 8 — Configuration and Security · filtered: code← prev⊞ allnext →

8.28Don't make environment differences into code branches

Bad:

if (vars.env == "prod")
    call Salesforce A
else
    call Salesforce B

for configuration differences.

Better:

${salesforce.endpoint}

Different configuration provides the correct value.

Code branches should represent:

business behavior

not:

where the application was deployed

unless there's a strong reason.