getCommentForRequest

getCommentForRequest

 

Description

Returns a comment structure with extra information (attachments and renderedBody), those are not get when using getCommentsForRequest

Syntax

getCommentForRequest(requestId_or_Key, commentId)

Package

 

Alias

 

Pkg Usage

 

Parameters

Parameter name

Type

Required

Description

Parameter name

Type

Required

Description

requestId_or_Key

String

Yes

The ID or Key of the customer request for which the comment will be retrieved

commentId

Integer

Yes

The ID of the comment to be re returned

Return Type

JSMComment[]

Example

return getCommentForRequest("SM-1", 10072);

Returns a list of JSMComment structures.

See also