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!!!

No comments:

Post a Comment