# Using rules

### Create a rule

Rules can fill fields, modify fields, split items, remove items and much more. See this page for example rules.

{% stepper %}
{% step %}

### Create a new rule

* Go to the **Rules** step of your channel.
* In the **Rules** tab, click **+ Create rule**.
* Fill in a **Rule name** and **Description**. You can also [create a label](#add-and-create-a-label) for your new rule.
* Click **Create**.

{% hint style="info" %}
Tip: Check out our [rule templates](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/using-rules/rule-templates).
{% endhint %}

![add-new-rules.png](https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/YIfpXXk2uw6Pj4I7vGys/25440412301202)
{% endstep %}
{% endstepper %}

***

### Order of rules

**Note:** Channable applies your rules starting from top to bottom, one after the other. You can [check your rules](#check-the-effects-of-a-rule) to see how they affect your data.

Make sure you arrange the order of your rules carefully. If you exclude items in your first rule, the rules that come after that one will not affect those excluded items.

{% stepper %}
{% step %}

### Change the order of rules

* Hover over the (hamburger icon) of the rule that you want to move.
* Click and drag the rule to its new location.
* Release your mouse to place the rule.
  {% endstep %}
  {% endstepper %}

***

### Check the effects of a rule

Once you have created a rule and saved it, you can check which items are affected by your rule to make sure that you set up your rule accurately.

#### Use a rule to check items

In addition to optimizing your data, you can use rules to check your items for missing data.

* IF the title field is empty (condition)
* THEN take all fields and do nothing (action)

***

### Excluding items with a rule

You can filter or exclude items for various reasons. One example being items out of stock. First you have to create a rule and you have to make sure the items you want the rule to be effective for meet the 'if' criteria.

If you want to exclude items: 'Then' take 'all fields' and 'exclude'. In the example below all items with 'Red' in the field 'color' will be excluded.

<figure><img src="https://helpcenter.channable.com/hc/article_attachments/360007515260/EN_-_Filter_Color.png" alt=""><figcaption></figcaption></figure>

### Checking affected items in the Rules step

In the **Rules** step, you might change your item's titles, exclude items or set the category of your items.&#x20;

In the top bar above your rule, you can see how many items are affected by your rule. For an overview of the items, click **View** **items**.

<figure><img src="https://helpcenter.channable.com/hc/article_attachments/25568033680274" alt=""><figcaption></figcaption></figure>

#### Check your items before and after you save your rule <a href="#id-01jq6642wnfsdj48sq3nt13n2n" id="id-01jq6642wnfsdj48sq3nt13n2n"></a>

In the bar below your rules, you have an overview of the number of items that were in your export *before* and *after* you created the rule.

To view the state of your items before this rule is applied, at 'Before this rule', click **View items.** To view how your items are affected by all previous rules and this rule, at 'After this rule', click **View items**.&#x20;

#### Check your items with a rule <a href="#h_01jq667ypgz521hk7mhfb754s3" id="h_01jq667ypgz521hk7mhfb754s3"></a>

If you want to check if you have items with no image link for example, you can create a “check-rule”. This rule does not make any changes to your items:&#x20;

* IF image\_link is empty ([condition](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-conditions-if-in-rules))
* THEN take all fields and do nothing ([action](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules))

<figure><img src="https://helpcenter.channable.com/hc/article_attachments/25568005354002" alt=""><figcaption></figcaption></figure>

The top bar above the rule indicates the number of items that are selected (2 out the 123 items). This means that two items are missing data for the field 'image\_link'.

The bar below the rule indicates the number of items affected by this rule, which stays the same because the action type is **do nothing**.&#x20;

### Use different fields in rules

#### Internal fields

These are fields with information created in Channable. You can find fields like the “category” internal field, that contains all the categories assigned in the Categories step, or also other fields like the “cpc”.

![Internal\_Project\_Fields.gif](https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/GfEyVCYtiKf8q8J6XOYc/28873418854162)

#### Analytics fields

These are all the fields imported from your Google Analytics connection.

![Analytics\_Fields.gif](https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/3s7NEBaH5cXfaMWtk2WR/28873370223506)

#### Channable Insights fields

These are all the fields imported from your Channable Insights connection.

![NL\_-\_Insights.gif](https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/3CNKK7om0hweVHWGhCba/28873370223762)

#### Static values

For some fields in an export channel, the default option is to choose from a set of static values. This type of field is a value that you can select for all your products. You can find it for example in the *Build* step of eBay, when selecting the payment, shipping and return profiles, or also in the *Build* step of Bol.com.

![Field\_StaticValue.gif](https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/yKa5zMeUS8p96OkT7bBQ/28873370226194)

{% hint style="info" %}
Tip: In most cases, you can also select a project field instead of a static value. This way you can set it up dynamically between products. Make sure you fill the field you select with accepted values.
{% endhint %}

***

### Copy a rule

You can copy existing rules from your other channels and projects.

{% stepper %}
{% step %}

### Copy rule(s) into the current channel

* Click **+ Create rule**.
* In the pop up, click **Copy rule(s)**.
* At the field **From project**, select the project that contains the rules that you want to copy.
* Click **Copy here** to copy the rule(s).
  {% endstep %}
  {% endstepper %}

***

### Add a label to a rule

You can add labels to your rules to help you organize them. You can also customize the color of the label. You can use these labels in any of your projects in your Channable account.

{% stepper %}
{% step %}

### Add and create a label

* Go to the **Rules** step of your channel.
* Locate the rule(s) that you want to add a label to.
* Select the rule(s) that you want to label using the checkboxes.
* Click **Rule labels**.
* In the pop up, click on **New label**.
  * Fill in your label name in the field **Name**.
  * Select a color for your label at **Color**.
* Click **Create** to create your label.

{% hint style="warning" %}
Caution: If you delete a label, it will be removed from all rules in all projects in your Channable account.
{% endhint %}
{% endstep %}
{% endstepper %}

***

### Pause a rule

Since you may not want a rule to apply to your items at a specific time, you can pause a rule instead of deleting it.

{% stepper %}
{% step %}

### Pause and unpause rules

* Go to the **Rules** step of your channel.
* Locate the rule that you want to pause and click on it. Click ⏸ **Pause rule**.
* To pause multiple rules, select the rules that you want to pause using the checkboxes. Click ⏸ **Pause selected rules**.
* To use the rule again, click **▷ Unpause rule**.
  {% endstep %}
  {% endstepper %}

***

### Delete a rule

To remove a rule permanently, follow these steps.

{% stepper %}
{% step %}

### Delete a single rule

* Go to the **Rules** step.
* Locate and click on the rule that you want to delete.
* Click on the **Options** dropdown and select the option **Delete rule**.
* In the pop up, click **Delete** to confirm and delete the rule.
  {% endstep %}

{% step %}

### Delete multiple rules

* Select the rules that you want to delete using the checkboxes.
* Click 🗑 **Delete selected rules**.
  {% endstep %}
  {% endstepper %}

{% hint style="warning" %}
Caution: Deleting a rule cannot be undone. If you might need a rule later, pause it instead.
{% endhint %}

{% hint style="info" %}
Tip: In the **Rules** step, to select multiple rules using the checkboxes, press the Shift key + click on the last checkbox that you want to be selected.
{% endhint %}

***

![rules-overview.png](https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/BGDVbaFVh9wemE5dEo9G/25440412298770)
