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
Sample Query to fetch From Task
Select id,whoid,whatId,status from Task where createddate=yesterday
OutPut From Developer Console
Enjoy......!!!!
asd
ReplyDelete