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
Arun KArun K 

count number of records in same object.

how to count number of records in same object.

I require a way to count no of records in same custom object.

 

 

Can anyone say what is the best way to get it.

 

thanks

Anoop AsokAnoop Asok

Hi,

SOQL for getting the record count: [select count() from <sObject> where <conditions>]

 

Thanks,

Anoop

Teach_me_howTeach_me_how

Database.countquery