Salesforce Trigger:-
Salesforce trigger is apex code that executes before or after the folowing types of operations.
Salesforce trigger is apex code that executes before or after the folowing types of operations.
- insert - You can have this trigger run before or after objects records are inserted into database.
- update - You can have this trigger run before or after objects records are updated into database.
- delete - You can have this trigger run before or after objects records are deleted from database.
- merge - Merge events do not fire their own trigger events. Instead, they fire delete and update event
- upsert - Fire both before and after insert or before and after update triggers as appropriate
- undelete- record is restored from the Recycle Bin
I will be explaining each trigger with example in next tutorial.
Comments