Help Centre › Functions & Formulas
This article describes the RPA Google Drive functionality to share a file.
For a full list of available functions, please read Google Drive functions.
Description
The Google Drive Share file function shares a file with a user, group, domain, or makes it public (anyone). You can specify the permission role and whether to send an email notification.
Setting it up
To use the Google Drive Share file function, follow these instructions:
{{popups:rpas/add:action=google-workspace-drive-share}}
Once on a process map:
- Navigate to the process where you would like to add the Google Drive Share 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 Share file option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| File ID | Yes | Text | - | The file ID to share |
| Share type | No | Select | User | Type: User, Group, Domain, or Anyone |
| E-mail / domain | Conditional | Text | - | Email address (for user/group) or domain name. Not required when type is "anyone" |
| Role | No | Select | Reader | Permission role: Reader, Writer, Commenter, or Organizer |
| Send notification | No | Switch | Off | Send email notification to the recipient |
Output variables
This action does not produce output variables.
Errors
| Error | Description |
|---|---|
| File not found | The specified file ID does not exist |
| Invalid email | The email address is not valid |
| Permission denied | Insufficient permissions to share the file |
Tips
- Use type "anyone" to make a file publicly accessible
- The "organizer" role is only available for shared drives
- Use Get share link to get the URL after sharing