Platform Explorer / Nuxeo Platform 2023.10

Operation Document.Create (Create)

Description

Create a new document in the input folder. You can initialize the document properties using the 'properties' parameter. The properties are specified as key=value pairs separated by a new line. The key used for a property is the property xpath. To specify multi-line values, you can use a \ character followed by a new line.

Example:

dc:title=The Document Title
dc:description=foo bar
. Returns the created document.
Operation id Document.Create
Category Document
Label Create
Requires
Since

Parameters

Name Description Type Required Default value
type string yes  
name string no  
properties properties no  

Signature

Inputs document, documents
Outputs document, documents

Implementation Information

Implementation Class Class: org.nuxeo.ecm.automation.core.operations.document.CreateDocument
Contributing Component org.nuxeo.ecm.core.automation.coreContrib

JSON Definition

{
  "id" : "Document.Create",
  "label" : "Create",
  "category" : "Document",
  "requires" : null,
  "description" : "Create a new document in the input folder. You can initialize the document properties using the 'properties' parameter. The properties are specified as <i>key=value</i> pairs separated by a new line. The key used for a property is the property xpath. To specify multi-line values, you can use a \\ character followed by a new line. <p>Example:<pre>dc:title=The Document Title<br>dc:description=foo bar</pre>. Returns the created document.",
  "url" : "Document.Create",
  "signature" : [ "document", "document", "documents", "documents" ],
  "params" : [ {
    "name" : "type",
    "description" : null,
    "type" : "string",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "name",
    "description" : null,
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "properties",
    "description" : null,
    "type" : "properties",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}