Salesforce Apex Triggers Basic trigger


Example

trigger AccountTrigger on Account (before insert) {
    System.debug('Account(s) are about to be inserted');
}