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


## Description

> Macro (excerpt)
> 
> Add feedback to the provided requestId_or_Key.

Add feedback to the provided requestId_or_Key

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | addFeedbackForRequest(requestId_or_Key, rating [,comment]) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| requestId_or_Key | String | Yes | The key or id of the selected request. |
| rating | number | Yes | Rating must be between 1 and 5. |
| comment | String | No | Comment for the rating. |

## Return Type

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

## Example

```javascript
JSMFeedback feedback = addFeedbackForRequest("SM-1","5","Thanks for help.");
 return feedback;}
```

Adds the feedback and returns the feedback structure if the feed was added successfully

## See also

> Macro (contentbylabel)