---
title: "admGetFiltersByName"
canonical: "https://support.appfire.com/space/PSJ/15489852/admGetFiltersByName"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admGetFiltersByName(filterName) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Retrieves all the filters identified by the specified name.

Retrieves all the filters identified by the specified name. Filters are not restricted to have unique names so you can have one ore more filters returned.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| filterName | String | Yes | The name of the filter. |

## Return Type

**[JFilter []](https://appfire.atlassian.net/wiki/spaces/PSJ/pages/15487117)**

Returns a list of filters identified by name.

## Example

```
string filterName = "Test";
JFilter []filters = admGetFilterByName(filterName); //is isgnore case
for(JFilter f in filters) {
    runnerLog("Returned filter" + f);
}
```

## See also

> Macro (contentbylabel)