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

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

Uploading Files through Screen Flow is a bit tricky. We can’t use ‘Create Record’ element like we can for creating other records. And then 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 straight forward, we thought of documenting the whole solution in a step-by-step guide format  and share 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.

Introducing Mastering Salesforce Flows Training Course

Liked this guide? We are now offering a complete self-paced, video-based training course on Mastering Salesforce Flows. The course comes with downloadable step-by-step PDF guides, unlimited access, free upgrades, area to ask questions, free preview & 100% money back guarantee. For more details, please click here.

Need Help with Flows?

Need advice on Flows? I also offer advisory & consulting services on Salesforce Flows. So, whether you want to create new Flows or migrate existing automations (Workflow Rules, Process Builder, Triggers) to Flows, I can help you analyze, design, plan & review. To initiate a discussion, please submit the contact form here stating your requirement or book a 30-minute free discovery call at this URL.

References & Useful URLs

14 thoughts on “How To Use Screen-Flow to Upload Files & Make it Mandatory”

  1. for some reason, in the decision element when file is not uploaded, it skips everything else and creates the record. i have set the criteria for no using the fileidlength as youve instructed and made is less than 2. Why is it creating the record when I have other actions after?

    1. Hi Jessica, I tested it again at my end and if I don’t upload the file, it shows me the message “You have not uploaded a file. Uploading file is mandatory. If you don’t want to upload the file, the Account record that you just created won’t be saved. Please check the box below if you don’t want to upload the file.” You may want to check the configuration of your Flow again.

  2. Abhishek Kumar

    Hi Agrawal,
    I need your help for one requirement.
    In case object there is one field case origin( with three picklist value). So I want to make attachment mandatory based on two picklist value of case origin. I don’t have a attachment option to attach the file in case creation form.
    So I wanted to make attachment mandatory immediate after the case creation.

    1. Hi Abhishek, you won’t be able to do it using the standard screens. I think you will need to use Flows or LWC to create the case where you can enforce this rule.

    1. Hi Keith, My site was down till yesterday for maintenance. It is back up now. Can you please check if you are still having issues? If yes, please let me know the URL that you are trying to access and I will take a look.

    1. Hi Ranjan, do you mean you still needed to spend five hours after referring to this guide? Can you tell me where exactly you struggled so that I can update the guide?

  3. Thankyou sir, you put lot of efforts in creating those step by step slides in detail.
    please keep posting on Flows & Integrations with different applications.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top

Don't Miss Out on New Step-by-Step How To Guides on Salesforce...

…Subscribe to Our Newsletter!