Back to Courses
Salesforce Apex Programming

Salesforce Apex Programming

C
CelestineSenior Software engineer

Salesforce is the world's #1 Customer Relationship Management (CRM) platform, powering customer interactions for over 150,000 companies worldwide, from Fortune 500 giants to fast-growing startups. Behind Salesforce's sleek user interface lies Apex: a strongly typed, object-oriented programming language designed specifically for execution on the Salesforce Multi-Tenant Cloud. In this course, you will learn Salesforce Apex programming from absolute zero—no prior coding experience required! You will write your first script in the Salesforce Developer Console, master Apex data types and collections (Lists, Sets, Maps), manipulate Salesforce records using SOQL (Salesforce Object Query Language) and DML (Data Manipulation Language), build automated Apex Triggers, enforce enterprise Governor Limits best practices (bulkification), write robust unit test suites, and build a production-grade enterprise application: an Automated Customer Support & Case Escalation System.

DevOps Intensive

13h 20m
Beginner Level
6 Modules

Curriculum Outcomes

Sign up for a free Salesforce Developer Org and navigate the Developer Console

Write and execute Anonymous Apex code to manipulate variables, strings, and numbers

Master Apex collection types: Lists for ordered items, Sets for unique values, and Maps for key-value lookups

Write control flow statements (if/else, switch) and loops (for, while, do-while)

Query Salesforce database records using SOQL (filtering, relationships, aggregate functions)

Perform database CRUD operations safely using DML (insert, update, upsert, delete)

Understand Salesforce Governor Limits and write bulkified, multi-tenant safe Apex code

Design Apex Classes, Methods, Constructors, and apply Object-Oriented Programming (OOP) concepts

Build automated Apex Triggers (before and after events) following the Trigger Handler Pattern

Write comprehensive Apex Unit Test Classes with `@isTest` and `System.assertEquals` to achieve 75%+ test coverage

Build and deploy an Automated Customer Support & Case Escalation System capstone project

Modules

Step-by-step mastery
1

Introduction to Salesforce & Apex Basics

Every expert enterprise cloud developer started by running their very first script. In this module, you will discover what Salesforce CRM is, how the Salesforce Multi-Tenant Cloud operates, and why Apex is the core language powering enterprise automation worldwide. You will set up your free, lifetime Salesforce Developer Org and launch the built-in Developer Console. You will write and run your first Anonymous Apex code, read execution Debug Logs, master primitive data types (Strings, Integers, Decimals, Booleans, Ids, Dates), and learn how to manipulate text, numbers, and dates. Finally, you will apply everything learned in this module to build a practical Lead Scoring Calculator project.

1.1
What is Salesforce & Apex? Setting Up Your Free Developer Org
40m
1.2
Your First Apex Code in Developer Console & Debug Logs
30m
1.3
Apex Data Types, Variables & Operators
20m
1.4
Working with Strings, Numbers & Dates in Apex
30m
1.5
[PROJECT] Building a Lead Scoring Calculator
40m
1.6
[WALKTHROUGH] Step-by-Step Lead Scoring Calculator
10m
2

Control Flow & Apex Collections

A script that performs the exact same action every single time cannot handle dynamic business requirements. Control flow and collections give your Apex applications decision-making intelligence and data organization. In this module, you will write conditional decision trees using if, else if, else, and modern Apex switch logic. You will learn counter-based for loops, list-iteration loops, and while loops to repeat operations cleanly. You will master Apex collections—ordered Lists, unique Sets, and fast key-value lookup Maps—and handle runtime errors safely using try, catch, and finally blocks so your code fails gracefully instead of crashing. You will finish by building an Automated Account Tiering & Categorization System project.

2.1
Conditionals - if, else if, else & switch
20m
2.2
Loops - for, while & do-while
10m
2.3
Apex Lists & Sets - Managing Collections of Data
20m
2.4
Apex Maps - Key-Value Pair Lookup Tables
20m
2.5
Error Handling with try, catch & finally
20m
2.6
[PROJECT] Automated Account Tiering System
30m
2.7
[WALKTHROUGH] Step-by-Step Account Tiering System
20m
3

Database Operations with SOQL & DML

Data is the lifeblood of every Salesforce application. In this module, you will unlock the real superpower of Apex: interacting directly with the Salesforce cloud database. You will learn SOQL (Salesforce Object Query Language) from scratch to query Account, Contact, and Opportunity records, traverse child-to-parent and parent-to-child relationships, and perform summary aggregate calculations. You will master DML (Data Manipulation Language) statements (insert, update, upsert, delete, undelete) to perform database CRUD operations. Crucially, you will master Governor Limit Bulkification—the cardinal rule of Salesforce engineering that ensures your code handles thousands of records efficiently without exceeding multi-tenant caps. You will put this to work in a practical Automated Opportunity Discounting & Bulk Update project.

3.1
SOQL Fundamentals - Querying Salesforce Records
30m
3.2
Advanced SOQL - Filtering, Relationships & Aggregate Queries
30m
3.3
DML Operations - insert, update, upsert, delete & undelete
20m
3.4
Governor Limits & Bulkification Basics
20m
3.5
[PROJECT] Automated Opportunity Discounting & Database Update
20m
3.6
[WALKTHROUGH] Step-by-Step Opportunity Discounting System
20m
4

Apex Triggers & Classes (Object-Oriented Programming)

Real-world enterprise applications require permanent, reusable code and automated database listeners. In this module, you will step into Object-Oriented Programming (OOP) by creating permanent Apex Classes, constructors, and static utility methods. You will build automated Apex Triggers that fire on before and after database events, inspecting runtime context variables (Trigger.new, Trigger.oldMap, Trigger.isInsert). You will master the industry-standard Trigger Handler Pattern to decouple traffic routing from business logic, and you will learn how to write automated Apex Unit Tests (@isTest, System.assertEquals) to achieve Salesforce's mandatory 75%+ code coverage requirement for production deployment. You will consolidate these skills by building an Automated VIP Case Routing Trigger project with 100% test coverage.

4.1
Introduction to Apex Classes, Methods & Constructors
20m
4.2
Introduction to Apex Triggers - before & after Events
10m
4.3
Trigger Context Variables (Trigger.new, Trigger.old, Trigger.isInsert, etc.)
10m
4.4
The Trigger Handler Pattern & Bulkified Trigger Architecture
30m
4.5
Apex Unit Testing & Code Coverage (@isTest & System.assertEquals)
20m
4.6
[PROJECT] Building an Automated VIP Case Routing Trigger
10m
4.7
[WALKTHROUGH] Step-by-Step VIP Case Routing Trigger
30m
5

API Integration in Apex Programming

No enterprise cloud application exists on an isolated island. In this module, you will learn how to connect Salesforce with third-party web platforms using Application Programming Interfaces (APIs). You will learn HTTP methods (GET, POST), JSON data serialization and deserialization, and how to execute outbound HTTP callouts using HttpRequest and HttpResponse. You will build custom inbound REST web services using @RestResource, @HttpGet, and @HttpPost to allow external systems to create and read records in Salesforce. You will master executing automated background callouts on record changes using @future(callout=true) triggers, secure authentication with Named Credentials, and wire callout methods to custom UI buttons using @AuraEnabled. Finally, you will build an Automated External Payment Gateway & Inventory Sync project and write mock callout unit tests using HttpCalloutMock.

5.1
Introduction to Web APIs, HTTP Methods & JSON Parsing
10m
5.2
Outbound Callouts - Sending Data OUT of Salesforce
20m
5.3
Inbound REST Services - Receiving Data INTO Salesforce (@RestResource)
20m
5.4
Automated Callouts on Record Changes (@future(callout=true) & Triggers)
20m
5.5
Triggering Callouts via UI Buttons & Named Credentials
30m
5.6
[PROJECT] Automated External Payment Gateway & Inventory Sync
20m
5.7
[WALKTHROUGH] Step-by-Step Payment Gateway & Inventory Sync
30m
6

Capstone Project - Automated Customer Support & Case Escalation System

In this final capstone module, you will synthesize every concept learned across the entire course to design, build, test, and deploy a production-grade enterprise application: The Automated Customer Support & Case Escalation System. You will draft the technical architecture and data schema, build a core Service Class that calculates SLA target resolution dates and queries parent account tiers in bulk, implement a lightweight Master Trigger and Handler framework, and write a comprehensive Unit Test Suite to achieve 100% code coverage. This capstone project serves as a portfolio piece demonstrating your capability to engineer production-ready Salesforce Apex solutions.

6.1
Designing the Architecture & Data Schema
10m
6.2
Implementing the Core Service Class & SOQL Business Logic
20m
6.3
Building the Bulkified Trigger & Handler Framework
20m
6.4
Writing Test Classes & Achieving 100% Code Coverage
20m