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

AI in Salesforce

Transform businesses with the power of Artificial Intelligence leveraged through Salesforce Einstein

Blog in

Artificial Intelligence is powering next-generation customer experiences with smart predictions, intelligent recommendations, timely automation and much more. Gartner predicts that by 2020, a staggering 85% of…

Popular Salesforce Videos