
10 respostas
Hi...Yes we can retrieve data from multiple objects in a single query using SOSl. for eg.
List<List<SObject>> searchList = [FIND 'SFDC' IN ALL FIELDS RETURNING Account(Name), Contact(FirstName,LastName)];
this query searches for accounts and contacts that have any fields with the word 'SFDC'.