Developer Kickstart Module 5: Salesforce Object Query Language (SOQL)
This repository is part of the Developer Kickstart Module 5 curriculum at Cloud Code Academy. It's crafted to assist beginner Salesforce developers to learn and exercise Salesforce Object Query Language (SOQL), a pivotal aspect of the Apex programming language.
Goals of the Practice
In the course of this practice repository, you'll build essential knowledge about:
- Understanding the fundamentals of SOQL and its significance in Apex and Salesforce development.
- Crafting basic SOQL queries using the SELECT statement to retrieve data from Salesforce objects.
- Employing WHERE clause filters in SOQL queries to refine the data retrieved based on specific conditions.
- Navigating relationship queries in SOQL to retrieve data from related Salesforce objects.
- Using the LIMIT keyword in SOQL queries to regulate the number of records retrieved.
By mastering SOQL, you will boost your ability to interact with Salesforce data programmatically, enabling you to build dynamic, data-driven applications on the Salesforce platform. These concepts lay the foundation for advanced data manipulation and handling techniques in Salesforce.
Setup
Setup Overview
Setup Checklist
- Create/Configure a trailhead playground or developer org to do your work throughout this program.
- Install Visual Studio Code from here.
- 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.
- 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.
- 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
- 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
.
- Review the files provided including the test class to understand the challenges.
- Update the code and deploy it to your Salesforce org.
- 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.
- 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!