I have the following list in a trigger.
list<Employees__c> employeesToUpdate = new list<Employees__c>();
I want to pass the list to a Future method. All I really need is the ID of the Employee__c record.
I am getting the following error from my future method.
Unsupported parameter type List<Employees__c>
Here is my future method:
public class EmployeeBenefitSummaries {
@future
public static void generateSummaries( List<Employees__c> emps) {
// Get Employee and sessions for counts
***CODE***
}
}
Best Answer
According to the documentation here:
You'll have to pass a
List<Id>
rather than aList<Employee__c>
.