A developer wrote the following after insert trigger to create a follow-up task whenever a new task is created

45 of 59

A developer wrote the following after insert trigger to create a follow-up task whenever a new task is created:

list<task> followuptasks = new list<task>();

for(task thetask : trigger.new){

task newtask = new task(status = 'new' priority='normal');

newTask . Subject= ‘Follow-up for ‘ + theTask.Subject;

newtsk.activitydate=date.today().adddays(30);

followuptasks.add(newtask);
}
insert followuptasks;

What happens after the code block executes?

Was this helpful?

0 / 0