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
Cody KindschuhCody Kindschuh 

VIsualforce link to specific list view

Hi,

In Visualforce,  I would like to create a link that goes directly to a list view we have created.  For example.  in SF1, right now the user clicks attendees, then can go through the different views and click 'Administrators'.  we want to skip the click attendees part, and just have Administrators and the other list views on the original VF page, but when I try referencing a specific list view, it shows up as an error.

Thanks,
NekosanNekosan
You can get create url using following function.

 Schema.DescribeSObjectResult anySObjectSchema = customobjectapi.SObjectType.getDescribe();
 String objectIdPrefix = anySObjectSchema.getKeyPrefix();
 PageReference pageRef = new PageReference('/'+objectIdPrefix+'/o');