Apex Aide apexaide

How to Preview a File in Screen Flow

Salesforce Time· ·Intermediate ·Admin ·2 min read
Summary

Salesforce’s Spring '26 release introduces a native File Preview component for Screen Flow, enabling users to preview files directly within a Flow screen. This solves the earlier limitation where no official way existed to display files, improving user verification and approval processes. It supports single files by passing the Content Document Id and even multiple files through using a Repeater. The component is reactive, allowing preview of freshly uploaded files in real-time, streamlining automation and user experience.

Takeaways
  • Use the File Preview component in Screen Flow by passing a Content Document Id.
  • Retrieve Content Document Id via Get Records on Content Document Link records.
  • Preview multiple files by embedding File Preview components inside a Repeater.
  • Leverage the component's reactivity to preview newly uploaded files instantly.
  • Use a formula to extract a single Content Document Id from a File Upload component.

Previewing a file inside a Screen Flow can be a game changer. Especially when users need to verify a document before continuing, approve something, or simply understand what they are working with. Until now, Flow didn't offer a native way to do this, so we had to rely on custom, unofficial solutions to display files on a screen. In the Spring '26 release , Salesforce has introduced a new Screen Flow component called File Preview. With this component, you can preview a file directly on a Flow screen, making the experience smoother, faster, and fully supported out of the box. Here is how to preview a file in Screen Flow. How to Use the File Preview Component The File Preview component has a very simple configuration. You just need to provide the Content Document Id of the file you want to preview. To find the Content Document Id, you can use a Get Records element to retrieve the Content Document Link record (the record that links a file to a record).

Flow BuilderFlow