function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kirsankirsan 

use of dml operations in trigger

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

Dream_weaverDream_weaver

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..