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


## Description

> Macro (excerpt)
> 
> Returns an approval structure

Returns an approval structure

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getApproval(requestId_or_Key, approvalId) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| requestId_or_Key | String | Yes | The ID or Key of the customer request for which the approval will be retrieved |
| approvalId | Integer | Yes | The ID of the approval to be re returned |

## Return Type

**[JSMApproval](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/435028065)**

## Example

```javascript
return getApproval("SM-1", 5);
```

Returns a JSMApproval structure.

## See also

> Macro (contentbylabel)