How to fetch records form recycle bin in Salesforce?

"ALL ROWS" keyword is used to fetch records form recycle bin in Salesforce

Sample SOQL:

SELECT Id, AccountId FROM Contact WHERE IsDeleted = true ALL ROWS

Cheers!!!

No comments:

Post a Comment