---
schema_version: "1"
id: b3bf3f44637050becb14c824f27bd6445aa0e384bed1c8760fd606481d5ea071
title: External Custom Apex Callout Event Type
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_eventlogfile_externalcustomapexcallout.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_eventlogfile_externalcustomapexcallout.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3a2b1c9581070cf8a08bc789dae4538d690fbd0580502bf14204605bf42eb1df
description: External Custom Apex Callout events represent external data callouts via custom adapters for Salesforce Connect. This event type is available in the EventLogFile object in API version 40.0 and later.
---
# External Custom Apex Callout Event Type

External Custom Apex Callout events represent external data callouts via custom adapters for Salesforce Connect. This event type is available in the EventLogFile object in API version 40.0 and later.

For details about event monitoring, see the [Trailhead Event Monitoring module](https://trailhead.salesforce.com/en/modules/event_monitoring/units/event_monitoring_intro "HTML (New Window)") or [REST API Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_rest.meta/api_rest/using_resources_event_log_files.htm "HTML (New Window)").

## Fields

| Field | Details |
| --- | --- |
| ACTION | 
Type

String

Description

Action performed by the callout.

Possible Values

- query
- upsert
- delete





 |
| ENTITY | 

Type

String

Description

Name of the external object being accessed.

Example

Order



 |
| EVENT\_TYPE | 

Type

String

Description

Type of event. Value is always ExternalCustomApexCallout.



 |
| EXECUTE\_MS | 

Type

Number

Description

How long it took (in milliseconds) for Salesforce to prepare and execute the query. Available in API version 42.0 and later.

Example

102



 |
| FETCH\_MS | 

Type

Number

Description

How long it took (in milliseconds) to retrieve the query results from the external system. Available in API version 42.0 and later.

Example

607



 |
| FILTER | 

Type

Text

Description

Field expressions to filter which rows to return. Corresponds to WHERE in SOQL queries.

Example

Filter:\[columnName=CustomerID, columnValue=537, subfilters=null, tableName=Order, type=EQUALS\]



 |
| LIMIT | 

Type

Number

Description

Maximum number of rows to return for a query. Corresponds to LIMIT in SOQL queries.

Example

200



 |
| MESSAGE | 

Type

String

Description

Error or warning message associated with the failed call.

Example

System.UnexpectedException: Query is either selecting too many fields or the filter conditions are too complicated



 |
| OFFSET | 

Type

Number

Description

Number of rows to skip when paging through a result set. Corresponds to OFFSET in SOQL queries.

Example

0 (default)



 |
| ORDERBY | 

Type

String

Description

Field or column to use for sorting query results, and whether to sort the results in ascending (default) or descending order. Corresponds to ORDER BY in SOQL queries.

Examples

(Order:\[columnName=OrderDate, direction=ASCENDING, tableName=Order\])



 |
| ORGANIZATION\_ID | 

Type

Id

Description

15-character ID of the organization.

Example

00D000000000123



 |
| REQUEST\_ID | 

Type

String

Description

Unique ID of a transaction. A transaction can contain one or more events. All events in a transaction have the same REQUEST\_ID.

Example

4A13-HSKv3CKs-0FKfceaV



 |
| ROWS | 

Type

Number

Description

Total number of records in the result set.

The value is always -1 if the custom adapter’s DataSource.Provider class doesn’t declare the QUERY\_TOTAL\_SIZE capability.

Example

200



 |
| ROWS\_FETCHED | 

Type

Number

Description

Number of rows fetched by the callout. Available in API version 42.0 and later.

Example

200



 |
| SELECT | 

Type

String

Description

Comma-separated list of fields being queried. Corresponds to SELECT in SOQL queries.

Example

(ColumnSelection:\[aggregation=NONE, columnName=Name, tableName=Order\], ColumnSelection:\[aggregation=NONE, columnName=CustomerID, tableName=Order\], ColumnSelection:\[aggregation=NONE, columnName=OrderDate, tableName=Order\])



 |
| STATUS | 

Type

Boolean

Description

Whether the query was successful.

Possible Values

- 1—Success
- 0—Failed
- Empty—Failed with no logged status or message





 |
| THROUGHPUT | 

Type

Number

Description

Number of records retrieved in one second.

Example

302.57



 |
| TIMESTAMP | 

Type

String

Description

The access time of Salesforce services in GMT.

For example: 20130715233322.670.



 |
| SUBQUERIES | 

Type

Number

Description

Reserved for future use.



 |
| TIMESTAMP\_DERIVED | 

Type

DateTime

Description

The access time of Salesforce services in ISO8601-compatible format (YYYY-MM-DDTHH:MM:SS.sssZ).

For example: 2015-07-27T11:32:59.555Z. Timezone is GMT.



 |
| TOTAL\_MS | 

Type

Number

Description

How long it took (in milliseconds) to prepare and execute the query and to retrieve the query results.

Example

709



 |
| USER\_ID | 

Type

Id

Description

15-character ID of the user accessing the external system.

Example

00530000009M943



 |

#### See Also

- [EventLogFile Supported Event Types](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_eventlogfile_supportedeventtypes.htm "The EventType field in the EventLogFile object supports these events. Some common fields, such as CPU_TIME and RUN_TIME, can have null or zero values depending on how the events are generated for a given feature. Sometimes, three quotation marks appear around event data containing special characters in the CSV file. The third quotation mark is necessary for tools and applications to parse the field data at the correct field value boundary.")
- [EventLogFile](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_eventlogfile.htm "Represents event log files generated by Event Monitoring. Use event log file data to analyze usage trends and user behavior in your Salesforce org. This object is available in API version 32.0 and later. The Interval and Sequence fields are available only in API version 37.0 and later.")