# DocumentMapperRun

Event payload returned for the document-mapper-run 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 document-mapper-run platform event type. It is exposed on the Event type and surfaced by Client.getEventDetails().

## Fields

### Output fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| FileId | String | optional | Id of the file the document mapper ran on. |
| VersionNumber | Integer | optional | Version number of the file the mapper processed. |
| ConfigId | String | optional | Id of the document mapper configuration that ran. |
| RecordId | String | optional | Salesforce Record Id associated with the run. |
| Context | String | optional | Context attribute describing the source of the run. |
