Skip to end of banner
Go to start of banner

getLastComment

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Syntax

getLastComment(pageId)

Description

Gets all the comment properties for the last page comment.

Parameters

Parameter name

Type

Required

Description

page ID

numberyesID of the selected page.

Return type

CComment

The comment representation with the following keys:

Key name

Description

id

Id of the page comment.

textComment text.
authorAuthorof the comment.
createdCreation date, as a string, can be assigned to a date variable.
updatedByUpdater, or an empty string if there is no updater.
updatedUpdateddate, or an empty string if there's no update.

Example

CComment [] lastComm = getLastComment(11801);

print("Got comment:" + lastComm.text);

See also

  • No labels