Activity Forums Salesforce® Discussions How to count id in query in Salesforce?

  • Shweta

    Member
    October 7, 2020 at 4:17 pm

    <div>Try this query to count Id for any sObject:</div>Select count(Id) from Account // It will return the number of Id in the account.

  • Aditya

    Member
    October 7, 2020 at 8:20 pm

    <div>Try this query to count Id for any sObject:</div>Select count(Id) from Account // It will return the number of Id in the account.

  • Ayush

    Member
    October 9, 2020 at 3:23 am

    SELECT Count(Id) FROM Account . Try this!

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos