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
girbot56girbot56 

VF Table with ListViews and No. of Records

Hi,
I would like to be able to build a VF table that shows the number of records that appear in each ListView. I can happily hard code the queries and have the page refresh on a schedule but I would the VF page to automatically display the list views the current user can access and the record count.

I can display a table with the ListView names but not sure how to return the number of records for each one...any help appreciated :)
girbot56girbot56
Ok so I'm now messing about with getListViewOptions to return the list views for the object (Account for demo purposes), but this only returns the Label and Id -  so I guess this can't be used to recreate a query based upon the list views filters to give me a count of matching Accounts?