Salesforce Apex Triggers

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • trigger <name> on <object-api-name> (<events>) { // your trigger logic }

Parameters

parameterdescription
nameName of the trigger
object-api-nameObject on which the trigger will fire. Can be any standard or custom object.
eventsEvents which will fire the trigger. Are a combination of either before/after with any of insert/update/delete. There's also after undelete without before counterpart.


Got any Salesforce Question?