Skip to main content
I'm stuck on the SOSL query challenge in trailhead. can't write the method.

cheers
24 answers
  1. Feb 8, 2016, 3:44 PM
    Hello, 

    You have to create new lead reccord with last name = Smith and also convert it without opp to have a contact ! 

    public with sharing class ContactAndLeadSearch {

        public static List<List<SObject>> searchContactsAndLeads(string param){

        List<List<Sobject>> searchConLead = [FIND: param IN all fields returning Lead(FirstName, LastName),Contact(FirstName,LastName)];

        return (searchConLead);

       }

      }

    Hope it help :)

     
0/9000