Work with Code

This section contains information about the tools and techniques you can use when making changes to your organization by using code.

  • The Editor for Visualforce or Apex
    When editing Visualforce or Apex, either in the Visualforce development mode footer or from Setup, an editor is available.
  • Source Code Editor
    The Developer Console includes a Source Code Editor with a collection of features for editing Apex and Visualforce code.
  • Object Inspector
    The Object Inspector provides a read-only reference for the fields of a standard or custom object, and their data types. To open the Object Inspector, click File | Open and select the object you want to view.
  • Global Variables
    When you work with components such as custom buttons and links, formulas in custom fields, validation rules, flows, processes, and Visualforce pages, you can use special merge fields to reference data in Salesforce.
  • Valid Values for the $Action Global Variable
    All objects support basic actions, such as new, clone, view, edit, list, and delete. The $Action global also references actions available on many standard objects. The values available in your organization may differ depending on the features you enable.
  • Apex Code Overview
    Apex is a strongly typed, object-oriented programming language that allows developers to execute flow and transaction control statements on the Salesforce Platform. Apex enables developers to add business logic to most system events, including button clicks, related record updates, and Visualforce pages. Apex code can be initiated by web service requests and from triggers on objects.
  • Visualforce
    Visualforce is a framework that allows developers to build sophisticated, custom user interfaces that can be hosted natively on the Lightning Platform. The Visualforce framework includes a tag-based markup language, similar to HTML, and a set of server-side “standard controllers” that make basic database operations, such as queries and saves, simple to perform.
  • Lightning Component Framework
    The Lightning Component framework is a UI framework for developing single-page web apps for mobile and desktop devices.
  • Lightning Types
    Lightning types are JSON-based data types used to structure, validate, and display data. While Salesforce provides a set of standard Lightning types, you can create custom Lightning types to customize the UI experience based on your business requirements.
  • Secure Your Code
    This section contains information about implementing security in your code.
  • Email Services
    You can use email services to process the contents, headers, and attachments of inbound email. For example, you can create an email service that automatically creates contact records based on contact information in messages.
  • Custom Labels
    Custom labels enable developers to create multilingual applications by automatically presenting information (for example, help text or error messages) in a user’s native language. Custom labels are custom text values that can be accessed from Apex classes, Visualforce pages, Lightning pages, or Lightning components. The values can be translated into any language Salesforce supports.
  • Defining Custom S-Controls
    S-controls provide a flexible, open means of extending the Salesforce user interface, including the ability to create and display your own custom data forms.