Automating Folders
Drive Connect Automation allows users to automatically create new Google Drive folders and link existing folders. Before getting started, please make sure you’ve set up a flow using the Automate Drive action using the Drive 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 Google Drive upon creation of a Salesforce record.
- Scheduled Flow - Use this when you have existing Salesforce records you want to create and link Google Drive 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
- In your flow, create a new Automate Drive action element node.

- Click the Operation picklist and select New Drive Folder.
- Enter a Folder Name. You can utilize merge fields in the folder name by selecting the brackets button within the field.
- Select a Destination for the folder in Google Drive.
- Optionally, set whether the new folder should be linked to the Salesforce record and/or set as the default record folder.

- When selecting New Drive Folder as your top-level operation, you can add additional child operations by selecting Add Child Operation.
-
- New Drive Folder: Creates an additional folder nested within the parent folder. Drive Connect Automation supports up to five levels of nested folders.
- New File from Template (Child): Generates a Drive Connect template within the parent folder. For more details, see the Generate Google Docs from Templates article.
- New Drive Shortcut: Creates a Drive Shortcut of the parent folder in any destination location. Configure the shortcut name and destination as needed.
- 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 Google Drive 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 Drive folder name that matches the existing linked folder.
- Folder from Drive: Select any Drive folder from the Google 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.