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
Sai LavuSai Lavu 

SOQL isDeleted

Am sure this is something silly...
 
I delete a contact & run the following SOQL but get no results - I have read access on that Contact.
 
Code:
SELECT Id, isDeleted FROM Contact WHERE isDeleted = true

Any clues?
AltiumForceAltiumForce
Mr Lavu, use QueryAll LOL

Sai LavuSai Lavu
A case of RTFM...needed ALL ROWS at the end.
 
Code:
SELECT Id, isDeleted FROM Contact WHERE isDeleted = true ALL ROWS

 
AltiumForceAltiumForce
Hi Sai,
 
Great finding!
irfan azizirfan aziz
So how does this isdeleted work in SOQL? i did similar test, deleted a row and then tried to retrieve it using the filter 'isdeleted=True' but no rows returned. Is there something for SOQL and tthat i can test via workbench SOQL interface.