2

We have Limits class and lot of methods showing current usage of DML statements, SOQL queries etc, but there is no method which shows total amount of storage capacity for records and no method which shows current usage of storage for records? Is that true or am I missing anything?

Created an idea on Idea Exchange, please vote if you find it necessary and must have.

1

There aren't any Apex methods for finding total storage. Because as per my knowledge, that is way beyond Apex's pay grade.

Apex can find limits within the context it is running in such as available heap, available queries, callouts etc.

But things like overall org storage, number of remaining user licenses, test percentage, total code in the org etc are not possible, and in most cases might not be made possible in the future as well.

  • As far as I know at least Overall code coverage and coverage for given class \ given method I can access programatically, I would love to receive everything else in similar way – Patlatus Oct 5 '15 at 9:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.