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

  • [adinserter block='9']
  • 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

Understanding the role of Salesforce Consulting in Driving Digital Transformation

Blog in

In today’s rapidly evolving business environment, digital transformation has become a critical priority for companies across all industries. Digital transformation integrates digital technology into an…

Popular Salesforce Videos