Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Apex-Related Calls

The following table lists supported calls in the API in alphabetical order, and provides a brief description for each. Click a call name to see syntax, usage, and more information for that call.

For a list of core calls, see Core Calls, for a list of describe calls, see Describe Calls, and for a list of utility calls, see Utility Calls.

Note

Call Description
compileAndTest() Compile and test your Apex in a single call.
compileClasses() Compile your Apex in Developer Edition or sandbox organizations.
compileTriggers() Compile your Apex triggers in Developer Edition or sandbox organizations.
executeanonymous() Execute a block of Apex.
runTests() Run your Apex unit tests.