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


## Description

> Macro (excerpt)
> 
> Answer to an existing approval.

Answer to an existing approval.

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

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| requestId_or_Key | String | Yes | The request key or id. |
| approvalId | String | Yes | The id of the approval to be answered. |
| decision | boolean | Yes | The decision can be 'true' if we want to approve of 'false' if we decline the approval. |

## Return Type

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

## Example

### Example 1

```javascript
JSMApproval approval = answerApproval("SM-92", 23, true);  
return approval;
```

## See also

> Macro (contentbylabel)