You need to sign in to do that
Don't have an account?
Seth Payne
Error: Compile Error: List index must be of type Integer
Trying to create trigger to create a task when a date is filled in. Here is what i have so far and getting the error above.
Thanks,
Seth
trigger CreateTaskonAnnualReport on Annual_Report__c (after update) { List<Task> newTasks = new List<Task>(); for (Annual_Report__c ar : Trigger.isupdate()){ //Creating Task to Matt Sutherland when Certificate Date is updated from null to any value, and he was the initial submitter if (Trigger.old[ar].Certificate_Date__c != Trigger.new[ar].Certificate_Date__cThoughts on why I am getting this error or any ideas to improve?
Thanks,
Seth
Trigger.isUpdate is a boolean which indicates if this is an update operation.
Try the code below:
All Answers
Trigger.isUpdate is a boolean which indicates if this is an update operation.
Try the code below:
Thanks!