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


## Description

> Macro (excerpt)
> 
> Subscribe to receive notifications.

Subscribe an user to request notification for a specific customer request.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | subscribeNotifications(requestId_or_Key, userAccountId) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| requestId_or_Key | string | Yes | The key or the id of the customer request |
| userAccountId | string | Yes | The account id of the user that will be subscribed. |

## Return Type

**boolean**

Returns 'true' if it does not end in error.

## Example

```javascript
subscribeNotifications("SM-92", "user_account_id");
```

## See also

> Macro (contentbylabel)