Help Centre › Functions & Formulas
This article describes the RPA Google Drive functionality to get file info.
For a full list of available functions, please read Google Drive functions.
Description
The Google Drive File info function retrieves metadata for a file including name, size, MIME type, created/modified dates, parent folders, sharing status, and starred state.
Setting it up
To use the Google Drive File info function, follow these instructions:
{{popups:rpas/add:action=google-workspace-drive-file-info}}
Once on a process map:
- Navigate to the process where you would like to add the Google Drive File info 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 File info option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| File ID | Yes | Text | - | The file ID to get metadata for |
| Variable | No | Text | - | State variable to store the metadata dictionary |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Dictionary | File metadata including name, size, mimeType, createdTime, modifiedTime, parents, shared, starred |
Errors
| Error | Description |
|---|---|
| File not found | The specified file ID does not exist |
Tips
- Access individual metadata fields using dictionary notation, e.g. {variable::name}
- The size field is in bytes for non-Workspace files; Workspace files have no size