Skip to main content
Files

Move a file in Google Drive

Move a file in Google Drive

Moves a file to a new destination, which can be on a different drive.


Options

Google Drive account

Select the Connection action set up in the flow.

Source drive (optional)

Enter the name of the drive the file is currently on. Leave it empty to use "My Drive".

Destination drive (optional)

Enter the name of the drive the file will be moved to. Leave it empty to use the same source drive.

Current file path

Enter the full path of the file to move, including its name and extension, for example /Documentos/relatorio.pdf.

New destination path

Enter the path of the destination folder, for example /Arquivo/2026.

Create intermediate folders

When enabled, it automatically creates the folders of the destination path that do not exist yet. Default: disabled.

Returns

Javascript code

js
actions["action-id"].newParentId // identifier of the new parent folder (Text)

Field selection

  • newParentId — unique identifier of the destination parent folder (Text)

Rules and Conditions

  • The Google Drive account, Current file path and New destination path fields are required.
  • This action supports moving files between different drives.
  • If Create intermediate folders is disabled and the destination does not exist, the robot stops with an error.