Preface: this post is part of the Write Your First Trigger From Start to Finish series.
There are only two places you can write code in Salesforce:
You can follow along in either version! If you want to eventually deploy into your normal “production” org though, you’ll want to use a sandbox.
To open up the trigger coding UI in either version, navigate here:
Note: every object in Salesforce has a “Triggers” section, even custom objects!
Next, copy over the code from our simple trigger example and… your code is now active! Go ahead and create a new user to test it out!
Don’t want to create your own environment? Log in to mine!
Password: Click here to reveal
Next post: Example: How to write a simple Apex trigger!