Move Files/Folders
Definition
The Move Files/Folders action allows you to relocate multiple files or folders within Google Drive efficiently. By specifying the file or folder IDs and the destination folder, this action streamlines the organization of your Google Drive storage. It supports dynamic selection of items from previous steps or manual selection using the Google Drive integration, ensuring a seamless experience.
Example Use Cases
1. Organizing Project Files
Automatically move completed project files from a "Work in Progress" folder to an "Archived Projects" folder to maintain a clean and organized workspace.
2. Automated File Categorization
Sort files based on their type or purpose by moving them to designated folders, such as "Invoices," "Reports," or "Presentations," after processing.
3. Collaborative Folder Updates
Move files or folders to shared team directories to ensure all team members have access to the latest documents and resources.
4. Workflow Automation
As part of a workflow, relocate files to a new folder when specific conditions are met, such as after approval or processing completion.
5. Temporary Storage Cleanup
Automatically clear out temporary storage folders by moving files to their respective permanent locations.
Inputs Section
1. Connection
This field establishes the connection to your Google Drive account.
Details: You need to authenticate your Google account to enable the action to access and move files or folders within your Google Drive.
2. File or Folder Ids
Specifies the files or folders you want to move.
Details:
- You can provide a collection of file or folder IDs or a comma-separated list of IDs.
- Use the Google Drive integration button to browse and select the items directly.
These IDs uniquely identify the files or folders in your Google Drive.
3. Destination Folder Id
Identifies the folder where the selected files or folders will be moved.
Details:
- Enter the unique ID of the destination folder.
- Use the Google Drive integration button to select the folder interactively.
- The folder ID can also be dynamically passed from previous steps in the workflow.
Outputs
The "Move Files/Folders" action provides the following outputs:
1. Number of Moved Items
This output returns the total number of files or folders that were successfully moved during the operation.
Usage: You can use this to confirm how many items were processed and moved in the flow. It helps in tracking and validation purposes.
2. Moved Items Collection
This output returns a collection of the moved files or folders, providing detailed metadata for each item. The metadata includes:
- Id: Unique identifier for the file or folder.
- Description: A brief description of the file or folder.
- Name: The name of the file or folder.
- MIME Type: The file type (e.g., application/pdf, image/jpeg).
- Version: The version of the file or folder.
- View Link: A link to view the file or folder in Google Drive.
- Original Filename: The original filename before the move.
- File Extension: The file extension (e.g., .pdf, .docx).
- Download Link: A link to download the file.
- Size: The size of the file in bytes.
- Trashed: Indicates if the file or folder has been trashed.
- Modified Time: The last modified timestamp of the file or folder.
- Created Time: The creation timestamp of the file or folder.
- Owners: The owners of the file or folder, including their display names and email addresses.
- Parents: The parent folder(s) of the file or folder.
- Shared: Indicates whether the file or folder is shared with others.
- Usage: This collection provides comprehensive details about the moved items, which can be used for logging, tracking, or further processing in your flow.
These outputs help you confirm the success of the operation and provide detailed information for logging or further use in your flow.
Example Situation for Using the "Move Files/Folders" Action
Imagine you are working in a document management system where files are uploaded to a temporary folder for review. Once the files are approved, you need to move them to a designated "Approved" folder for final storage.
Scenario:
- Files are uploaded to a "Review" folder in Google Drive.
- After review, the files are marked as approved in the system.
- You then use the "Move Files/Folders" action to move the approved files from the "Review" folder to the "Approved" folder.
Steps:
- Input: The file IDs of the approved documents and the destination folder ID for "Approved".
- Output: You receive the number of moved files and their metadata (name, size, link, etc.) to confirm that the files were successfully relocated.
This action streamlines file organization, ensuring that approved documents are moved to the appropriate folder automatically without manual intervention.
Updated 10 days ago