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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getPriorityNameById(priorityId) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Gets the priority name by the priority id.

Gets the priority name by the priority id.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| priorityId | String | Yes | Id of the priority. |

## Return Type

**String**

## Example

```
return getPriorityNameById(3); //where 3 is the priority id for Medium
```

## See also

> Macro (contentbylabel)