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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getPriorityIdByName(priorityName) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

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

Gets the priority id by the priority name.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| priorityName | String | Yes | Name of the priority. |

## Return Type

**String**

Returns the priority id for the priority name provided.

## Example

```
return getPriorityIdByName("High");
```

## See also

> Macro (contentbylabel)