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");