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
ashish jadhav 9ashish jadhav 9 

when to use list<list<sobject>>? how to use ?

can you plz tell me how to use it?
Dheeraj ChawlaDheeraj Chawla
Hi Ashish,

list<list<sobject >> is mainly we use in SOSL query.

for example:- 
list<list<sobject>> res=[FIND 'Any string you wanna search' IN ALL FIELDS RETURNING Lead];

You can refer this link for further info:

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_SOQL.htm