Help Centre › Functions & Formulas
This article describes the RPA Google Drive functionality to restore a file from trash.
For a full list of available functions, please read Google Drive functions.
Description
The Google Drive Restore from trash function restores a previously trashed file, returning it to its original location.
Setting it up
To use the Google Drive Restore from trash function, follow these instructions:
{{popups:rpas/add:action=google-workspace-drive-restore}}
Once on a process map:
- Navigate to the process where you would like to add the Google Drive Restore from trash 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 Restore from trash option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| File ID | Yes | Text | - | The trashed file ID to restore |
Output variables
This action does not produce output variables.
Errors
| Error | Description |
|---|---|
| File not found | The specified file ID does not exist or is not in trash |
Tips
- The file is restored to its original location
- Only works for files that have been trashed, not permanently deleted