if(Trigger.IsUpdate || Trigger.IsAfter) {
if(
STP_TriggerHandler.mail(Trigger.New);
}
Asked
Active
Viewed 61 times
0
-
Could you elaborate? Your code contains syntax errors, please correct them. – Max Jul 23 '15 at 10:22
-
hi Max,i'm trying to send a mail when value in a field get updated using after update event, and my doubt is after update also checks the condition trigger.new != trigger.old. – Venky Jul 23 '15 at 10:29
-
can you explain what are the syntax errors. – Venky Jul 23 '15 at 10:47
-
The second if statement requires a condition and a closing parenthesis at the end. – Max Jul 23 '15 at 10:49