Salesforce Fact #354 | ConvertedDate in Lead

Do you know there is a field ConvertedDate on Lead which stores the date on which the lead was converted. It is a date type field.

Suppose we would like to find the no. of leads converted group by the converteddate. We can use the below SOQL for this purpose:

SELECT Count(Id), ConvertedDate FROM Lead WHERE ConvertedDate!=NULL GROUP BY ConvertedDate 

Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow