I would like to know the way to retrieve Record Type in Current Data Storage Usageenter image description here


This information is not exposed via an API (or a queryable SObject).

All that is available is the total limit value and the total currently used value (not broken out by object type) and to get that you need to make a web service call. An example of that web service call is listed in the idea Access Storage Used information through API.

(If you really need the information per object type you could "screen scrape" the page you have included the screen shot of: annoying and fragile, particularly as Salesforce are moving the UI bit by bit over to Lightning so the page may change.)

  • Can u share any example related to Screen Scrape – Rajesh Aug 2 '16 at 10:47
  • 1
    @Rajesh I don't have one. In principle you scan through the page text you get from String html = new PageReference('/pagePath').getContent().toString(); and match to elements and attributes that by inspection identify the data you want. If you choose to do this you should flag to your customer that it is a fragile approach. I don't recommend you do this. – Keith C Aug 2 '16 at 11:19

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.