Apex Trigger Context variables


1: Trigger.new -> List of records that are got inserted/updated
2: Trigger.isBefore -> Returns true if trigger is running on before event
3: Trigger.isInsert -> Returns true if trigger is called when user has done insert operation
4: Trigger.isAfter-> Returns true if trigger is called after the records is inserted/update
5: Trigger.newMap -> Returns the list of records that are inserted/updated with latest values in
map format
6: Trigger.oldMap -> Returns the list of records that are inserted/updated with old/prior values in
map format
7: Trigger.old -> Returns the list of records that are inserted/updated with old/Prior values
8: Trigger.isUpdate -> Returns true if trigger is called when record is updated

Scroll to Top