You need to sign in to do that
Don't have an account?
:) :) :) :) :)
Trigger to create task on account object
I am not getting any error but it doen't creat any task we create or update account record.
trigger CreateFlowupTask on Account (after insert,after update) {
List <task> taskToInsert = new List <task> ();
for (Account a : Trigger.new) {
task t = new task ();
t.ActivityDate = a.ship_date__c; // and so on so forth untill you map all the fields.
t.Subject = 'please call me';
t.OwnerId = a.OwnerId;
t.WhatId = a.id;
taskToInsert.add(t);
}
}
b-Force