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
Ravindar SinghRavindar Singh 

How to get records of all the cases belongs to a list view by SOQL query.

I am trying to get records of all the cases belongs to a list view(Pic for reference)by SOQL query. Any help would be appericated. Thanks

LIST View

Sai PraveenSai Praveen (Salesforce Developers) 

Hi Ravinder,

Can you check the below question which seems to be similar.

https://developer.salesforce.com/forums/?id=9060G0000005PXQQA2


If this solution helps, Please mark it as best answer.

Thanks,
 

Ravindar SinghRavindar Singh
Thanks Sai for your response. I did tried that but that didnt work and only returning 1 row. 
Naveen KNNaveen KN
Each list view has its own filters. Go to list view, click the filter icon and get the filters applied. 

Add these filters in the where condition of your SOQL. That should resolve.

--
Naveen 
Codekiat.com