---
title: "Automating Folders - Appiphony"
url: "https://appiphony.com/docs/share-connect/features/automation/automating-folders"
---

# 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](https://appiphony.com/docs/share-connect/features/automation/automation/creating-automations/).

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](https://appiphony.com/contact-sales/) for more information.

### Automate Creating New Folders

1. Navigate to **Salesforce Setup**.
2. Search for **Flows**.
3. Click **New Flow**.
4. Create a new **Record-Triggered Flow**.
5. In your flow, click the **(+)** to open a **New Action Element**.
6. Click the **Operation** picklist and select **New SharePoint Folder**.
7. Enter a required **Folder Name**.
8. Select a **Destination** for the folder in SharePoint.
9. Optionally, set whether the new folder should be linked to the Salesforce record and/or set as the Default Record Folder.
10. 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

1. In your flow, open a **New Action Element** node.
2. Click the **Operation picklist** and select **New Folder Link**.
3. 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.*
