Apex Academy: Fundamental Salesforce Coding Techniques

Learn the core coding concepts that you'll be using every day in Salesforce! Practice using core development tools such as variables, IF statements, loops, and more.
Course info
Rating
(132)
Level
Beginner
Updated
May 26, 2016
Duration
3h 27m
Table of contents
Course Overview
Course Introduction
Variables & Collections
IF Statements, Loops, and More
Apex Trigger Demos
Apex Test Class Demos
Description
Course info
Rating
(132)
Level
Beginner
Updated
May 26, 2016
Duration
3h 27m
Description

Behind every advanced Salesforce developer is a strong understanding of fundamental coding techniques in Apex. In this course, Apex Academy #2: Fundamental Salesforce Coding Techniques (the second course of the Apex Academy series), you'll learn the six core Apex tools: variables, collections, dot notation, IF statements, loops, and DML. Next, you'll discover SOQL and Workbench, an SOQL editor, and how to write SOQL queries. Finally, you'll learn how to use SOQL with Apex and test classes, watching demos along the way to solidify these concepts. By the end of this course, you'll know how to write better code in Apex, and you'll be a better Salesforce developer for it.

About the author
About the author

David Liu is a self-taught programmer whose dreams came true when he became a Salesforce Technical Architect at Google. Now, David dreams of inspiring the next generation of Salesforce developers. He's a four-time Salesforce MVP winner and runs SFDC99.com, the world's most popular Salesforce blog.

More from the author
Apex Academy: The Power of SOQL
Intermediate
2h 57m
Aug 18, 2016
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone, my name is David Liu, and welcome to my course, Apex Academy #2: Fundamental Salesforce Coding Techniques. I am a Salesforce technical architect at Google by day, and a shameless Salesforce fanboy by night. Nonetheless, I wasn't always this way. I used to be a professional email spammer. But, I learned Salesforce and Apex, and eventually rose up the ranks and reached the ultimate technical position for Google, and our massive, massive Salesforce deployment. Why should you learn Apex? Well, there are jobs everywhere! Remote, and on-site. And because of this, salaries are ridiculously high. The average base salary of a Salesforce developer in the US right now is $130, 000 per year. The craziest part of all this is that learning to code in Salesforce is surprisingly easy. You could start at zero, and get a full-time job in less than six months. In this course, we're going to build a strong Apex coding foundation in you by learning about the core Apex tools you'll be using on a daily basis. Some of the major topics that we'll cover include, how to create and use variables, how an if statement works, and how and when to use Loops. By the end of this course, you'll know how and when to apply these core tools when writing Apex triggers. There will be plenty of demos, and even better, plenty of homework too. Before beginning the course, you should have a novice understanding of how Apex triggers and test classes work. I certainly recommend watching Apex Academy number one before taking this course. I hope you'll join me on this journey to learn fundamental Apex coding techniques with the Apex Academy! Course number two at Pluralsight.

IF Statements, Loops, and More
Dear students, welcome back to the Apex Academy! My name is David Liu, and I'll be your mentor throughout this course. Today we're going to be analyzing the rest of the core Apex tools that you'll be using every time you write code. We've got a lot to cover in this module, and your brain is guaranteed to be filled to the top with knowledge, so I recommend bracing yourself, hiding all distractions, and preparing your favorite caffeinated beverage of choice. Let's do this! Here is an overview of what we'll be talking about during this module. We've already covered two of the six core Apex tools by now. In this module, we'll be covering the last four of them, including dot notation, a technique we used quite extensively during our last demo. Time to get formally trained. IF statements; you know what these are already, but I'm going to teach you how to master them and how they can save you from the most common coding error of all time. Loops; our fun-loving friends that let us be extra lazy when coding. And finally, data manipulation language, DML, our Save button. We'll go into all of these tools in deep technical detail.

Apex Trigger Demos
Students, welcome back to the Apex Academy. My name is David Liu, and we have an incredible module for you today. Using everything we've learned so far in this course, we're going to write two triggers using scenarios you might see in an actual, real-world Salesforce org. Here's an overview of what we'll learn in this module. First, we're going to do a coding demo around opportunity price wars. Then, I'm going to teach you about System. debug, which is going to be a lifesaver in helping you fix your code. Finally, we'll do another coding demo analyzing secret information on cases. It's going to be a great module.

Apex Test Class Demos
Students, welcome back to the Apex Academy! I'm David Liu, your loyal teacher, and today we'll be covering the best part of coding, the test class. Test classes are the coding windows into your soul. I always say you can learn a lot about someone by how they write their test class. In fact, when I'm interviewing someone for a job, I spend more time talking about tests than the triggers themselves. In this module, I'll be giving you a glimpse into my soul. Let's write some test classes. Here is an overview of what we'll be covering in this module. First, we'll write a test class for the opportunity competitor trigger we wrote in the previous module. Then, we'll write another test class for the secret information trigger we also wrote in the last module. Finally, we'll wrap up this course with homework. I've designed four homework assignments for you. I want you to complete these assignments before moving onto the next Apex Academy course.