content contentRef set

Available for: Content Management Server

Task: Sets the specified version field to the corresponding value.

Syntax:

content withId contentId set {contentAttr value}

Function parameters:

  • parameter specifies the version field whose value is to be set.
  • value is the value of the field to be set.

Return value if successful: none

Necessary permissions: The user must be the editor of the version and have the permissionWrite permission for the file the version belongs to.

Example:

CM>content withId 25687 set title {News list}

Example for a corresponding obj command:

CM>obj withId 242235 editedContent set title {News list}