Roboteka
Roboteka · Robots · Get employee department

Get employee department

The Get Employee Department robot returns the department of a Bitrix24 (Alaio) employee by their ID. It outputs the ID and name of the first department, the list of IDs of all the employee's departments and a found flag (Y/N). It is used for routing tasks and approvals by division in business processes.

The robot determines which department a Bitrix24 (Alaio) employee belongs to and is used in business processes and robots. It takes the employee ID as input; the robot reads their divisions from the UF_DEPARTMENT field and returns the ID of the first department, its name, an array of IDs of all departments if the employee belongs to several at once, and a found flag (Y/N). Use the robot to route tasks and approvals by division: assign a responsible user from the right department, send a request to the head of the author's division, or insert the department name into a document or notification. It returns the department ID, name and the list of all departments — use the found flag in the condition of the next step to separately handle an employee with no department.

What input parameters does the robot accept?

Parameter Type Required? Default
Employee ID int yes

What does the robot return?

Parameter Type
Department ID int
Department name string
All employee departments (IDs) int
Found (Y/N) string

Scenario: route a request by the author\'s department

  1. An employee starts a request business process
  2. The robot gets the author\'s department by their ID
  3. When found = Y the process sends the request to the head of that department, on N to a common pool

Related robots

Related articles