Triggers Flashcards

1
Q

Trigger class outline?

A

trigger AccountTrigger on Account (before insert, etc.)
If(Trigger.isInsert && Trigger.isBefore){

}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which triggers are before and/or after?

A

Before: insert, update, delete
After: insert, update, delete, undelete

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Where should your trigger logic take place?

A

In a trigger handling class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

addError

A

Keeps any exception errors from executing in the DML layer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Maximum records affected by trigger?

A

50,000 records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly