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.

C# | Visual Basic | Visual C++ |
public string CreateNewDocument( string vaultidentifier, string documentpath, string filename, string doctypename, string sourcefilefullpath, Object properties, Object values )

- 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.

ID of the newly created document

The new document is in the Under Change state after creation.