---
schema_version: "1"
id: 0a3cb9d5750d092de09b81deb5b092cbc6089df2cf2c8ab8635ac4e1d35efcdf
title: ApexResult
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_apexresult.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_apexresult.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9e7c2c73bdfe95865a8822a79eca6b64dbe5af711bbb2ecccc1f5c5f64a8a255
description: 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.
---
# 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

![Note](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/images/icon_note.png)

#### Note

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















 |

## 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.