Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 355 Bytes

triggers.md

File metadata and controls

19 lines (15 loc) · 355 Bytes

Triggers

  • Standard Trigger Syntax
trigger TriggerName on ObjectName (trigger_events) { code_block
}
  • The following are the trigger events

    • before insert
    • before update
    • before delete
    • after insert
    • after update
    • after delete
    • after undelete
  • Use addError(errorMessage) on the Trigger object lists to add an error