function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
baseball123baseball123 

Query Deleted Records in Java Project

I can query deleted records inside of SFDC debug window by adding "all rows" to the end of soql query. But when I run this soql query inside of my Java project, it gives me an error complaining the keyword "all rows". Can anyone tell me how to find the deleted records in SFDC from Java project? 

 

Thanks in advance,

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell

You'd use the queryAll method, depending on exactly what you're trying to do there's also the getDeleted call (which returns much more comprehenive data than queryAll)