7

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

1 Answer 1

4

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.)

2
  • Can u share any example related to Screen Scrape
    – Rajesh
    Aug 2, 2016 at 10:47
  • 3
    @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, 2016 at 11:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .