Rename a file in the drive
Rename a file in the drive
Renames an existing file in Google Drive.
Options
Google Drive account
Select the Connection action set up in the flow.
Drive (optional)
Enter the name of the drive to reach. Leave it empty to use "My Drive".
Current file path
Enter the full path of the file to rename, including its name and extension, for example /Documentos/relatorio_antigo.pdf.
New name
Enter the new name for the file, including the extension, for example relatorio_2026.pdf.
Returns
Javascript code
js
actions["action-id"].name // new file name after the rename (Text)
Field selection
- name — new file name after the rename (Text)
Rules and Conditions
- Every field except Drive is required.
- The given file must exist in Google Drive.
- The new name must include the file extension.