Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5537

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

$
0
0

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


Viewing all articles
Browse latest Browse all 5537