Note: Use and transfer of information received from Google APIs to any other app will adhere to Google API Services User Data Policy, including the Limited Use requirements.
Google Drive - Move a file
Use the Google Drive - Move a file action A tool for building the processes, logic, and direction within workflows. to move a file from one folder to another in Google Drive.
For more information about the Google Drive connector, see Google Drive.
Configure the Google Drive - Move a file action
-
Add the action to the workflow and open the action configuration panel. For more information, see Add, rename, and copy actions.
-
Select a Connection. If you do not have a connection, see Add a connection.
- Select the source Drive you want to move the file from.
- Select a source type. The option presented is dependent on the source type selected:
- The File path of the file you want to move. You can also browse the file structure using the browse icon ().
- The File ID of the file you want to move.
- Select the destination Drive you want to move the file to.
- Select a destination type. The option presented is dependent on the destination type selected:
- The Folder path to where you want to move the file. You can also browse the folder structure using the browse icon ().
- The Folder ID of the folder to where you want to move the file.
- Select whether or not to overwrite an existing file.
- Select or create a variable for the Result output.
Google Drive - Move a file action fields and settings
Section | Field | Description | Variable types |
---|---|---|---|
(unlabeled) | Connection Credentials and other settings required to pass data between the workflow and the indicated service, which could be a cloud service, business application, or content store. |
The Google Drive connection that contains the file which you want to move. To refresh the available connections, click . |
(n/a) |
Source | Drive | The drive where the file is stored. | Text |
Select a source type |
The source type which will be used to retrieve the file.
|
Boolean | |
File path | The path of the file you want to move. You can also browse the file structure using the browse icon (). | Text | |
File ID | The ID of the file you want to move.
The file ID can be retrieved by using the Google Drive - Get file metadata action's ID output . |
Text | |
Destination | Drive | The drive where you want the file to be stored. | Text |
Select a destination type |
The destination type which will be used to store the file.
|
Boolean | |
Folder path | The new path to where you want to move the file. You can also browse the folder structure using the browse icon (). | Text | |
Folder ID | The ID of the folder to where you want to move the file.
The folder ID can be retrieved by using the Google Drive - Get file metadata action's ID output . |
Text | |
Overwrite file? | Select whether to overwrite a file, if it has the same name as an existing file. | Boolean | |
Output |
Result |
Stores the result of the action in an object with the following variables:
|
Object |