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
Domnic JohnsonDomnic Johnson 

Lead List View of Users in One Visualforce Page

Hi, 

Is it possible to create a visualforce page in which we have list view button of all the users?

Right now the boss likes to see all the lead list view of our users, so he logs in as users and see the list view. 

I want to create a visualforce page from where all the list view of all the users can be accessed.

Thanks
Raj VakatiRaj Vakati
You can able to do it by using salesforce list view object .. 


https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_listview.htm

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_listviewchart.htm
 
SELECT Id FROM ListView WHERE SObjectType = 'Case'


 
Fields:
  • CreatedById
  • CreatedDate
  • DevelperName
  • Id
  • IsSoqlCompatible
  • LastModifiedById
  • LastModifiedByDate
  • LastReferenceDate
  • LastViewedDate
  • Name
  • NamespacePrefix
  • SObjectType
  • SystemModstamp
  • Child Relationships:
  • ListViewChartInstance
  • NavigationMenuItem
  • UserListView
Other Objects 
  • ListViewChart
  • ListViewChartInstance
 
Domnic JohnsonDomnic Johnson
Hi Raj, 

Am still exploring Visualforce can you please suggest or guide me to link where can I learn and create this please.

Thanks
Raj VakatiRaj Vakati

Refer this links 

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_sosc_list_views.htm
https://developer.secure.force.com/cookbook/recipe/selecting-records-with-a-visualforce-custom-list-controller
https://www.jitendrazaa.com/blog/salesforce/listview-filter-in-apex-with-paging-and-navigation/
Domnic JohnsonDomnic Johnson
Thanks Raj will check them out