Skip to content

Drive Folder Manager

Drive Folder Manager connects your flow to your Google Drive to work with folders: create a new folder, look up the details of a folder or the list of your folders, share it with other people and delete it.

It is useful for keeping your Drive tidy automatically, for example with one folder per customer or project that is created and shared on its own. To work with the files inside, use Drive File Manager.

When to use it

  • Every time you sign up a customer, you want to create a Drive folder for them inside Customers.
  • When a project starts, you want to share its folder with the team that will work on it.
  • You need the ID of a folder to store the files the flow generates in it.
  • When a project ends, you want to delete its working folder.

Configuration

You need a Google Drive credential, which connects by signing in with your Google account. To create, share or delete folders, the credential needs the Create, Update, Delete, Read access. See Credentials.

FieldWhat it does
Credential (required)The Google Drive credential of the account you work with.
OperationWhat the component does. See Operations. Default: Create.
Mode of InputHow you point to the folder. By Selection shows a picker to choose it from your Drive; By Id asks for its ID; By Url asks for its link. In Get there are also All Folders in Drive (all your folders) and By Filename (search by name). Default: By Selection.
Select folder / Folder Id / Folder UrlThe folder, depending on Mode of Input. In Create it is the folder the new one is created in; if you leave it empty, it is created in the root of your Drive. In Get, Share and Delete, the folder you work with.
FilenameIn Create, the name of the new folder. Required. In Get with By Filename, the text searched for in folder names.

Operations

OperationWhat it does
CreateCreates a new folder, inside another folder or in the root of your Drive.
GetReturns the details of a folder, of the folders whose name contains a text, or of all your folders.
ShareGives a person, a group or anyone with the link access to the folder.
DeleteDeletes a folder permanently, together with its content and without going through the trash.

Advanced options

Only in Share:

FieldWhat it does
EmailThe email of the person or group you share with. Required unless Type is anyone.
RoleThe permission given: reader (view), commenter (view and comment) or writer (edit). Default: reader.
TypeWho gets access: user (one person), group (a Google group) or anyone (anyone with the link). Default: user.
Send NotificationSends a notification email to the person you share with. Default: off.

Output

The Data output returns the folders you worked with, with their ID (id), name and the folder they are in. With All Folders in Drive or By Filename you get one item per folder. In Share it adds the sharing link (share_url). Delete returns a confirmation.

You can use the ID in Drive File Manager to store files in the folder, or connect the result to an email component to send the link. The component can also be connected to an Agent as a tool, so the agent creates or shares folders when it needs to. See Tool Mode.

Example

An architecture studio wants a shared folder for every new project.

  1. The new project reaches the flow with its name and the customer’s email.
  2. Add Drive Folder Manager with the Create operation, choose the Projects folder in Select folder and put the project name in Filename.
  3. Add another Drive Folder Manager with the Share operation, Mode of Input on By Id and the id returned by the previous step in Folder Id.
  4. In the advanced options, put the customer’s email in Email, choose commenter in Role and turn on Send Notification.

Good practices

  • Delete also removes everything inside the folder and cannot be undone.
  • With By Url, paste the folder link as it appears in the browser when you open it in Drive.
  • Sharing with anyone makes the folder reachable by anyone who has the link. Use it only for public content.