---
title: Adding an Enable/Disable Task
slug: zen-master/adding-an-enabledisable-task
docTags: 
createdAt: 2024-12-27T20:06:10.461Z
---

You can add a task to enable or disable one or more specific object instances or all objects of a particular type that are associated with the specified Tags.

**To create a new Enable/Disable task:**

:::::WorkflowBlock
:::WorkflowBlockItem
In the main navigation, click **Automation**.
The Automation screen opens.
:::

:::WorkflowBlockItem
Select the Task Set for which you would like to add a task.
Details of the selected Task Set are shown at the right side of the screen.
:::

:::WorkflowBlockItem
Click on the **Tasks** tab.
:::

:::WorkflowBlockItem
Click **+ Add Task**.
The **Create New Task** window is displayed.

::Image[]{src="https://api.archbee.com/api/optimize/mzxtTQEvCNIdUNgF2kuwJ/92ZjKDlqDd4j99gJ3dqXJ_image.png" size="80" width="876" height="1106" position="center" alt="Create New Task window" showCaption="false"}
:::

:::WorkflowBlockItem
In the **Info** section, in the **Name** field, enter a name for this task.
:::

:::WorkflowBlockItem
In the **Configuration** section, in the **# of Minutes…** field, specify the number of minutes to delay starting this task from the beginning of the execution of the Task Set. The default value is "0" meaning that the task begins immediately when the Task Set is run.
:::

:::WorkflowBlockItem
In the **Task Type** field, select from the dropdown list *Enable/Disable*.
:::

:::WorkflowBlockItem
Select the action that you would like to take. Options are: *Enable* or *Disable*.
:::

:::WorkflowBlockItem
Under **Enable By (or Disable By)**, select the way that you would like to define what objects the task applies to. *One or more objects* enables you to specify the particular object instances to include in the Task. *Objects based on type and tags* enables you to specify the type of objects and associated Tags to include in the task.
:::

::::WorkflowBlockItem
Specify the objects as follows:

- If you selected **One or more objects** –
  1. Click on the field of an object type that you would like to include.
     A dropdown list of relevant object instances is displayed.
  2. Click on the desired object instance.
  3. If you would like to add additional instances of the same object type, click on the object type field again and select additional instances.
  4. If you would like to add instances of different object types, click on the field for each additional object type and select the relevant instances for each type.
- If you selected **Objects based on type and tags** –
  1. Select the checkbox next to each of the object types that you would like to include.
  2. In the Tags field, select from the dropdown list one or more Tags.

:::hint{type="info"}
* When *Objects based on type and tags* is selected, only objects instances which are of the specified type **and** are associated with the specified Tag are included in the task. **Therefore, at least one object type and one Tag must be selected.**
* When *Objects based on type and tags&#x20;*&#x69;s selected, the determination of which object instances are included in the task is made at the time of each execution of the task. So, for example, if the specified Tag was assigned to 5 Sources at the time of the initial run and was then assigned to two additional Sources prior to the second run, then the second run of the task will apply to all 7 Sources.
:::
::::

:::WorkflowBlockItem
Click **Save**.
The task is added to the specified Task Set.
:::
:::::

