Triggers Flashcards
1
Q
Trigger class outline?
A
trigger AccountTrigger on Account (before insert, etc.)
If(Trigger.isInsert && Trigger.isBefore){
}
2
Q
Which triggers are before and/or after?
A
Before: insert, update, delete
After: insert, update, delete, undelete
3
Q
Where should your trigger logic take place?
A
In a trigger handling class
4
Q
addError
A
Keeps any exception errors from executing in the DML layer
5
Q
Maximum records affected by trigger?
A
50,000 records