• Ranjith YM
  • 10 Points
  • Member since 2019

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
  • 0

I can get the count of leads which has an account based on ConvertedAccountId/ConvertedContactId but I totally stuck to get the count of an Account which has no corresponding lead.

Can someone please help me with this... thanks ini advance

  List<Lead> numberOfLeads = [select Id from Lead];

I need number of Leads but above my code is returning 0 always, please help me. thanks in advance

I am trying to get count of lead assigned to User in APEX, there are 300+ leads assigned to each users, i can able to see when i query but same if i add in APEX code, its returning zero,

 for(User activeLO : activeLOs){
           Integer numberOfLeads = [select count() from Lead where OwnerId =:activeLO.Id];
            System.debug('Lead Count ::' +numberOfLeads );