Salesforce: Mass File Downloader

It often the case where you want to or asked to download single or multiple selected Salesforce Files. However, there is no solution available out of the box that lets you select and download multiple files.

So building on the idea shared by fellow friend, M Hamza in his post, I built a web component that allows you to select and download files from a table.

The component can be embedded onto home page to download multiple files(as a zip). This component is a very basic version which can be extended based on the business use case at hand.

The component will be available as a part of an unmanaged package.

In addition to the component, I’ve also packaged a flow action that can be used in screen flow to download multiple files at once.
The flow action accepts a list of Content Document IDs as input.

You can pair this component with other screen components and the components available on unofficialsf.com to create seamless experience for your end users and customers.

You can find the source code and link to the managed package here:
https://github.com/forcePanda/Lightning-Components-Repo/tree/master/Mass%20File%20Downloader

Hope you find this one useful! I’ll catch you in the next one. ✌
Thank you for being an awesome reader! Subscribe to this blog for receiving all the latest updates straight to your inbox.  🙂

15 thoughts on “Salesforce: Mass File Downloader

  1. Pingback: From Narender Singh: A Mass File Download Screen Component – UnofficialSF

  2. Wow, works nice and clean! To get it working on a per record basis, you need to get a list of the Content Document Ids related to the record.

    To do this, get ContentDocumentLinks where the RelatedEntityId is the id of your record. Then you need to pass a list of the ContentDocumentIds from that collection to the Mass File Downloader Action. This can all be done in Flow.

    The user gets a zip file with all of the documents. It’s nice and quick!

    Liked by 1 person

    • When I open this up in Flow it only allows me to pass through a single variable. What do you mean pass a “list” is this not a collection variable of all the Content Documents?

      Like

  3. Have downloaded via the link above – it does not contain a sample flow.
    when trying to use the apaex action in the flow we are told we have reached the limit for the actions

    should there be a flow screen component ?

    Like

  4. Can you please explain further what you mean by pass a “list” it looks like it only accepts a single variable but I want to use this to download more than one file but it does not accept Content Document IDs as a collection. Thanks!

    Like

Leave a comment

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