BlueCielo Meridian Connection API 2012 Reference Guide | BlueCielo ECM Solutions
You are here: Namespaces > ICMeridianAPI > Connection > CreateNewDocument(String, String, String, String, String, Object, Object)
CreateNewDocument Method (vaultidentifier, documentpath, filename, doctypename, sourcefilefullpath, properties, values)
Creates a new document in the vault and optionally sets its properties.
Declaration Syntax
C#Visual BasicVisual C++
public string CreateNewDocument(
	string vaultidentifier,
	string documentpath,
	string filename,
	string doctypename,
	string sourcefilefullpath,
	Object properties,
	Object values
)
Public Function CreateNewDocument ( _
	vaultidentifier As String, _
	documentpath As String, _
	filename As String, _
	doctypename As String, _
	sourcefilefullpath As String, _
	properties As Object, _
	values As Object _
) As String
public:
String^ CreateNewDocument(
	String^ vaultidentifier, 
	String^ documentpath, 
	String^ filename, 
	String^ doctypename, 
	String^ sourcefilefullpath, 
	Object^ properties, 
	Object^ values
)
Parameters
vaultidentifier (String)
The vault in which the new document should be created.
documentpath (String)
The path location in which the new document should be created. The path should not include a filename.
filename (String)
The name of the new document.
doctypename (String)
The document type name to be used for the new document. The vault’s default document type is used if no document type is specified or the user interface will be activated if no decision can be made.
sourcefilefullpath (String)
A local source file that provides the content of the new document. If no source file is specified, the document is either left empty or the user is asked to select a template if document templates are defined.
properties (Object)
An array of property names for the new document that need to be initialized with values.
values (Object)
An array of values for the properties specified in the properties parameter. The dimensions of the properties array and values array should be identical. The values array must be an array of variants.
Return Value
ID of the newly created document
Remarks
The new document is in the Under Change state after creation.

Assembly: ICMeridianAPI (Module: ICMeridianAPI) Version: 1.0.1.4 (1.0.1.4)