You need to sign in to do that
Don't have an account?
anvesh@force.com
how to get the recent deleted records using query?
how to get the recent deleted records using query?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
how to get the recent deleted records using query?
Eg.
DateTime deletedDt = Datetime.now();
Account[] acctLists =
[SELECT Id, Name FROM Account
WHERE LASTMODIFIEDDATE<:deletedDt AND IsDeleted = TRUE ALL ROWS];
use the Lastmodifieddate to refine your filter.
Thanks
Utsav
[Do mark this answer as solution if it works for you and give a kudos.]