+ Start a Discussion

VF Table with ListViews and No. of Records

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 :)
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?