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
gbu.varungbu.varun 

Get records of a particular list view

Hi All,

 

 

I want to get records of a particular list view in controller like I can get records of a particular view on visualforce force page as:

 

<apex:page standardController="Account" >
    <apex:enhancedList height="300" rowsPerPage="10" Listid="00B90000003eOf9">       
</apex:page>

 

 

00B90000003eOf9  is the id of list view.  I want to get record these records into a list in Controller. How can I do it?

Best Answer chosen by Admin (Salesforce Developers) 
gbu.varungbu.varun

I have resolved it using ApexPages.StandardSetController and I filter result by putting setCon.setFilterId('00B90000003eOef');  into my code.