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:
- The user must have the
permissionReadpermission for the file the version belongs to. - The
permissionGlobalExportpermission is also sufficient for querying theexportBlobfield.
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