Flow and File Upload

Documentation

Salesforce makes a File Upload screen component available. It’s documented here. This component requires a recordId and associates the uploaded files with that record. It can accept multiple files and returns a collection of ids representing the uploaded file. These ID’s are of the type Content Document (Note that this is different from the older ‘Attachment’ Object Type).

More detail on the different ways files can be used in Flow is available here.

Articles

David Litton: The Lowdown on Uploading a File inside a Flow

Automation Champion:Enhance Productivity by Uploading Files Directly from a Flow!)

Subscribe
Notify of
guest
5 Comments
Inline Feedbacks
View all comments
Shawna Richardson

How would I make the file attachment/upload required?

Blake

I too would like to know how to make it required.

Last edited 26 days ago by Blake
Blake

How can you display the attached files within the component or on the screen. Example I want to attach multiple files, I attach, click Done..nothing displays, did it take? I now attach a second file, wait, which one did I already attach?
Additionally, I found I couldn’t use this component until the case was already created, i.e. have a record ID so I can’t keep it on the same screen as other questions. Anything I’m missing?

Samil

Hi Blake, you will need custom code to display what you need.The out the box file upload cmp is very limited.

https://www.issacc.com/advanced-lightning-file-upload-component/

venky

I am using this component. However in Android i have specific issues where it is not allowing me to upload the file.. Anyone facing this?