How To Use Screen-Flow to Upload Files & Make it Mandatory

Uploading files through Screen Flow is a bit tricky. We can't use the 'Create Record' element like we can for creating other records. And we can't even make the file upload mandatory like we can make other fields mandatory in Screen Flow.

This is a question that was asked by one of our #Mastering Salesforce Flows course participants, and since the solution is not very straightforward, we thought of documenting the whole solution in a step-by-step guide format and sharing with everyone.

Here's the business requirement

  • Create a Flow to create a record with attachments (files)

  • Make the file upload mandatory

  • If the user does not upload the file, then delete the record that was created

And here is the Flow design. Step-by-step with screenshots.

References & Useful URLs