You are here:
File Preview Screen Component
Display a preview of a file in a screen flow.
Required Editions
Configure the File Preview Component
| Attribute | Description |
|---|---|
| API Name | The API name of the component. An API name can include underscores and alphanumeric characters without spaces. It must begin with a letter and can’t end with an underscore. It also can’t have two consecutive underscores. |
| Content Document ID | Required. The ID of the ContentDocument object to preview. |
| Label | The label that appears before the file preview. This attribute accepts single-value resources. The value is treated as text. |
Set the Component Visibility
Specify the logic that determines when the flow displays the component.
| Option | Description |
|---|---|
| When to Display Component | Configure when the component is displayed by using conditional logic. You can set the components to:
|
In a customer service flow, display a preview of an uploaded receipt or document so agents can verify information without downloading the file.

