Create New Apex Trigger

Force.com IDE is in a maintenance-only state. We still provide support for the product through our official channels, but updates prior to October 12, 2019 will be only for critical security issues that arise. On October 12, 2019, we will no longer provide support or updates of any kind for Force.com IDE. On that date, we will also begin archiving documentation and removing download links for the product. We recommend that you start migrating to Salesforce Extensions for Visual Studio Code or one of the great tools made by our partners. For more information, see The Future of Salesforce IDEs on the Salesforce Developers Blog.

Warning

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