Print

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");
Czy artykuł był pomocny?
0 na 5 gwiazdek
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
How Can We Improve This Article?