14.20Count matters
Don't merely query:
SELECT Id
FROM Account
WHERE External_Customer_ID__c = 'IDEMP-100'
LIMIT 1
That would still pass with three duplicates.
For idempotency, explicitly verify:
record count = 1
Then inspect the one record.
Don't merely query:
SELECT Id
FROM Account
WHERE External_Customer_ID__c = 'IDEMP-100'
LIMIT 1
That would still pass with three duplicates.
For idempotency, explicitly verify:
record count = 1
Then inspect the one record.