FileViewed
Updated 2026-07-01·1 min read
Custom Apex type representing the output that Platform Events and the Platform Events Apex Handler return for the file-viewed platform event type. It is surfaced on the Event payload returned by Client.getEventDetails(). It exposes the following fields.
Fields
Output fields
| Parameter | | Description |
|---|
Resource |
| The Resource that was viewed. |
Link |
| The Link through which the resource was viewed. |
RecordIdString |
| Salesforce Record Id. |
TimeSpentDouble |
| Time Spent (In Seconds). |
EmailString |
| Viewed By. |
downloadedBoolean |
| Whether the resource was downloaded. |