
24 answers
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 :)