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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admGetFilterById(filterId) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Retrieves the filter by its id.

Retrieves the filter by its id.

## Parameters

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

## Return Type

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

Returns the filter identified by its id.

## Example

```
number filterId = 10000;
JFilter filter = admGetFilterById(filterId);
runnerLog("The filter retrieved is: " + filter);
```

## See also

> Macro (contentbylabel)