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
SkyPlannerSkyPlanner 

Retrieve ListView Metadata using APEX

I need to get the ListVIews for a particular object, then get all the fields that are contained in those lists so I can re-create those tables(list views) in a visual force page.

The same way you can get all the fields for an specific object using the metadata, I need to do it but for the list views related with an specific object.

 

I had found some info about the ListVIew Metadata but not a way to retrieve this info via apex code.

Sample code or any information will be highly appreciated.

 

Thanks in advance.

 

SkyPlanner Team

bob_buzzardbob_buzzard

This information isn't available through Apex - you'd need to use the metadata api.