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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getTransitionNameById(workflowName, transitionId) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Gets the transition name by the workflow name and transition id.

Gets the transition name by the workflow name and transition id.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| workflow name | String | Yes | Workflow name of the transition. |
| transition id | number | Yes | Transition id. |

## Return Type

**String**

Returns the transition name for the workflow name and transition id provided.

## Example

```
return getTransitionNameById("ADMROUTINES WORKFLOW",3);
```

## See also

> Macro (contentbylabel)