obj objRef addComment

Available for: Content Management Server

Task: Adds a comment to a file. The comment is written to the log.

Syntax:

obj (withId objId) | (withPath path) | root addComment comment

Function parameters:

  • comment specifies the comment to add to the log.

Return value if successful: none

Necessary permissions (CM only): The user must have the permissionWrite or permissionRoot permission for the specified file.

Examples:

CM>obj withId 2003 addComment "External links corrected."
CM>logEntry where objectId 2003
{objectId 2003 logType action_comment receiver {} logTime
20100622163745 logText {External links corrected.} userLogin root}
...