I want to pass field values from trigger to an APEX class.
I have created the trigger but I don't know how to call the class from trigger and how to receive these values in the class.
trigger trgTestCustomer on TestCustomer__c (after insert) {
for(TestCustomer__c t: Trigger.new){
string newName;
newName = t.Name;
}
}
Any snippet will be helpful. Can a List object of all the values be passed to class?