Salesforce
PDII · Question #69
[FIND 'map' IN ALL FIELDS RETURNING Account (Id, Name), Contact, Opportunity, Lead] What is a valid return type for the following SOSL query?
The correct answer is B. List<List<sObject>>. See the full explanation below for the reasoning.
Question
[FIND 'map' IN ALL FIELDS RETURNING Account (Id, Name), Contact, Opportunity, Lead] What is a valid return type for the following SOSL query?
Options
- AList<sObject>
- BList<List<sObject>>
- CList<AggregateResult>
- DList<Account>
How the community answered
(31 responses)- A3% (1)
- B84% (26)
- C3% (1)
- D10% (3)
Community Discussion
No community discussion yet for this question.