Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 3.36 KB

README.md

File metadata and controls

45 lines (32 loc) · 3.36 KB

Developer Kickstart Module 6: Apex Triggers

Welcome to Module 6 of the Developer Kickstart curriculum at Cloud Code Academy! This module, we dive deep into the world of Apex Triggers - a fundamental aspect of Salesforce development.

Goals of the Practice

During this module's practice repository, you will gain essential knowledge about:

  • Understanding what Apex Triggers are and their role in Salesforce development.
  • Recognizing when to use Triggers over other automation tools.
  • Writing basic triggers to perform operations before and after insert, update, delete, and undelete events.
  • Handling bulk operations in Triggers to adhere to Salesforce governor limits.
  • Implementing best practices in Trigger development, such as the 'One Trigger Per Object' design pattern and the use of helper classes.

Mastering Apex Triggers will equip you with the ability to automate complex business processes and validations, enhancing the power and flexibility of your Salesforce applications. This week lays the foundation for more advanced topics such as Trigger frameworks and asynchronous Apex, setting you on the path to becoming an expert Salesforce developer.

Setup

Setup Overview

Setup Checklist

  1. Create/Configure a trailhead playground or developer org to do your work throughout this program.
  2. Install Visual Studio Code from here.
  3. Install Salesforce Extension Pack in Visual Studio Code. This can be done by searching 'Salesforce Extension Pack' in the Extensions view in VS Code and clicking Install.
  4. Authorize your org in Visual Studio Code. Press Ctrl/Cmd + Shift + P to open the command palette and type 'SFDX: Authorize an Org', then press Enter. Follow the steps in the browser to log in to your org, then return to VS Code.
  5. Save and deploy your changes into Salesforce from your local machine. This can be done through the command pallet or right-clicking the file you want to deploy and using the option SFDX: Deploy this source to org

Getting Started

  1. Navigate to the folder force-app/main/default/ and deploy the metadata to your Salesforce org. Right-click on the folder and select SFDX: Deploy Source to Org.
  2. Review the files provided including the test class to understand the challenges.
  3. Update the code and deploy it to your Salesforce org.
  4. Run the test class to validate your code. Use Ctrl/Cmd + Shift + P to open the command palette and type 'SFDX: Run Apex Tests', then press Enter. You can also use Run All Test or Run Test on the test class.
  5. Push your changes to your GitHub repository and submit the link to the assignment in the submission form in Slack.

Resources

If you get stuck at any point, here are some resources that might help:

And remember, programming is often about solving problems, so don't be afraid to use search engines to find answers to your questions.

Good luck with your learning journey in Salesforce development!