Roboteka
Roboteka · Robots · Delete task by ID

Delete task by ID

The "Delete task by ID" robot deletes a Bitrix24 (Alaio) task from a business process or robot. It takes the task ID and returns a Success Y/N flag. The deleted task goes to the recycle bin, where it can be restored.

Standard automation actions can create tasks but do not delete them, and doing it by an arbitrary ID is not available at all. This robot fills the gap: the input is the task ID, and the robot deletes the task with the rights of the user who started the process. The task goes to the recycle bin, where it can be restored. Typical use cases: remove a "contact the client" task when a deal is lost; delete a duplicate found by the "Find task by condition" robot; clean up stage tasks when a deal is moved back to an earlier stage. If the task is not found or the user has no right to delete it, Success = N is returned. Use the Y/N flag in the condition of the next step of the business process.

What input parameters does the robot accept?

Parameter Type Required? Default
Task ID int yes

What does the robot return?

Parameter Type
Success (Y/N) string

What errors can the robot return?

The robot writes these messages to the business process log when it cannot complete a step. The text tells you what to fix in the settings or the data.

  • Error: task ID is not set
  • Error deleting the task

Scenario: deleting a task when a deal is lost

  1. A deal enters the Lost stage
  2. The "Find task by condition" robot finds the open task of the deal
  3. The "Delete task by ID" robot deletes it; when Success = Y the process adds a comment to the deal

Related robots