Automating Folders
Share Connect Automation allows users to automatically create new SharePoint folders and link existing folders. Before getting started, please make sure you’ve set up a flow using the Automate Share action using the Share Connect Automation with Salesforce Flows article.
There are two ways to automate folders using Flow:
- Record-Trigger Flow - Use this when you want a folder immediately created in SharePoint upon creation of a Salesforce record.
- Scheduled Flow - Use this when you have existing Salesforce records you want to create and link SharePoint folders to.
Please note that creating folders using Schedule-Triggered Flows requires the paid Mass Actions add-on. Please contact sales for more information.
Automate Creating New Folders
- Navigate to Salesforce Setup.

- Search for Flows.

- Click New Flow.

- Create a new Record-Triggered Flow.

- In your flow, click the (+) to open a New Action Element.

- Click the Operation picklist and select New SharePoint Folder.
- Enter a required Folder Name.
- Select a Destination for the folder in SharePoint.
- Optionally, set whether the new folder should be linked to the Salesforce record and/or set as the Default Record Folder.
- When selecting New SharePoint Folder as your top-level operation, you can add additional child operations by selecting Add Child Operation.
-
- New SharePoint Folder: Creates an additional folder nested within the parent folder. Share Connect Automation supports up to five levels of nested folders.
- New File from Template: Merges data from Salesforce into a Document through the Merge Connect integration. (Requires Merge Connect to be installed in your org)
- New Link to Parent: Links the parent folder to the parent Salesforce record by selecting a lookup field.
- Update Record Field: Updates a Salesforce record field with the URL, ID, or content version ID of the SharePoint folder.
Automate Linking Existing Folders
- In your flow, open a New Action Element node.
- Click the Operation picklist and select New Folder Link.
- Select the Folder to Link picklist.
- Parent Record's Default Record Folder: Links the default record folder of the parent record. Select the Lookup field to the parent record.
- Parent Record's Linked Folder: Links an already linked parent folder. Select the Lookup field to the parent record and add the SharePoint folder name that matches the existing linked folder.
- Folder from SharePoint: Select any SharePoint folder from the picker to link it to the current record.

Note: If you receive a warning regarding insufficient access for the Automated Process User, ensure the folder location you select is accessible by the Automated Process User with full edit permission.