Trigger Syntax in Salesforce

Trigger Syntax:

trigger triggerName on ObjectName(events) {
    ……..
    ……..
    ……..
    ……..
    ……..
    ……..
}

here events are before and after events.

Example: before insert, before update, before delete, after insert, after update, after delete, after undelete.

Cheers!!!

Leave a Reply