+ Start a Discussion

use of dml operations in trigger

what is the use of  DML  operations and select statements in triggers??


Trt to avoid putting any business logic in triggers..Triggers should be used to pass current state of object(trigger.new)/trigger.old as a parameter to a method for a class based on the events.all the DML statements should be written in the method that is calledby the trigger..