obj objRef create

Available for: Content Management Server

Task: Creates a new file with a draft version. The specified file in which the new file is to be created must be a folder.

Syntax:

obj (withId objId) | (withPath path) | root create {parameter value}

Function parameters:

  • parameter is the name of a parameter important for file creation. The value of the parameter is specified as the corresponding value value. parameter can be:
    • objClass: the name of the format to be assigned to the new file
    • name: The name the new file is to receive. If it is not specified, the name is generated according to the newx pattern, with x being a counter that counts from 0 to 999.
    • suppressExport: Specifies whether this file is to be exported.
  • value contains the value for the respective parameter.

Return value if successful: the ID of the newly created file (string)

Necessary permissions (CM only):

  • The user must have the permissionCreateChildren permission in the target folder.
  • The user must have the global file creation permission defined in the format of the target file.

Example: Create a folder named newslist below the base folder:

CM>obj root create name newslist objClass publication
4812