This tutorial shows you how to create a new Apex Trigger within your Salesforce environment.


1. Right click on the "Triggers" folder and select "Trigger".



2. From the Trigger Wizard enter the definition of the new Trigger.

Trigger Object

Select the object to attach the new trigger to.

Operations

Select which operations will execute the trigger.

Document Comments

None - Does not place a comment section at the beginning of the trigger.


Basic - Places a simple comment section at the beginning of the trigger.


Custom - Places the custom comment section defined in Settings at the beginning of the trigger.


3. Click "Finish"