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.

ApexResult

A complex type that represents the result of Apex code executed as part of an ApexExecutionOverlayAction , returned in an ApexExecutionOverlayResult. Available from API version 28.0 or later.

Fields

Field Details
apexError
Type
string
Description
The error text returned if the execution was unsuccessful.
apexExecutionResult
Type
ExecuteAnonymousResult
Description
The structured result returned from a successful execution.
ExecuteAnonymousResult includes the following fields:
  • column
  • compileProblem
  • compiled
  • exceptionMessage
  • exceptionStackTrace
  • line
  • success

ExecuteAnonymousResult is outside the current execution context and does not provide access to variables in the heap.

Note

Usage

Overlay Apex on checkpoints to capture structured debugging information. If your SOQL query may return more than one record when dealing with complex types, select only one row. For example, you can use a LIMIT=1 clause in your SOQL query, or you can list rows for the user and have them select the row to inspect.