Copy or move a Drive file
The "Copy or move a Drive file" robot moves a Drive file into the given folder or creates its copy there in Bitrix24 (Alaio) business processes and robots. It takes the file ID, the target folder ID, and the mode. It returns the file ID — the new one on copy, the original on move — and a Success Y/N flag.
The robot sorts files across Drive folders from a process: copy mode creates a copy of the file in the target folder, move mode relocates the file itself. Moving works within one storage. The input is the file ID (for example, from another robot output), the target folder ID, and the mode. Typical use cases: put a signed contract into the client archive folder; copy an act template into the deal folder for filling in; gather documents into the month folder before an export. If the file or the folder is not found, Success = N is returned. It returns the file ID and the Y/N flag — use the ID in the next steps of the business process, for a public link for instance.
What input parameters does the robot accept?
| Parameter | Type | Required? | Default |
|---|---|---|---|
| Drive file ID | int | yes | |
| Target folder ID | int | yes | |
| Mode: copy — copy, move — move (default copy) | string | — |
What does the robot return?
| Parameter | Type |
|---|---|
| File ID (new on copy, original on move) | int |
| Success (Y/N) | string |
Scenario: a contract into the client archive
- A deal enters the Closed stage
- The robot moves the contract file into the client Archive folder
- When Success = Y the process marks the deal as archived