Move File/Folder

📖 Definition

The Move File/Folder action in the Google Workspace category enables you to move a specified file or folder from its current location to a new destination within Google Drive.
It allows seamless organization and restructuring of your Drive content by simply specifying the item's ID and the target folder's ID. 🔑 Key capabilities include:

  • Moving individual files or entire folders.
  • Retaining original file details such as ownership, permissions, and metadata.
  • Supporting movement within My Drive or Shared Drives (with correct permissions).

This action is ideal for automating document management processes and ensuring files are systematically stored without manual effort!


🎯 Example Use Cases

1. Organizing Project Documents

Automatically move completed project files from a "Working" folder to an "Archive" folder to maintain an organized drive structure.

2. Client Onboarding

When onboarding a new client, instantly move template folders into the client’s dedicated drive space to streamline the setup process.

3. Content Publishing Workflow

Move blog post drafts from a "Drafts" folder to a "Published" folder once they are approved, ensuring clear content tracking.

4. Employee Offboarding

During employee offboarding, move their personal drive files to a secure "Former Employees" folder for administrative access and compliance.

5. Automated Backup Organization

Move daily or weekly generated backup files into a specific "Backup Archive" folder for better historical tracking and storage management.


📥 Inputs

Connection

This field is used to establish a secure link to your Google Workspace.
➡️ You need to upload a credential JSON file for a service account with domain-wide delegation. 👉 Follow this guide to create the connection.

User Email

Enter the primary email address of the user whose Google Drive contains the file or folder you want to move.

File or Folder ID

Provide the unique identifier of the file or folder that you want to move.
🎯 This ID ensures the system knows exactly which item to relocate.

Destination Folder ID

Enter the unique identifier of the destination folder where the file or folder should be moved.
🧭 Think of it as setting the new "home" for your file or folder.

Item Name

Specify the name or title of the file or folder you are moving.
📌 This helps ensure easy identification, especially when there are multiple moves happening simultaneously.


📤 Outputs

Id

The unique identifier of the moved file or folder.
🔍 Useful for tracking or referencing the item later.

Drive Id

The ID of the shared drive where the file or folder now resides (only shown if the item is within a shared drive).

Description

A short description of the file or folder, providing quick insight into its contents.

Name

The name (title) of the file or folder after the move.

Mime Type

Indicates the MIME type of the file (e.g., application/pdf, image/jpeg, application/vnd.google-apps.folder).

Version

The current version number of the file, helpful to track if any updates were made during the move.

View Link

A direct URL to view or open the file in Google Drive’s web interface.

Original Filename

The original file name at upload, if available (especially for binary files).
📎 If not available, defaults to the value in the "Name" field.

File Extension

The file extension (e.g., .pdf, .docx), extracted from the name.
📚 May include multiple extensions like .tar.gz.

Download Link

A direct link to download the file’s content easily through a browser.

Size

The file size in bytes, giving you an idea of how large the file is.

Trashed

Indicates whether the file or folder is currently in the trash (either explicitly or inherited from a trashed parent folder).

Modified Time

The last modification timestamp showing when the file or folder was last updated.

Created Time

The creation timestamp of the file or folder.

Owners

Details about the owner(s) of the file or folder:

  • Display Name: User’s full name.
  • Email Address: User’s email.

Permissions

Detailed list of all permissions associated with the file or folder:

  • Id: Permission ID.
  • Display Name: Name tied to the permission (e.g., user name or group name).
  • Type: Type of permission (user, group, domain, anyone).
  • Email Address: Linked user or group's email.
  • Role: Access level (e.g., reader, writer, owner).
  • Domain: Domain associated with the permission (e.g., your-company.com).
  • Deleted: Whether the linked account has been deleted.
  • Pending Owner: If ownership transfer is pending.
  • Allow File Discovery: Indicates if the file can be found via search (only for domain or public permissions).

Parents

The IDs of parent folders containing the moved file or folder.

Shared

Shows whether the file or folder has been shared with others.
Note: This value isn’t shown for items in shared drives.


💡 Example

Imagine you have an "Incoming Documents" folder where all your team’s uploaded files land by default.
You want to automatically organize these files based on their type or project into the correct folders in Google Drive.

Using the "Move File/Folder" action, you can:

  1. Trigger the flow whenever a new file is uploaded to "Incoming Documents."
  2. Use the "Move File/Folder" action to move the file to a specific project folder — for example, move all PDF contracts to the "Legal Documents" folder.
  3. Fill in the inputs:
    • Provide the file ID (from the uploaded file),
    • Specify the destination folder ID (for "Legal Documents"),
    • Optionally update the item’s name if needed.

✅ Once the flow runs, the file is moved seamlessly to its new location without manual effort!