February 25, 2016 by SutoCom Solutions Count more than 50000 records in salesforce Using AggregateResult Integer intCount = 0; for(AggregateResult result :[SELECT COUNT(Id) intVal FROM Custom_Object__c]) { intCount+=(Integer)result.get(‘intVal’); } System.debug(̵… Source: Count more than 50000 records in salesforce Share this:Click to share on LinkedIn (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on Blogger (Opens in new window)Click to share on Facebook (Opens in new window)Click to print (Opens in new window)Click to email this to a friend (Opens in new window)Click to share on Reddit (Opens in new window)Like this:Like Loading... Related