Apex

Use Apex to write, maintain, and test your custom logic on the Salesforce Platform. This object-oriented, strongly-typed, server-side language inherits its general syntax from the C language family.
Trail

Build Apex Coding Skills 

3000 PointsGet familiar with Apex and expand your skills by taking this three module trail.
Module

Unit Testing on the Salesforce Platform 

3100 PointsLearn why testing helps you create better software and how to run various unit tests.
Superbadge

Apex Specialist 

13000 PointsUse integration and business logic to push your Apex coding skills to the limit.
Superbadge

Advanced Apex Specialist 

6000 PointsBuild complex business logic using advanced Apex and Visualforce programming techniques.
All Trailhead Modules

Trailhead

Leveling Up Your Apex Skills

We help you learn advanced Apex so that you can enhance your Apex development skills.May 25, 2023

Write Simplified and Secure Apex with Spring ’23 Updates

We provide code examples demonstrating how to utilize Apex Spring '23 features to create secure appsMay 12, 2023

Find Problems Faster with the Apex Log Analyzer

Apex logs are a rich source of information and the Apex Log Analyzer helps to make issue diagnosis easier.December 10, 2020

Log You Some Events for Great Good

Finding and fixing bugs, then releasing those fixes often starts by looking at the logs generated by the code. December 07, 2020

Get more developer news

More Blog Posts

Blogs

Apex Kit with Kevin Poorman

Kevin Poorman talks about his newest project, Apex Kit. Apex Kit is a library of tools that all help developers do repeated actions accurately and securely37 min

Code Analyzer with Roopa Mohan

Roopa shares information about how Salesforce Code Analyzer, an open source tool to write clean and secure code36 min

Apex Tips and Tricks with Oleh Mykytyn

Oleh discusses when it’s best to use Apex over Flow, which one’s faster, which one’s better to maintain, and more26 min

Developer Podcast

Developer PodcastTune in to our Developer Podcast hosted by René Winkelmeyer, Senior Director of Salesforce Developer Relations, and featuring our developer advocates. Hear insightful stories, quick tips, and relevant updates for the Salesforce Developer community.
More Episodes

Apex Recipes 

This collection gives developers concise, meaningful examples of Apex code for common use cases following best practices. The Integration recipes show how to make callouts to external services and also expose an Apex class as a custom REST endpoint.

Ecars 

This app shows how Change Data Capture is used to build loosely coupled integrations using multiple languages and systems. It shows how microservices on Heroku integrate with Salesforce, and how data is streamed to Salesforce from Kafka via WebSockets.

E-bikes 

This sample retail app helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders. The app integrates with Salesforce Communities and uses LWC and different data access strategies.
All Code Samples

Code Samples