Pulling the trigger
By now, you have hopefully logged in to your Developer Edition of the Salesforce1 Platform and created some sample data. You might have noticed that in order to create a new record, you must fill out any required fields. You might have already played with the workflow feature we mentioned earlier, which can modify a record upon save. If you're really eager, you can even experiment with validation rules, which can prevent a record from being saved if it does not meet your preset criteria. All of these various features make the simple act of saving a record a very complex process. To make things more complex, triggers are executed in two places in this process.
The first place in the process where a trigger is executed occurs ...
Get Learning Apex Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.