Arbortext Command Language > Repository API > create
  
create
create(name, folder, opts, first, last, version, objtype, ud)
This callback corresponds to the dobj_create and dobj_create_subtree functions and creates a new document object.
name — a string representing the name of the document being created.
folder — a string representing the path of the parent folder for the new document
opts — a complete list of the available bitmask options is available in the dobj_create help topic
first — the object ID (oid) of the first object in the document
last — the object ID (oid) of the last object in the document
ver — the version of the new document object
objtype — the repository-specific object type for the new document object as defined in your adapter documentation
ud — user defined information; strings must match the adapter encoding
The create callback returns the following integer values:
less than 0 — an error has occurred
0 — the normal create routine should be performed
greater than 0 — the callback succeeded and has returned the docobj
Related Topics
Repository API callback functions