The CREATE_DOCUMENT action is used to create a document within the Perceptive Content repository.
Use this action to store files and metadata in Perceptive Content as part of a business process. Documents can be created with or without file content and can be assigned document keys, locations, and names during creation. The created document can then be used in searches, workflows, and other document management operations.
The action creates a document in the Perceptive Content repository and optionally associates file content with it. During the operation, a new document record is created with keys assigned, the document is placed in the specified location and the file content is copied from the Hyland repository, if provided. The document and page identifiers are then returned. The resulting document can then be used by search, workflow, content update, and download actions.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| content | Content | Optional | A SysFile (or inherited) reference to an existing document in the Hyland repository. The file is copied to the newly created document in the Perceptive Content repository. |
| keys | JSON | Required | Document keys (metadata) used to describe and classify the document. |
| locationId | String | Optional | The identifier of the location (folder) where the document will be stored. |
| name | String | Optional | The document name. If no value is provided, the document identifier is used as the name. |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| documentId | String | Optional | The identifier of the document created in the Perceptive Content repository. |
| pageId | String | Optional | The identifier of the page created in the Perceptive Content repository. This value can be null if no content was supplied during document creation. |