# Filter Collection

> `UiPath.Activities.System.Collections.FilterCollection`

`UiPath.Activities.System.Collections.FilterCollection`

## Description

Filters a collection based on the specified conditions.

## Project compatibility

**Windows | Cross-platform**

## Configuration

* **Collection** - The collection to be filtered.
* **Filter** - The criteria used to filter the collection. Click the field to open the **Filter builder** and add additional filters.
* **FilterAction** - Specifies what action to be taken for items that match the filter criteria. The available options are `Keep matching items` and `Remove matching items`.
  :::note
  Changing the data type of the collection after selecting it in the **Collection** field triggers a validation error. The collection with the new data type must be added again to the activity.
  :::

#### **Additional options**

**Output**
* **Result** - Reference to the resulting collection for use in other activities.
