The Trailblazer Community in Slack is now in Open Beta–join and connect in real time.
Join us in SlackApex
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.
Documentation
Apex Developer Guide
Execute flow and transaction control statements on the Salesforce Platform server and interact with web services.
Customize Salesforce with Apex
Write Apex code to customize Salesforce features like actions, flows, authentication, and Experience Cloud sites.
Debug, Test, and Deploy Apex
Develop your Apex code in a sandbox, debug it, unit-test it, then distribute it to your customers using packages.
Apex Reference
Get access to information about built-in Apex classes, interfaces, enums, and exceptions, grouped by namespace.
Tools
Salesforce CLI
Use a single command-line interface for the Salesforce Platform and Salesforce DX.
VS Code Extensions
Access tools for developing on the Salesforce Platform in the lightweight VS Code editor.
Salesforce Code Analyzer
Analyze your source code to ensure it meets code quality standards.
Trailhead
Build Apex Coding Skills
Get familiar with Apex and expand your skills by taking this three module trail.
Advanced Apex Testing
Learn why testing helps you create better software and how to run various unit tests.
Code Samples
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.
Sign up to receive the monthly Salesforce Developer Newsletter so you never miss the latest announcements, blogs, videos, or Agentforce NOW events.