You need to sign in to do that
Don't have an account?

Method does not exist or incorrect signature when calling public method anonymous window
Public void GetallHiringManagers()
{
List<Hiring_Manager__c>lstManager =[select id ,name ,Location__c from Hiring_Manager__c];
System.debug('Hiring Manger Collection Size--' + lstManager.size());
If (! lstManager.isEmpty())
{
for (Hiring_Manager__c hr:lstManager)
{
system.debug('Hiring Manger Recors is..'+ hr);
}
}
}
}
============================================
//Calling from anonymous window :
HelloWolrd helper = new HelloWolrd();
helper.GetallHiringManager();
{
List<Hiring_Manager__c>lstManager =[select id ,name ,Location__c from Hiring_Manager__c];
System.debug('Hiring Manger Collection Size--' + lstManager.size());
If (! lstManager.isEmpty())
{
for (Hiring_Manager__c hr:lstManager)
{
system.debug('Hiring Manger Recors is..'+ hr);
}
}
}
}
============================================
//Calling from anonymous window :
HelloWolrd helper = new HelloWolrd();
helper.GetallHiringManager();
HelloWolrd helper = new HelloWolrd();
helper.GetallHiringManagers();
Let us know if this will help you