--- title: "Pipeline - Filter on Alarm Associated Data" --- # Pipeline - Filter on Alarm Associated Data > >
:::note **This section assumes that alarms are configured.** To learn more, go to [Configuring Alarms](alarming\configuring-alarms\configuring-alarms.md), [Alarm Notification](alarming\alarm-notification\alarm-notification.md), and [On-call Rosters](alarming\alarm-notification\user-schedule-and-roster-management\on-call-rosters.md). ::: ## How to Filter on Alarm Associated Data Once associated data is added to an alarm, you can easily filter for associated data in an alarm pipeline. It’s possible to add associated data that can be either static or dynamic. Below is an example of how to filter a notification pipeline based on associated data added to an alarm. A WriteableFloat1 Tag is used for this example. Go to the **Tag Browser**, double click on **WriteableFloat1**, the Tag Editor will open, and click **Alarming**. You'll notice this example has three alarms setup. You can see the **High Alarm** configuration has **Associated Data** called '**Group**', and a value of either Group A or Group B. We are going to use this associated data to filter the alarm notification pipeline. ![Filter on Alarm Associated Data Tag Setup](filter-on-alarm-associated-data-tag-setup.png) Let's create a pipeline that filters on associated data. 1. There are two blocks that can be used for filtering, either the **Switch Block** or the **Expression Block**. The **Switch Block** allows you to switch on a value and do something different for Group A and Group B. The **Expression Block** does the same thing, but only returns values of ‘True’ or ‘False.’ For this example, drag in the **Switch Block** to your pipeline, and connect the **Start Block** to the **IN** of the Switch block. ![Filter on Alarm Associated Data Step 1](filter-on-alarm-associated-data-step-1.png) 2. In the **Pipeline Property Editor**, you have to manually enter the expression because you will not find any of the associated data properties in the dropdown list. Enter the name of the associated data property in curly braces as follows, `{Group}`. The '**Group**' associated data property acts as a placeholder for the real values. ![Filter on Alarm Associated Data Step 2](filter-on-alarm-associated-data-step-2.png) 3. Next, you need to add some values to the expression. You can add as many values that you have values for. Click on the **green plus icon** and add two values: ‘**Group A**’ and ‘**Group B**’. Once you enter both values, you will have outputs in the Switch block for **Group A**, **Group B**, and by default, **Catch-all**. Now you can notify a different list of people based on each Group. ![Filter on Alarm Associated Data Step 3](filter-on-alarm-associated-data-step-3.png) 4. Drag a **Notification Block** into your pipeline, and connect the output of **Group A** in the Switch block to the **IN** of the Notification block. In the **Pipeline Block Editor**, under the **Notification** tab, choose **Email** as your notification type. In the **Contacts** tab, under the **On-call Roster icon**, select the roster you want to notify (i.e. Operators). ![Filter on Alarm Associated Data Step 4](filter-on-alarm-associated-data-step-4.png) 5. Drag a second **Notification Block** to your pipeline, and connect **Group B** from the Switch block to the **IN** on the second Notification block. Choose **Email** as your notification type, and specify a different **On-call Roster** to notify a different group of people (i.e. Production Supervisors). ![Filter on Alarm Associated Data Step 5](filter-on-alarm-associated-data-step-5.png) Now, you are notifying people based on Group A (Operators) and Group B (Production Supervisors) by filtering on alarm associated data.