Roboteka
Roboteka · Robots · Copy or move a Drive folder

Copy or move a Drive folder

The "Copy or move a Drive folder" robot relocates a Drive folder with all its contents into the target folder or creates its copy there in Bitrix24 (Alaio) business processes and robots. It takes the source folder ID, the target ID, and the mode. It returns the folder ID — the new one on copy, the original on move — and a Success Y/N flag.

The robot manages whole Drive folders from a process: copy mode creates a copy of the folder with all nested files and subfolders, move mode relocates it. Moving works within one storage. The input is the source folder ID, the target folder ID, and the mode. Typical use cases: roll out a template document structure for a new deal by copying a sample folder; move a finished project folder into the archive; gather the reporting period folders in one place. If the folder is not found, Success = N is returned. It returns the folder ID and the Y/N flag — use the ID in the next steps of the business process.

What input parameters does the robot accept?

Parameter Type Required? Default
Source folder ID int yes
Target folder ID int yes
Mode: copy — copy, move — move (default copy) string

What does the robot return?

Parameter Type
Folder ID (new on copy, original on move) int
Success (Y/N) string

Scenario: a template structure for a new deal

  1. A deal enters the In progress stage
  2. The robot copies the sample folder with Contracts / Invoices / Acts subfolders into the deal folder
  3. The new folder ID goes to the next robots — documents get sorted into the structure

Related robots