Org:Mindful Goat Playground
After completing this unit, you'll be able to:
SOSL searches text across many objects at once. Use it when you know the words but not where they live; use SOQL when you know the object and the fields.
ContactAndLeadSearch with a static method searchContactsAndLeads(String name).List<List<SObject>> found = [FIND :name IN NAME FIELDS RETURNING Contact(FirstName, LastName), Lead(FirstName, LastName)];