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.
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.
Execute flow and transaction control statements on the Salesforce Platform server and interact with web services.
Write Apex code to customize Salesforce features like actions, flows, authentication, and Experience Cloud sites.
Develop your Apex code in a sandbox, debug it, unit-test it, then distribute it to your customers using packages.
Get access to information about built-in Apex classes, interfaces, enums, and exceptions, grouped by namespace.
Use a single command-line interface for the Salesforce Platform and Salesforce DX.
Access tools for developing on the Salesforce Platform in the lightweight VS Code editor.
Analyze your source code to ensure it meets code quality standards.
Get familiar with Apex and expand your skills by taking this three module trail.
Learn why testing helps you create better software and how to run various unit tests.
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.
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.
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.