GetComments

This function will get comments for current case. Optionally, comment creator and comment number can be specified.

Syntax

GetComments();
GetComments("whichOne");
GetComments("whichOne", "creator");

Function arguments

  • whichOne – (String) [Optional] Specifies which comment is to be retrieved. Accepted values are: [ all | first | last | index ]. (Default = 'all’).
  • creator – (String) [Optional] Specifies email address of user which created comments to be retrieved.

Return value

This function returns String.
Returns comments from current case.

Examples

Example 1:
Returns all comments from current case sorted chronologically, each separated by „\r\n———\r\n”

GetComments();

Example 2:
Returns first comment from current case.

GetComments("first");

Example 3:
Returns third comment from current case that was created by user with mail 'test@mail.com’.

GetComments("3", "test@mail.com");
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.