Activity Forums Salesforce® Discussions How to count the number of SOQL statement received in a request ?

  • Piyush

    Member
    September 19, 2019 at 8:18 am

    Hi,

    You can use like this in your program to count the number of SOQL statement received in a request:-

    Result[] count = [select count(id) from Service__c ];
    System.debug(count.size());

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos