function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ashutosh_ToshAshutosh_Tosh 

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();
Anand_VAnand_V
Hey there, this is just a spelling mistake. you are calling helper.GetallHiringManager() instead of helper.GetallHiringManagers()
Amit Chaudhary 8Amit Chaudhary 8
You forget to add s in spelling. Please try below

HelloWolrd helper = new HelloWolrd();
helper.GetallHiringManagers();


Let us know if this will help you