BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
214 / 279 · Module 14 — External Automated Testing of Mule Integrations · filtered: code← prev⊞ allnext →

14.25Poll the business condition, not just record existence

If async flow creates Account first and Contacts later:

Account appears

doesn't mean processing is complete.

Poll for:

Account exists
AND
expected Contacts exist
AND
Integration_Status__c = COMPLETE

if such a status exists.

Choose a condition representing actual completion.