# ResourceAttached

Event payload returned for the resource-attached platform event type.

> Kind: Apex type · Updated: 2026-07-01

This custom Apex type represents the output that Platform Events and the Platform Events Apex handler return for the resource-attached platform event type. It is exposed on the Event type and surfaced by Client.getEventDetails().

## Fields

### Output fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| Resource | <a href="#/apex-type-resource">Resource</a> | optional | The attached resource. |
| RecordId | String | optional | Salesforce Record Id. |
| ObjectType | String | optional | Object type. |
