Administrators can configure the Auto-Create SharePoint Folders feature to enable automatic creation of SharePoint folders whenever a new object record is created. This ensures that each object record has a dedicated folder for storing related documents.
Configuring a Record-Triggered Flow
This section outlines the steps to configure a Record-Triggered Flow in Salesforce to call the Invocable Apex class (TM_SP_AutoCreateRootFolderHelper). When a record is created or updated, the flow automatically creates and syncs the corresponding SharePoint folders linked to that record.
To create a Record-Triggered Flow:
In your Salesforce organization, click the gear icon and select Setup.
Use the Quick Find box to search and open Flows.
Click New Flow.
Select Record-Triggered Flow.
The Flow Builder page appears.Under Select Object, select an object that will trigger the flow (example, Opportunity or Account).
Under Configure Trigger, set the condition for when the flow should run.
To add actions to the Flow:
In the Search Actions box, locate and select TM_SP_AutoCreateRootFolderHelper.
On the TM_SP_AutoCreateRootFolderHelperaction configuration page, fill in the following details:
Click Save.
The save flow dialog box appears.On the Save the flow page, fill in the following details, and then click Save:
