Help Centre › Functions & Formulas
This article describes the RPA Google Drive functionality to get revisions.
For a full list of available functions, please read Google Drive functions.
Description
The Google Drive Get revisions function retrieves the version/revision history of a file, including revision IDs, modified times, and which user made each change.
Setting it up
To use the Google Drive Get revisions function, follow these instructions:
{{popups:rpas/add:action=google-workspace-drive-get-revisions}}
Once on a process map:
- Navigate to the process where you would like to add the Google Drive Get revisions 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 Get revisions option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| File ID | Yes | Text | - | The file ID to get revisions for |
| Variable | No | Text | - | State variable to store the list of revisions |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | List | List of revision objects with id, modifiedTime, and lastModifyingUser |
Errors
| Error | Description |
|---|---|
| File not found | The specified file ID does not exist |
Tips
- Use the revision ID with Restore revision to roll back to a previous version
- Google Workspace files may have many revisions