Help Centre › Functions & Formulas
This article describes the RPA Google Drive functionality to upload a file.
For a full list of available functions, please read Google Drive functions.
Description
The Google Drive Upload file function uploads a local file to Google Drive, optionally with a custom name and into a specific folder.
Setting it up
To use the Google Drive Upload file function, follow these instructions:
{{popups:rpas/add:action=google-workspace-drive-upload}}
Once on a process map:
- Navigate to the process where you would like to add the Google Drive Upload file 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 Upload file option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Local file path | Yes | Text | - | Local file path to upload |
| File name in Drive | No | Text | Local filename | Name for the file in Drive |
| Destination folder ID | No | Text | Root | Destination folder ID |
| Variable | No | Text | - | State variable to store the new file ID |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Text | The ID of the uploaded file |
Errors
| Error | Description |
|---|---|
| File not found | The local file path does not exist |
| Permission denied | Insufficient permissions to upload |
| Storage full | Google Drive storage quota exceeded |
Tips
- Use variables like {folder::desktop::path}\filename.ext for the local path
- The returned file ID can be used with other Google Drive functions
- Google Drive allows multiple files with the same name in the same folder