Newer Version Available

This content describes an older version of this product. View Latest

Apex Language Reference

This Apex reference goes into detail about DML statements and the built-in Apex classes and interfaces.

DML statements are part of the Apex programming language. You can use them to insert, update, merge, delete, and restore data in Salesforce.

Apex classes and interfaces are grouped by the namespaces they’re contained in. For example, the Database class is in the System namespace. To find static methods of the Database system class, such as the insert method, nagivate to System Namespace | Database Class. The result classes associated with the Database methods, such as Database.SaveResult, are part of the Database namespace and are listed under Database Namespace.

SOAP API methods and objects are also available for Apex. See SOAP API and SOAP Headers for Apex.