DocumentGenerated
Updated 2026-07-01·1 min read
This custom Apex type represents the output that Platform Events and the Platform Events Apex Handler methods return for the document-generated platform event type. It exposes the parent record, the generated ContentVersion, the file name, and the resulting Resource.
Fields
Output fields
| Parameter | | Description |
|---|
ParentIdString |
| Id of the record the generated document is attached to. |
ContentVersionIdString |
| Id of the ContentVersion created for the generated document. |
NameString |
| Name of the generated document. |
file |
| The generated document as a Resource. |