Tuesday, December 22, 2015

Get record count from salesforce group by createddate

SELECT Count(Id), calendar_year(CreatedDate) from Task
GROUP BY calendar_year(CreatedDate)
Order By calendar_year(CreatedDate)