Hot answers tagged

3

Looks like your syntax is the issue from what you've shared. Nested collections like a List of Lists are possible within Apex, but it would be defined like this: List<List<Contact>> or even something like List<List<Set<Integer>>>. Your SOSL query will return a List<List<SObject>>. I would recommend assigning your ...


Only top voted, non community-wiki answers of a minimum length are eligible