BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
77 / 81 · Module 18 — Interview Coding Scenarios · filtered: interview← prev⊞ allnext →

18.19Scenario 18 — Retry

Prompt:

“Salesforce occasionally has temporary network failures.”

Sketch:

<until-successful
    maxRetries="3"
    millisBetweenRetries="2000">

    <salesforce:upsert ... />

</until-successful>

Then add the critical explanation:

“I'd only wrap a safe/idempotent operation here. If this were a non-idempotent Create, a timeout could mean Salesforce committed but Mule never got the response.”

That sentence is more important than the XML.