8 respuestas
Hi Sandeep ,You are not putting the system.debug correctly for the challenge. Please try with below code. This will work fine
Reason :List<List<sObject>> searchList = [FIND 'Mission Control' IN ALL FIELDS
RETURNING Contact(FirstName, LastName,
Phone, Email, Description)];
Contact[] searchContacts = (Contact[])searchList[0];
System.debug(searchContacts[0].LastName + ', ' + searchContacts[0].FirstName);
You have put two extra spaces in comma . Change below to
System.debug(searchContacts[0].LastName + ' , ' + searchContacts[0].FirstName);
to
Your debug line is causing the challenge not to be completed.Happy TrailBlazing :)System.debug(searchContacts[0].LastName + ', ' + searchContacts[0].FirstName);