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


## Description

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

Gets the status id by the status name.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getStatusIdByName(statusName) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| statusName | String | Yes | Name of the status. |

## Return Type

**String**

## Example

```javascript
return getStatusIdByName("Done");
```

## See also

> Macro (contentbylabel)