Help Centre › Functions & Formulas
This article describes the RPA Google Drive functionality to create a folder.
For a full list of available functions, please read Google Drive functions.
Description
The Google Drive Create folder function creates a new folder in Google Drive, optionally within a specified parent folder.
Setting it up
To use the Google Drive Create folder function, follow these instructions:
{{popups:rpas/add:action=google-workspace-drive-create-folder}}
Once on a process map:
- Navigate to the process where you would like to add the Google Drive Create folder function
- Click on the green button's drop-down (right side of the green button labelled "Process")
- On the menu that appears, click on the "+ Activity" item
- From here you can select the Google Drive Create folder option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Folder name | Yes | Text | - | Name of the folder to create |
| Parent folder ID | No | Text | Root | Parent folder ID (defaults to root) |
| Variable | No | Text | - | State variable to store the new folder ID |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Text | The ID of the newly created folder |
Errors
| Error | Description |
|---|---|
| Permission denied | Insufficient permissions to create a folder |
| Parent not found | The parent folder ID does not exist |
Tips
- Google Drive allows multiple folders with the same name
- Use the returned folder ID to upload files into the new folder