Programmer's Guide > Interfaces > CMSSession interface > createNewObject method
  
createNewObject method
Creates an empty CMS object of the same type as the specified document. If bursting rules are set up, you may use them to supply or override some of the parameter values.
createNewObject(name, folderLogicalId, doc [, flags [, objType]])
Parameters
Stringname
Specifies the name of the new CMS object. The adapter is allowed to use a variant of this name if, for example, the CMS disallows two objects with the same name in the same folder. The actual name used can be obtained by accessing the name attribute of the returned CMSObject.
StringfolderLogicalId
Specifies the folder to put the object in. This may be the Logical ID of a folder or it may be in an adapter-specific path format.
Documentdoc
Provides context information for the creation of the object.
intflags
[optional] Specifies the creation options. The value is determined by a bit-wise OR of the CMSCreateFlags constants.
StringobjType
[optional] Specifies the CMS object type for the new object.
Returns
CMSObject. A new object handle.
Throws
CMSException
If an error occurs.