Here's a general approach to solving your problem:
Use REST API methods to get a list of all employees in a department.
Determine the head of the department and get his ID for the RESPONSIBLE_ID field.
Get the IDs of all the manager's subordinates to fill in the ACCOMPLICES field.
You can use Bitrix24 webhooks to automate this process.
Use REST API methods to get a list of all employees in a department.
Determine the head of the department and get his ID for the RESPONSIBLE_ID field.
Get the IDs of all the manager's subordinates to fill in the ACCOMPLICES field.
You can use Bitrix24 webhooks to automate this process.