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

I am trying to run below code in developer console and calling method anonymous window in salesforce . But getting error that method signature is not found.

Public Class CommonHelper1 {
     public static Void getpostionbylocation (string CityName)
          list<Position__C> lstpos =[Select id ,name from Position__C where location__C =:CityName];
          system.debug('Postion Record collection size' +lstpos.size());
        if (!lstpos.isempty())
             for(Position__C pos :lstpos)
                 system.debug('Position Record is '+pos);

calling method anonymous window :CommonHelper1.getpostionbylocation('Delhi');
try this :
CommonHelper1 instance = new CommonHelper1();