# ResourceUpdated

Event payload describing a resource that was updated, including which fields changed.

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

Custom Apex type representing the output that Platform Events and the Platform Events Apex handler return for the resource-updated platform event type. It is exposed on the Event wrapper and surfaced by Client.getEventDetails().

## Fields

### Output fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| Resource | <a href="#/apex-type-resource">Resource</a> | optional | The resource that was updated. |
| RecordId | String | optional | Salesforce Record Id. |
| UserId | String | optional | Salesforce User Id. |
| UpdatedFields | List&lt;String&gt; | optional | Names of the fields that were updated. |
