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.
| Field | What it does |
|---|---|
| Credential (required) | The Google Drive credential of the account you work with. |
| Operation | What the component does. See Operations. Default: Create. |
| Mode of Input | How 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 Url | The 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. |
| Filename | In Create, the name of the new folder. Required. In Get with By Filename, the text searched for in folder names. |
Operations
| Operation | What it does |
|---|---|
Create | Creates a new folder, inside another folder or in the root of your Drive. |
Get | Returns the details of a folder, of the folders whose name contains a text, or of all your folders. |
Share | Gives a person, a group or anyone with the link access to the folder. |
Delete | Deletes a folder permanently, together with its content and without going through the trash. |
Advanced options
Only in Share:
| Field | What it does |
|---|---|
The email of the person or group you share with. Required unless Type is anyone. | |
| Role | The permission given: reader (view), commenter (view and comment) or writer (edit). Default: reader. |
| Type | Who gets access: user (one person), group (a Google group) or anyone (anyone with the link). Default: user. |
| Send Notification | Sends 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.
- The new project reaches the flow with its name and the customer’s email.
- Add Drive Folder Manager with the
Createoperation, choose theProjectsfolder in Select folder and put the project name in Filename. - Add another Drive Folder Manager with the
Shareoperation, Mode of Input onBy Idand theidreturned by the previous step in Folder Id. - In the advanced options, put the customer’s email in Email, choose
commenterin Role and turn on Send Notification.
Good practices
Deletealso 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
anyonemakes the folder reachable by anyone who has the link. Use it only for public content.
Related components
- Drive File Manager: upload, read, move and share files.
- Google Drive Webhook: start a flow when a file in a folder changes.
- Drive Search: search for files in Drive.