function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Surender reddy SalukutiSurender reddy Salukuti 

Lead question

Hi every one,

actually my question is we are converting lead to account and contact and opportunity.

may i won t konw how many records are converted from lead to account 
and the total records which are converted from lead to account how can i caluclate it.


actually this question asked me one interviewr recently

Thank you
Surender reddy
9603757105


 
Tad Aalgaard 3Tad Aalgaard 3
Leads have a field called convertedaccountid.  Use SOQL to query the lead object where that field is not null.  There is also a isconverted field on the Lead object that may be useful to you.