# How to set up business rule to trigger on business units

When designing a business rule, you can set a condition for the trigger. In this scenario, the condition will be business units. This condition checks to see if the entity that triggered has any relation to or is owned by a business unit.

In this quick guide we will create a business rule that will check if the entity has any relation to the 'Asia' business unit.

{% hint style="info" %}
Don't have any business units set up yet? Learn [how to do that in this guide](https://docs.struct.com/struct.pim-4/reference/settings/data-governance/business-units).
{% endhint %}

### Setting the condition

First, create a business rule and add a trigger that you would like to use. In this scenario we will be using the 'Product value has changed'-trigger.

When you have selected a trigger, click the 'Add condition'-button.

<figure><img src="https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FVHnHKRwa8TzaBq1j1H8k%2Fimage.png?alt=media&#x26;token=11bbcf17-da3a-40cd-a19e-062fd547e127" alt="The business rule editor window"><figcaption><p>Inside the business rule creator window</p></figcaption></figure>

Inside the context window, you will be presented with all the available conditions for that specific trigger.&#x20;

Click 'Business units'.

<figure><img src="https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FGUJGY0phXbMt9ZF5Hbpe%2Fimage.png?alt=media&#x26;token=af3c7fca-2185-4b87-8fc7-6dc1e01eadf3" alt="The business rule condition context window"><figcaption><p>The list of all available condition for our trigger</p></figcaption></figure>

As mentioned in the beginning, we want to check if the product has any relation to the 'Asia'-business unit.

So, we click the 'Add business unit', select 'Asia' and set the relation type to 'Has any relation'.

<figure><img src="https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FUKthWN3L3AzVblFOpRYm%2Fimage.png?alt=media&#x26;token=e38a9740-da13-4d5d-ae61-24c53046e0fc" alt="Setting the condition to a specific business unit"><figcaption><p>Setting the business unit condition</p></figcaption></figure>

Click 'Confirm'.

You can add any action you want to inside the condition block. We want to create a task whenver this condition is met, so we can check up on the change made.

<figure><img src="https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FK2Xb7vZ0rqNtLn9iZDPI%2Fimage.png?alt=media&#x26;token=f8abef42-51ac-4927-bc12-1d92e03ea6cc" alt="The final preview page of the business rule"><figcaption><p>The final stage of the business rule we've created</p></figcaption></figure>

Now, whenever this business rule triggers, it will check the condition which checks if the entity has any relation to the specified business unit(s). If so, it will create a new task, and assign the colleagues from Asia to it so that they can check up on the change.
