obj objRef get

Available for: Content Management Server, Template Engine

Task: Returns the value of the specified file field.

Syntax:

obj (withId objId) | (withPath path) | root get objAttr

Additional information: Instead of file fields you can specify version fields, provided that the file has at least one version. Regarding the values returned, the released versions have precedence over edited or committed versions. To the Template Engine only released versions are known.

Function parameters:

  • objAttr specifies the name of the file field whose value is being searched for (see File attributes).

Return value if successful: the value of the queried file field (string)

Necessary permissions (CM only): The user must have the permissionRead permission for the specified file. The file fields id, name, visibleName, path, visiblePath, and objType can be queried without having the permissionRead permission.

Example:

CM>obj withId 2003 get children
2033 4127 98314