Automate creating new Google Drive folders

Drive Connect Automation allows users to automatically create a new Google Drive folder by selecting the New Drive Folder operation in a Record-Triggered flow.

Before using this operation, ensure to first create a Record-Triggered Flow using the Automate Drive action. For more information on setting up a Record-Triggered Flow, see the Using Drive Connect Automation with Record-Triggered Flows article.

New Drive Folder

In your flow, open a new action element node and follow the steps below:

  1. Click the Operation picklist and select New Drive Folder
  2. Enter in a required Folder Name
    • You can utilize merge fields in the folder name by selecting the brackets button within the field
      Insert merge field

      • Note: If inserting a merge field for the folder name, you must select the same object as your main flow object, i.e. if your flow is running on the opportunity object, you must also select opportunity for your merge field.

  3. Select a Location for the folder to be created in Google Drive. For more information on destination locations, see the Automate Drive Destination Locations article
    New Drive Folder location

    • Optionally set whether the new folder should be linked to the Salesforce record and/or set as the default record folder
      Folder link options

      • 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 rights. For more information, please see the article on Granting access to folders in Drive.

Child Operations

When selecting New Drive Folder as your top-level operation, you can add additional child operations by selecting Add Child Operation

Add child operation

Below is a breakdown of each child operation and their behavior:

New Drive Folder

  • This child operation will create an additional new folder, nested within the parent-level operation’s Drive folder.

Child-New-Drive-Folder

New File from Template (Child)

  • This child operation will generate a Drive Connect template, nested within the parent-level operation’s Drive folder. For more information on using File from Template, see the Generate Google Docs from templates¬†article.

Note: If creating multiple New Drive Folder child operations, Drive Connect Automation can only support child operations up to two levels deep.

New Shortcut

  • This child operation allows you to auto-create a Drive Shortcut of the parent Drive folder in any destination location. If selecting this operation, complete the following steps below:
  1. For Shortcut Name, the parent folder name is auto-populated but can be modified
    • Similar to folders, you can utilize merge fields in the folder name by selecting the brackets button within the field
      Shortcut child operation
  • Note: If inserting a merge field for the Shortcut name, you must select the same object as your main flow object. Otherwise, an error will occur upon saving your flow.

  • Select a Location for the shortcut to be created in Google Drive. For more information on destination locations, see the Automate Drive Destination Locations articleNew Shortcut location
  • This child operation allows you to link the parent-level folder to the parent Salesforce record. If selecting this operation, complete the following steps below:
  1. Click Flow Object, select the same object as your main flow object, and then select a lookup field
    Link to Parent child operation

    • Note: If you do not select the same object as your main flow object, an error will occur upon saving your flow.

For more information on saving and activating your flow, see the Using Drive Connect Automation with Record-Triggered Flows article.