i have one method in my class controller and when i try to call it from the anonymous console i received this error message: variable does not exist: email (ad example).
This is my code in the anonymous console:
String x = NameOfMyClassController.checkList(email, tel);
System.debug('=====>'+ x);
this is my method in my controller class:
public List<String_result> checkList(String email,String tel){
List<String_Input> contactDeletedList= null;
List<String_Result> result = null;
Set<String> contactInp=null;
if (!String.isBlank(email) && !String.isBlank(tel))
{
contactInp = new set<String>{email,tel};
contactDeletedList= new List<String_Input>();
contactDeletedList.add(new String_Input(contactInp));
result = NameOfmyClass.NameOfmyMethod(contactDeletedList);
}
System.debug('====>' + result);
return result;
}
I hope someone can help me. Thank you in advance.