public class DeleteHiringManager {
public void Deletehmanager( String S){
String namelike= S+'%';
List< Hiring_Manager__c > hm= [select Id,Name from Hiring_Manager__c where Name LIKE :namelike];
delete hm;
}
}
you can execute the above method from anonomous window by using below code. Replace S with what ever aplhabet you need .
DeleteHiringManager IL= new DeleteHiringManager();
IL.Deletehmanager('s');
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
public class DeleteHiringManager {
public void Deletehmanager( String S){
String namelike= S+'%';
List< Hiring_Manager__c > hm= [select Id,Name from Hiring_Manager__c where Name LIKE :namelike];
delete hm;
}
}
you can execute the above method from anonomous window by using below code. Replace S with what ever aplhabet you need .
DeleteHiringManager IL= new DeleteHiringManager();
IL.Deletehmanager('s');
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Can you try the below code
you can execute the above method from anonomous window by using below code.
Replace S with what ever aplhabet you need .
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
All Answers
Can you try the below code
you can execute the above method from anonomous window by using below code.
Replace S with what ever aplhabet you need .
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
Did you tried the above code?
Thanks,