Activity Forums Salesforce® Discussions How can we get the records from recycle bin while running a SOQL Query in salesforce?

  • Somendra

    Member
    September 3, 2019 at 8:28 am

    To select only deleted records-

    select id from *objectName* where isDeleted = true ALL ROWS

    To select deleted as well as non Deleted records-

    select id from *objectName* ALL ROWS

     

    • This reply was modified 5 years, 3 months ago by  Somendra.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos