function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vishal RanjanVishal Ranjan 

readMetadata Limitation

Hello Everyone,
I have a requirement in which i have to read approx 1500 list views. Please guide me to acheive this.
Problem is I can read only 10 list view in one call out and maximum call out allowed in one execution is 100. so maximum number of list view i can read in one execution is 1000. so need help to overcome this limit,

Thanks in advance !
Alain CabonAlain Cabon
For overcoming the limit calling readMetadata directly in Apex, there is always the retrieve option (downloading all the data in an XML file) but the list of fields will be limited.

A sample in JAVA:

You need a package.xml Manifest File:

List Views for Standard Objects
The easiest way to retrieve list views for a standard object is to retrieve the object. The list views are included in the retrieved component. 

Vishal RanjanVishal Ranjan
Thanks for your reply Alain.
I overcome this limit by using batch job.