Create New Apex Trigger

To launch the Create New Apex Trigger wizard, click File | New | Apex Trigger or right-click your project and choose New | Apex Trigger. The wizard allows you to select the object that the trigger acts on and specify when the trigger fires.

Field Description
Name Enter a name for the trigger.
Version Select the version of the API this object conforms to from the dropdown list.
Object Select the object that the trigger acts on. If you do not see the object you are looking for in the dropdown list, click Refresh Objects.
Apex Trigger Operations Use the checkboxes to specify when the trigger fires:
  • before insert
  • before update
  • before delete
  • after insert
  • after update
  • after delete
  • after undelete