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
Nat SavNat Sav 

List View in Salesforce Lightning

Hi Team,
could you help me please how can I find all views in Salesforce Lightning(their fields, define if they are default or custom, and is it possible to know how often users use them)?

Thank you.
NagendraNagendra (Salesforce Developers) 
Hi,

May I request you please be more specific on what you want to find about list views(fields).

Assuming that you want to create a list view based on a particular field(might be standard or custom)

List Views are an often unused tool in the Salesforce toolshed. With List Views, you can quickly see particular segments of your data. Instead of spending the time to build a report when you just need to sort by one field (such a state or lead source), you can create a ListView.

List Views use Objects, like Leads, Accounts, Opportunities, and more, to find the data points you’re looking for. As List Views use one field, such as Stage or Close Date, you can narrow down the data to see only what you need.

For detailed information on list views, I would suggest you please refer to below links. Hope this helps.

Kindly mark this as solved if the reply was helpful.

Thanks,
Nagendra
Raj VakatiRaj Vakati
You need to use ListView Sobject .. to query all the list of sobject .. 
 
SELECT Id FROM ListView WHERE SObjectType = 'Case'


Represents a list view. A list view specifies a set of records for an object, based on specific criteria. This object is available in API version 32.0 and later.



And even you can use the rest api 



https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_listviewdescribe.htm

https://salesforce.stackexchange.com/questions/167009/can-we-access-all-listview-records-of-any-object-using-listview-id
https://salesforce.stackexchange.com/questions/120131/getting-user-list-view-mapping-using-apex
https://andyinthecloud.com/2014/09/20/super-listview-viewer-using-winter15-listview-api/
https://www.jitendrazaa.com/blog/tag/listview/


 
Nat SavNat Sav
Thank you.