In this lesson, we create a basic Apex trigger.
In this lesson, we look at the different trigger types and contexts, such as:
Before Insert
After Insert
Before Update
After Update
Before Delete
After Delete
Resource:
Triggers and Order of Execution - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_order...
In this short lesson, I cover some Salesforce Trigger Best Practices, such as:
One Trigger per Object
Keep Triggers Logic-less
Control Triggers with Declarative Functionality
In this section we are going to begin developing Apex Classes.
Now what is an Apex class?
Any time we want to develop in Apex, but we don’t want to create a trigger, we do that development in an Apex class.
Apex classes can be used to handle trigger logic, as we alluded to in the last section. ...