Activity Forums Salesforce® Discussions Which SOQL statement can be used to get all records even from recycle bin or Achieved Activities in Salesforce?

  • shariq

    Member
    September 22, 2018 at 6:25 pm

    We will need “ALL Rows” clause of SOQL.
    Sample:

    SELECT COUNT() FROM Contact WHERE AccountId = a.Id ALL ROWS

  • Parul

    Member
    September 23, 2018 at 6:21 am

    SELECT COUNT() FROM OPPORTUNITY WHERE AccountId = a.Id ALL ROWS

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos