Available for: Content Management Server
Task: Returns the value of the specified version field.
Syntax:
content withId contentId get contentAttr
Function parameters:
contentAttr
: The name of the
version field whose value is being queried.Return value if successful: the value of the version field (string)
Necessary permissions:
permissionRead
permission for the file
the version belongs to.permissionGlobalExport
permission is also sufficient for
querying the exportBlob
field.Example:
CM>content withId 25687 get title Newslist
The value of a version field can also be retrieved using an obj
command:
CM>obj withPath /news editedContent get title Newslist