Another Salesforce blog!!!

Salesforce, Apex

SOQL statement can be used to get all records even from recycle bin


We will need “ALL Rows” clause of SOQL.

SELECT COUNT() FROM Contact WHERE AccountId = a.Id ALL ROWS

Leave a Reply

Your email address will not be published.

*