# DatasetCreated

Event payload returned for the dataset-created platform event type.

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

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

## Fields

### Output fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| datasetId | String | optional | Id of the created dataset. |
| context | String | optional | Context attribute describing the source of the dataset creation. |
