The Apex Master Class
For Loops in Apex: Collection Iteration (Ep. 29)
Doing Something To Everything Back in episode 16 we said collections let you hold 200 records in one variable. Great. Now how do you actually do…
20 Jun 2022
4 min
Category
Salesforce Development: Apex
Salesforce Apex tutorials covering the language end to end – variables, collections, classes, triggers, SOQL and asynchronous Apex. Written for developers learning Apex from scratch and for experienced ones filling gaps.
69 posts
The Apex Master Class
For Loops in Apex: Collection Iteration (Ep. 29)
Doing Something To Everything Back in episode 16 we said collections let you hold 200 records in one variable. Great. Now how do you actually do…
20 Jun 2022
4 min
The Apex Master Class
Switch Statements vs If/Else in Apex (Ep. 28)
Two Tools, One Job The last two episodes gave you conditionals and switch statements, and they overlap a fair bit. So which one do you actually…
17 Jun 2022
3 min
The Apex Master Class
What Are Switch Statements in Apex? (Ep. 27)
What Is A Switch Statement? A switch statement looks at one variable and picks a branch based on its value. It’s doing much the same job…
15 Jun 2022
3 min
The Apex Master Class
Conditional Statements (If/Else) in Apex (Ep. 26)
Making Your Code Decide Things Every bit of code we’ve written so far runs straight through, top to bottom, doing the same thing every time. Which…
13 Jun 2022
3 min
The Apex Master Class
When to Use the Private Keyword in Apex (Ep. 25)
Your Default Setting Last of the four access modifiers, and the one you should be reaching for most. private means only this class can use it.…
2 Jun 2022
4 min
The Apex Master Class
When to Use the Protected Keyword in Apex (Ep. 24)
The One Nobody Uses protected is the access modifier most Salesforce developers have never deliberately typed. It sits in an odd middle ground and it only…
27 Apr 2022
3 min
The Apex Master Class
When to Use the Public Keyword in Apex (Ep. 23)
What Does Public Mean? Last episode we covered global and I told you to use it as little as possible. Today’s is the one you’ll actually…
25 Apr 2022
3 min
The Apex Master Class
When to Use the Global Keyword in Apex (Ep. 22)
First, What Is An Access Modifier? This is the first of four episodes on access modifiers, so let’s define the term before we get into the…
22 Apr 2022
3 min
The Apex Master Class
When to Use the Static Keyword in Apex (Ep. 21)
Knowing What It Is Isn’t The Same As Knowing When To Use It Last episode we worked out what static actually does. This episode is the…
20 Apr 2022
4 min
The Apex Master Class
What Is the Static Keyword in Apex? (Master Class Ep. 20)
What Does Static Mean? I’ll be straight with you up front: static is one of those keywords that seems perfectly obvious until somebody asks you to…
18 Apr 2022
4 min
The Apex Master Class
What Are Maps in Apex? (Apex Master Class Ep. 19)
What Is A Map? A map is a collection of key/value pairs, where each unique key points to a single value. I’ll be honest with you:…
14 Apr 2022
4 min
The Apex Master Class
What Are Sets in Apex? (Apex Master Class Ep. 18)
What Is A Set? A set is an unordered collection of elements that contains no duplicates. Which is basically a List with both of its defining…
11 Apr 2022
3 min