Tuesday, January 28, 2014

Which SOQL statement can be used to get all records even from recycle bin or Achieved Activities

Which SOQL statement can be used to get all records even from recycle bin or Achieved Activities

We will need “ALL Rows” clause of SOQL.
Sample :
SELECT COUNT() FROM Contact WHERE AccountId = a.Id ALL ROWS


No comments:

Post a Comment