• Praneeth Karupati
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
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,