---
schema_version: "1"
id: 0a739288929297d2785a7fd49fecbb287a97898bbd60c4f9705c6aad7183e304
title: ApexExecutionOverlayResult
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_apexexecutionoverlayresult.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_apexexecutionoverlayresult.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: ff5d4a4d36f7b161feb6b28621e691b181c620c560cf563bfd9f86ccce7101fa
description: Represents the result from the Apex code snippet or SOQL query defined in the associated ApexExecutionOverlayAction, and the resulting heap dump if one was returned. Available from API version 28.0 or later.
---
# ApexExecutionOverlayResult

Represents the result from the Apex code snippet or SOQL query defined in the associated ApexExecutionOverlayAction, and the resulting heap dump if one was returned. Available from API version 28.0 or later.

## Supported SOAP Calls

query(), retrieve(), delete()

## Supported REST HTTP Methods

Query, GET, DELETE

## Fields

| Field Name | Details |
| --- | --- |
| ActionScript | 
Type

string

Properties

Nillable

Description

The Apex code or SOQL query that was run.



 |
| ActionScriptType | 

Type

picklist

Properties

Filter, Group, Sort, Nillable

Description

Indicates whether the ActionScript is written in Apex or SOQL. Valid values are:

- None
- Apex
- SOQL





 |
| ApexResult | 

Type

[ApexResult](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_apexresult.htm "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.")

Properties

Nillable

Description

A complex type that represents the result of Apex code executed as part of an ApexExecutionOverlayAction, returned in an ApexExecutionOverlayResult.



 |
| ExpirationDate | 

Type

dateTime

Properties

Filter, Sort

Description

The expiration date of the overlay action.



 |
| HeapDump | 

Type

[HeapDump](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_heapdump.htm "A complex type that represents a heap dump in an ApexExecutionOverlayResult object. Available from API version 28.0 or later.")

Properties

Nillable

Description

A complex type that represents a heap dump in an ApexExecutionOverlayResult object. You can only have a single row when using HeapDump in SOQL. To select only one row, you can use a LIMIT=1 clause in your SOQL query, or you can list multiple rows for the user and have them select the row to inspect.



 |
| IsDumpingHeap | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates whether a heap dump was generated (true) or not (false).



 |
| Iteration | 

Type

int

Properties

Create, Filter, Group, Sort, Update

Description

The number of times the specified line should execute before the heap dump is generated. This field is required.



 |
| Line | 

Type

int

Properties

Filter, Group, Sort, Nillable

Description

The line number of the checkpoint.



 |
| SOQLResult | 

Type

[SOQLResult](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_soqlresult.htm "A complex type that represents the result of a SOQL query in an ApexExecutionOverlayResult object. Available from API version 28.0 or later.")

Properties

Nillable

Description

A complex type that represents the result of a SOQL query in an ApexExecutionOverlayResult object.



 |
| UserId | 

Type

reference

Properties

Filter, Group, Sort,

Description

The user who executed the action.



 |

## Usage

When you are troubleshooting a runtime issue, you often want to find out more about the state of a variable or the state of the database, or create a specific condition to test your code. Use [ApexExecutionOverlayAction](https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_apexexecutionoverlayaction.htm "Specifies an Apex code snippet or SOQL query to execute at a specific line of code in an Apex class or trigger. Optionally, generates a heap dump.") to overlay a diagnostic output on an Apex class or trigger without compromising production code, and use ApexExecutionOverlayResult to navigate the results.