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

How can I use the query of a view?



Can I find somewhere the query of a view? I wan to use this query in my apex code.  Please don't say: use enhanced list, because I need to use differently the list.





I didn't fully understand your question , are you suggesting that you wish to know the query which brings the data for any particular view? In case yes , won't you be able to contruct it by seeing the cvolumns beings being displayed in and the type of resultset will give you insight into the filter condition and batch size too.

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.


Thanks for the reply.

But I change my mind. Now I want to use the value of the enhanced list, if it is possible. If a checked a row I want to save to another list. Can I get the value of the enhanced list?


Hi Ispita Saha,


  Even i have the same question. can you pls provide a sample query SOQL. I need to do that from c# thru api.

is there a method like describelayout to access these list views.?


I have posted my question in detail here :


Please help....