Syntax

getComment(pageId)

Description

Returns comments for a given page.

Parameters

Parameter name

Type

Required

Description

page ID

numberyesID of the selected page.

Return type

CComment []

Returns an array of comments for the selected page.

The comment representation with the following keys:

Key name

Description

id

Id of the page comment.

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

Example

CComment [] allComm = getComments(11801);

for(CComment comm in allComm) {
	deleteComment(comm.id)
}

Deletes all comments from the page.

See also