Features
CloudFiles Widgets Guide

CloudFiles Uploader Widget

The CloudFilesUploader Component is a Lightning Web Component (LWC) designed to facilitate seamless file uploads within Salesforce screen flows. Unlike the standard Salesforce file upload feature, this component enables users to upload files directly to external storage platforms such as Google Drive, SharePoint, or AWS S3, helping manage Salesforce storage usage more efficiently.

Document image


When files are uploaded through the CloudFiles Uploader, their names/labels are visible, making it easier to track and manage uploaded documents.

The uploaded files associated with a batch will not be visible upon reloading the page or after clicking "Finish." However, please be assured that the files have been successfully uploaded.



Document image


Input Parameters

Let us discuss each of the input parameters in detail in the sections below.

API Name

Please provide a unique name for the API component.

Destination Parameters

These parameters are needed to specify the storage location. You can get these parameters by viewing metadata details for a folder in the “Content Library” tab of the CloudFiles app in Salesforce. To get the value of Destination Parameters, please refer to the Create Folder flow action.

  1. Library
    The library is the desired Cloud based drive where you wish to create the folder. This is a simple text field and you can enter one of these options - sharepoint, google, onedrive, dropbox, box, cloudfiles (for AWS S3).
  2. Drive ID
    Drive ID of the resource(to be copied) for SharePoint or Google Drive. This parameter is not needed for other storages.
  3. Folder ID
    This is the folder ID of the destination folder where the files will be copied.
Document image


Output Parameters

The component will return all the contents of the uploaded files as a Resource List.

output.png


Note: Output is session-specific. When the page is refreshed or closed, the output will be reset.

Use Case

The CloudFilesUploader component replaces the standard Salesforce file upload component in screen flows, enabling users to upload files directly to external storage.