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 filename
: 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):
permissionCreateChildren
permission in the target folder.Example: Create a folder named newslist below the base folder:
CM>obj root create name newslist objClass publication 4812