You need to sign in to do that
Don't have an account?
sowmya chilukuri
Return value to be passed from one method to another
Hi,
Have a quick question on how to pass the list of returned records from method 1 to method 2.
public List<Lead> getCurrentMonthInfo() {
List<Lead> ll=Database.query('SELECT Id,Name,Division_Name__c,Title,counting__c '+ 'FROM Lead'); leadcount = ll.size();
return II;
}
Public boolean method 2( //Here I want the record list from Method getCurrentMonthInfo) {
}
Thanks,
Have a quick question on how to pass the list of returned records from method 1 to method 2.
public List<Lead> getCurrentMonthInfo() {
List<Lead> ll=Database.query('SELECT Id,Name,Division_Name__c,Title,counting__c '+ 'FROM Lead'); leadcount = ll.size();
return II;
}
Public boolean method 2( //Here I want the record list from Method getCurrentMonthInfo) {
}
Thanks,
Praneeth Karupati
https://developer.salesforce.com/forums/?id=906F0000000kCivIAE
Whyser
boolean result = method2( getCurrentMonthInfo() );