24Files Spring '26 Release
The new 24Files spring release is out!
It includes two new Apex methods for use cases requested by many customers.
List all Files in a Record
The “List Files in Record or its Folder” invocable Apex method lets you retrieve a list of SharePoint files for a Salesforce record.
Normally, users browse files through the 24Files LWC component. But sometimes files are created or managed entirely by automation, and users never open the folders themselves. This method gives your Flows or other Apex processes a way to see what’s in a folder without needing anyone to click around.
It works for both recursive searches across all subfolders or targeted searches in a single folder, so you can use it to check how many files exist, find specific file types, or generate simple file reports.
The response includes amongst others:
File count: number of files that were found.
Files List: list of files with details including name, type, size, last modified date, and last modifier.
Search path: the actual folder that was searched/visited.
Chatter File Link Create
The Create Chatter File Links for All Junctions invocable Apex method allows Flows to automatically create Chatter file links for SharePoint files.
Normally, Chatter links are generated automatically in the following cases:
At the initial load of the 24Files component on a record page, Chatter File Links are created for the files in the record folder (authenticated access mode) or in the public folder (anonymous access mode).
When a user uploads a file via the 24Files component, a Chatter File Link record is created for that file.
When a user opens a folder in the 24Files LWC component. In this case Chatter File Links are created for all files in the folder.
However, in backend-driven scenarios where folders and files are created entirely through automation, users may never manually open each folder.
In such cases, this batch method allows you to generate all Chatter links without requiring folder visits, making files Global Searchable and Chatter-ready immediately.
Sub Releases
6.20 up to 6.220