03-07-2011 12:29 PM
token.comments.get(0).message
to grab the comment. When I noticed that the comment emailed was always the first comment, I changed some of the instances to readtoken.comments.get(1).message
assuming there was an array to access. But whilst this throws no errors, I still get the first comment emailed.03-08-2011 04:08 PM
var comment = "";
if (token.comments != null && token.comments.size() > 0) {
comment = token.comments.get(token.comments.size() - 1).message;
}
HTH
03-09-2011 07:12 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.