Welcome!
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
This question has been flagged
1
Reply
27
Views
Go to Setup → Storage Usage — it shows record counts for all standard and custom objects without any coding.
If you want it through code, run this in Developer Console → Anonymous Window:
for (SObjectType obj : Schema.getGlobalDescribe().values()) {
try {
System.debug(obj.getDescribe().getName() + ' → ' + Database.countQuery('SELECT count() FROM ' + obj.getDescribe().getName()));
} catch (Exception e) {}
}
Your Answer
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up