---
title: "admGetFilterById"
canonical: "https://support.appfire.com/space/PSJC/720473851/admGetFilterById"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Filter by id.

Gets the filter specified by that id.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admGetFilterById(filterId) | **Package** | adm |
| **Alias** |  | **Pkg Usage** | [use adm; filterById(filterId);] |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| filterId | int | Yes | The filter id |

## Return Type

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

## Example

```javascript
JFilter filter = admGetFilterById(10037);
```

Gets the filter for id 10037

## See also

> Macro (contentbylabel)