Skip to main content
Skip table of contents

Create Chatter File Links

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:

  1. 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).

  2. When a user uploads a file via the 24Files component, a Chatter File Link record is created for that file.

  3. 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.

Note: we are also evaluating ways to better manage and clean up outdated or orphaned Chatter links.

The batch can be invoked via Apex Action in a Flow. It accepts the following input parameters:

Batch Size: Number of junctions processed per batch execution (1–200). Default: 5
Reprocess All: If true, resets previously processed Folder Structure Junctions and regenerates all links. Default: false

Limitation: The batch only processes files in the active SharePoint Site Document Library. To respect Salesforce callout limits (100 per batch) and SharePoint throttling (429 errors), the batch automatically handles retries and resumes from checkpoints. Because of these safeguards, processing a large number of junctions, especially with Reprocess All = true, can take significant time. Plan accordingly when running large batches.

image-20260213-084359.png

Apex Action screen

See, also the section 24Files Apex methods for more details.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.