addFeedbackForRequest
Description
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
Example
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