BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
96 / 278 · Module 5 — Salesforce Data Model + SOQL · filtered: code← prev⊞ allnext →

5.33A great QA/developer use case: reconciliation

Say Mule imports:

10,000 customer records

Don't test only:

request returned success

You might perform:

count target records
sample IDs
compare key fields
find missing IDs
find unexpected duplicates

SOQL:

SELECT COUNT()
FROM Account
WHERE Import_Batch_ID__c = 'BATCH-817'

Then:

SELECT
    External_Customer_ID__c,
    Name
FROM Account
WHERE Import_Batch_ID__c = 'BATCH-817'

This is directly useful for both development debugging and automation.