Friday, March 18, 2016

How to write a SOQL Query to fetch yesterday created from an object

If you want to fetch yesterday created records from any salesforce object you can make use of the 'yesterday' standard keyword in SOQL to get it done easily.



Sample Query to fetch From Task

Select id,whoid,whatId,status from Task where createddate=yesterday


OutPut From Developer Console


Enjoy......!!!!

1 comment: