Introduction to Object-Oriented Programming using Apex

This course is designed for Salesforce administrators who would like to learn the basics of implementing business logic using Apex, the primary programming language of the Salesforce platform. First,you’ll learn how to read Apex code and then you’ll gradually increase your programming skills from writing single debugging statements to programming multiple, multi-line blocks of code.

Course Outline

Introduction to Apex

  • Overview, include Apex usage scenarios, the development lifecycle, and execution methods

  • An introduction to object-oriented programming, classes, and objects

Apex Building Blocks

  • Classes, variables and methods, and data objects

  • Data objects and relationships between objects

  • Apex variables, data types, and expressions

  • Best practices for formatting, commenting, and naming conventions

Apex Class Construction

  • Classes and objects, including passing and returning variables, encapsulation, conditions and logic flow control, loops, and exception handling

Apex Triggers

  • Introduction to Apex triggers, including when to use a trigger, order of execution, creation and development considerations, and governors and limitations

Retrieving and Manipulating Application Data

  • Retrieve application data using queries, written in SOQL or SOSL

  • Insert, update, merge, and delete records using Apex data manipulation language (DML)

Testing, Debugging, and Application Lifecycle

  • Debugging scenarios, methods, and tools

  • Test classes, unit testing, testing requirements and strategies, and considerations and best practices

  • Deployment checklist, preparation steps, and tools


Introduction to Object-Oriented Programming using Apex is designed for people who are familiar with the Salesforce application user interface and customizing applications using the Setup menu. It is meant to provide an understanding of object-oriented programming in the context of Apex and the Salesforce platform. No prior programming experience required.

Course participants should be familiar with the Salesforce User Interface.