A new Apex Action has been added that allows publishing a “refresh needed” event to refresh the component after changes to GDrive were done asynchronously. It is especially useful to use it in a flow that auto-creates a folder in Google Drive for the specific record and assigns a folder ID to this record. By using the Refresh DriveMate Component Apex Action, the flow triggers the component refresh after the folder ID assignment. As a result, users don’t need to refresh the page to see the appropriate Google Drive folder displayed in the component.
Additional instructions have been added to the app setup page. The new setup step describes how to configure the automatic folder assignment flow with the use of DriveMate Apex Actions.
Simplified Apex Actions
Each of the existing DriveMate Apex Actions now has its new equivalent with a simplified response structure. Thanks to that, there is no longer a need to iterate over unnecessary loops in flows that use DriveMate Apex Actions.
Here are the old actions with their new simplified equivalents:
Upload a file -> Upload a file - Simple Response Structure
Search Files by Name -> Search Files by Name - Simple Response Structure
Search Folders by Name-> Search Folders by Name - Simple Response Structure
Simplified Packaged Autolaunched Flows – Search Files and Search Folders
The packaged autolaunched flows are now using the simplified apex actions versions. Thanks to that, their internal logic is simplified. From the end-user perspective, their behavior is the same.
If you upgrade from the existing DriveMate version lower than 2.5, you will need to go through all configuration steps described on the new setup page – see details in the Setup Page for App Configuration section.
New Permission Set Group for DriveMate App Access
We introduced a new permission set group – DriveMate User Access – to grant users access to the DriveMate app. It contains the already existing DriveMate User permission set and a new one – DriveMate Integration Access.
The assignment of the new permission set group is one of the setup steps described on the new setup page.
Updated Named Credentials for Google Drive Integration
DriveMate is now using an updated version of Salesforce Named Credentials to integrate with Google Drive. This version of named credentials is a new Salesforce-recommended way of connecting to external systems.
Go through the configuration steps on the setup page to set it up correctly.
Per User Integration Mode
Ability to switch between per-user and per-org integration modes.
Now admins can decide whether the operations on Google Drive will be performed in the context of the whole organization account, or the context of each user.
Setup Page for App Configuration
Setup page containing instructions for post-installation steps needed to configure the app.
It contains:
Steps completion tracking
Interactive links to Salesforce Setup Pages – to speed up the manual steps completion
Integration metadata creation automation
Ability to change integration credentials (client ID and client secret from Google Console app definition)
Ability to switch between per-org and per-user integration mode
Comparison table between authorization modes
Removed File Size Limit for Component Upload
Previously, the maximum size of the file uploaded via the DriveMate component was 33Mb and it required additional configuration. All files larger than 6MB were uploaded asynchronously.
Now, the upload has been updated and there is no limit for the file size and upload is done synchronously regardless of the size.
Additionally, file uploads can be now canceled individually.
DriveMate Component Redesign and Improvements
Configurable Columns
Admins can now specify the columns that will be displayed on the DriveMate component by modifying the Folder element properties in columns component attribute.
Supported columns:
title – file/folder name
modifiedTime – last modified date
size – file/folder size
createdTime – creation date
fileExtension – file extension
mimeType – mime type
Configurable Max Number of Uploaded Files
Admins can now specify how many files the user will be allowed to upload at once via the DriveMate component. This can be specified by modifying the Max number of uploaded files at once component attribute.
Additional file/folder action – open, download, move to trash
The DriveMate component supports now individual actions for files and folders.
Actions available for files:
Open in Google Drive
Download
Move to Trash
Actions available for folders:
Open in Google Drive
Move to Trash
Improved Sorting Experience
Component files and folders can be now sorted by clicking on the certain column header.
Elements can be sorted either by date fields, or by title.
Improved Search Experience
Searching of the folder elements happens now real-time as the user types in the search bar. There is no need to submit the search.
Pagination Replacement with Scroll
The pagination mechanism was replaced with a scroll mechanism. The attribute controlling the number of displayed elements per page was renamed to Number of visible elements without scroll.
Deprecated Component Attributes
The Show sorting option?and Delete files from Salesforce after upload? attributes are now deprecated and changing their value has no effect on the component.