The CREATE_DOCUMENT action is used to create a document within the Nuxeo repository.
Use this action to create documents, store file content, and assign metadata as part of a business process. Documents can be created with or without content and can be organized within an existing repository structure by specifying a parent document or document path.
During the operation , the target location is identified using the parent document identifier or path. A new document is created using the specified document type with optional metadata assigned. The file content is uploaded if provided. Finally, Nuxeo returns the identifier of the newly created document. The resulting document can then be accessed, searched, updated, or downloaded through other Nuxeo connector actions.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| content | Content | Optional | An existing file in the Hyland repository that will be copied into the newly created Nuxeo document. |
| documentMetadata | JSON | Optional | Metadata that will be assigned to the document when it is created. |
| documentName | String | Required | The name of the document that will be created in the Nuxeo repository. |
| documentType | String | Required | The document type to create in the Nuxeo repository. |
| parentDocumentId | String | Optional | The identifier of the parent document under which the new document will be created. |
| parentDocumentPath | String | Optional | The repository path under which the new document will be created. |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| outputDocumentId | String | Optional | The identifier of the document created in the Nuxeo repository. |