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
gaurav.sfdcgaurav.sfdc 

How to check if ListView is public or private?

I am using ListViews in apex.using AccSetController.getListViewOptions()

 I want to check if the listview is private or public i.e. ('Visible to me' or all) ? 

Any help would be appreciated

 
ShashankShashank (Salesforce Developers) 
The ListView object via the metadata API has a "SharedTo" field available which may be accessed using Apex metadata API.

Listview: https://www.salesforce.com/us/developer/docs/api_meta/Content/meta_listview.htm
Apex metadata API: https://github.com/financialforcedev/apex-mdapi