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
sowmya chilukurisowmya 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,
 
Praneeth KarupatiPraneeth Karupati
 https://developer.salesforce.com/forums/?id=906F0000000kCivIAE
WhyserWhyser
boolean result = method2( getCurrentMonthInfo() );