Functional Components

File Browser

Functionality

The Pliqs File Browser is the central user-facing component of the Pliqs application, providing a direct interface between Salesforce records and external file storage systems such as Google Drive and SharePoint. It is designed to allow users to access, manage, and organize externally stored files and folders without leaving Salesforce, enabling seamless integration into existing business workflows. The component adopts Salesforce’s native Lightning styling and behavior to ensure consistent user experience and supports both desktop and mobile environments.

The core purpose of the File Browser is to allow users to work with files externally stored while remaining inside Salesforce, eliminating the need to switch between systems, maintain duplicate file repositories, or consume large volumes of Salesforce file storage.

Through the component, users can authenticate to an external drive, browse and search folder structures, upload files, create new folders, link files or folders to records, open items directly in Google Drive or SharePoint, rename and delete files, and manage default upload locations. All actions performed in the File Browser are executed against the external storage in real time and reflect immediately in both systems.

Placement

The File Browser is a Lightning Web Component (LWC) embedded into Salesforce record pages. It displays the connected external drive’s folder hierarchy and provides contextual actions for interacting with files and folders, including upload, linking, renaming, deleting, downloading, navigation, and folder structure management. It does not store file content in Salesforce; instead, it references and interacts with files directly in the external storage provider through OAuth-secured APIs.

The File Browser can be placed on the Lightning Record Pages of both standard Salesforce objects (such as Accounts, Opportunities, or Cases) and custom objects configured within the organization. Administrators add the File Browser to a record page through Lightning App Builder by inserting the Pliqs File Browser component into the page layout. Once added, the component becomes visible to users who have appropriate Pliqs licensing and assigned permissions. After initial configuration, the browser will appear on any configured record page and display drive-specific content associated with that object.

User Action in File Browser → LWC Action Handler → Apex Controller → External Storage Provider REST API → External System Response → Updated UI Rendering.

Available Actions

A range of actions will be available depending on the connection status (as seen in x.1), file and folder availability, and type of actionable item selected.

Below are action lists expanded for linked folder, non-linked subfolder, linked file, and non linked file respectively.

1. Sign In

Sign In and Refresh actions are available for any Pliqs browser component inserted into a record page. Sign In is the primary action until further setup, while the Refresh button allows reloading the component at any time. Using the Sign In action opens the “Login to FileService” form, in which the user selects one of the previously created Connection Strategies. Continuing requires choosing and signing into an account of the chosen external drive.

Once authenticated, the user will be connected to the added external drive account, unlocking the external drive structure and additional functionality becomes available.

Sign Out becomes available after authentication and can be accessed by clicking the drive icon within the browser interface. Next to it, the “My Drive” button allows users to quickly navigate directly to the external drive. Using the Sign Out action disconnects the user from the external drive and removes the active user’s access token. Once signed out, access to the file browser is restricted again, returning the interface to the initial state where only the Sign In and Refresh actions are available.

2. Upload File

Upload File allows the user to upload a new file from their local device to the external storage system. The action opens an upload form, offering both traditional file selection and drag-and-drop options. The user may choose whether to link the newly uploaded file automatically to the Salesforce record. Once confirmed, the file is transferred to the selected destination folder and, if set to create a link to the newly uploaded file, becomes visible in the browser after completion.

The folder selection system itself offers three ways to set the destination. Besides the self explaining Root option, it is also possible to either select any of the existing folders from the drive or create a new one, both of which prompt you to select a folder which will function respectively as destination of the file or destination of the new folder. Clicking the folder name directs further into the folder structure showing its contents, and the checkbox next to the folder finalizes the selection unlocking the Upload button.

Target limit of the file upload done through the Pliqs browser is 3 MB file size. Attempts to upload files over this limit will result in failed process, sometimes locking the component behind an infinite spinner and showing one of a couple possible error messages:

  • “communication error, please retry or reload the page”
  • “Received exception event aura:systemError from server”
  • “Apex heap size too large”
  • “File is too large. Maximum allowed size is 3MB.”

3. Link File/Folder

Link File/Folder enables the user to create a new Content Document Link and to establish its connection to existing file or folder located within the external storage. This action does not duplicate or move the file, but instead stores reference metadata allowing access to the drive’s content directly from the record’s Pliqs browser.

The action itself opens a form that allows selection from all items located on the drive. Clicking a folder’s name navigates to its content and selecting a checkbox next to any item makes the selection, thus unlocking the New Link button that finalizes the action.

If an item is already linked, the system prevents duplicate linkage and informs the user appropriately.

4. Open in File Store

The action activated on a folder opens a new web browser page which automatically redirects to the open folder’s page on the external storage interface. Due to the nature of accessing private drives, the user will need appropriate access permissions to the files it contains in order to interact with them.

5. Upload to Folder

Upload to Folder functions similarly to Upload File but pre-sets the destination to the folder from which the action was activated. Instead of choosing a location, the upload form opens with the target folder already selected, simplifying structured placement of uploaded files.

Selecting/dropping the file is the same functionality and uploading follows the same process as the Upload File action.

6. Create New Folder

The action allows for expanding the folder structure located in the connected drive. Using the action opens a form that intakes a character string in the Folder Name field that becomes the newly created folder’s name. Link Folder to Record option creates a link to the folder in the record in which the action was activated in addition to the standard folder creation.

7. Set as Default Folder

This action marks the activating folder, either linked or not, as a default folder. Setting a folder as default causes it to be automatically chosen as the destination of the newly uploaded files. This destination is not locked and is available to change in the upload form.

The default folder state is limited to a single folder per record – selecting a second folder will mark it as such, returning the previously marked folder to normal. Visually this state is indicated by the change in the folder’s icon.

8. Rename

Rename action, applicable to both files and folders, opens a simple form that intakes a string of up to 255 characters. Upon successful completion a request to rename the browser is sent to the external drive, so that the change is reflected in both the storage and the browser display.

9. Delete from File Store

Delete from File Store allows the user to permanently remove a selected file or folder from the external storage system. This action prompts confirmation and, once approved, deletes the resource remotely. If the deleted item was previously linked, the link is removed from the Salesforce record as part of the cleanup.

10. Create a Link/Unlink

Create Link provides a manual option to associate a selected file or folder, existing as content of the already linked items, with the current Salesforce record.

Unlink removes the association while leaving the file intact within the external drive, unless a configuration option indicating that unlinking should also delete the external resource is set.

When items are linked to multiple Salesforce records, unlink behavior applies only to the active record. Further actions may vary depending on configuration and permissions.

11. Download

Download allows exporting a selected file directly to the user’s local machine from the interface of salesforce browser interface. The download request is routed through the drive provider, and its availability depends on file type and permissions. Non exportable files will not allow this action (MIME types: form, map, site, script, functionable)