Enum for Salesforce Apex Trigger Operations
The System.TriggerOperation enum has the following values: The new Trigger context variable Trigger.operationType will return System.TriggerOperation enum during trigger context. If you combine this new context variable and the new Apex switch feature, trigger code becomes much easy to implement and understand. An Example of Using Switch and Enum in Triggers