function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
select count(id) from contact
You can simply execute the below query.
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
you can try the following
AggregateResult ar = [select count(id) from contact];
Thanks,