You need to sign in to do that
Don't have an account?

Hi All, how can I get deleted date of a record from Recycle bin using SQL in apex?
Hi All, how can I get deleted date of a record from Recycle bin using SQL in apex?
You need to sign in to do that
Don't have an account?
Yes you can retrive it if you know some details about the record like name or id .. etc. You just need to refer lastmodifieddate field like below.
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
Please, try this one.
List<opportunity> deletedOpps = [select id, name from opportunity where isDeleted = true and Id = '<RecordIdGoesHere>' ALL ROWS];
system.debug(deletedOpps);
If, it helps. Pls, mark it as best answer.
Thank you.