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:
-
parameteris the name of a parameter important for file creation. The value of the parameter is specified as the corresponding valuevalue. 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 thenewxpattern, withxbeing a counter that counts from 0 to 999. -
suppressExport: Specifies whether this file is to be exported.
-
-
valuecontains 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
permissionCreateChildrenpermission 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