Back to Top

How to check custom object have no. of records by SOQL Query

Updated 24 July 2015

If you want to check custom object have no. of records by SOQL Query
or their Record size then you need to make a list.

List mwList = [
   SELECT Id FROM Multi_Weather__c];
System.debug('mwList size: ' + mwList.size());

You Will get the no. of records in custom object for Example mwList size:2

Searching for an experienced
Salesforce Company ?
Find out More
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home