Syntax
getLastComment(pageId)
Description
Gets all the comment properties for the last page comment.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
page ID | number | yes | ID of the selected page. |
Return type
CComment
The comment representation with the following keys:
Key name | Description |
---|---|
id | Id of the page comment. |
text | Comment text. |
author | Authorof the comment. |
created | Creation date, as a string, can be assigned to a date variable. |
updatedBy | Updater, or an empty string if there is no updater. |
updated | Updateddate, or an empty string if there's no update. |
Example
CComment [] lastComm = getLastComment(11801); print("Got comment:" + lastComm.text);
See also