You need to sign in to do that
Don't have an account?
Hiral Patel 25
// Write an APEX Program to fetch All Lead Records, Based on the Lead status Supplied by the User at Run-Time
// Write an APEX Program to fetch All Lead Records, Based on the Lead status Supplied by the User at Run-Time
public class Fetch_Leads{
public static List<lead> getleads(string statusGivenbyUser){
List<lead> leadList = [SELECT Id, LastName, MiddleName, Title, Industry, Status__c FROM Lead WHERE status__c=:statusGivenbyUser];
return leadList;
}
}