The SEARCH_DOCUMENTS action is used to look for documents within the Perceptive Content repository.
Use this action to locate documents, folders, workflow items, tasks, or folder contents based on a Visual Scripting Language (VSL) query. The returned results can be used in workflows to retrieve content, route documents, perform validations, or drive business decisions. The search is executed against a specified Perceptive Content view.
The action submits the supplied VSL query to the specified Perceptive Content view. During the operation, the specified view is loaded and the VSL query is executed. Then the matching repository objects are identified and results are returned to the process. The results can then be used by later connector actions, workflow logic, forms, or integrations.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| category | String | Required | The type of repository object to search. Supported values are: DOCUMENT, FOLDER, FOLDER_CONTENT, TASK, WORKFLOW. |
| clientTimeZoneOffset | String | Optional | The client time zone represented as an ISO 8601 UTC offset. Example: +02:00. |
| query | String | Required | The Visual Scripting Language (VSL) search expression used to identify matching items. |
| viewId | String | Required | The identifier of the Perceptive Content view that will be queried. Example: SysDocumentsAll. |
The following query searches for documents whose names begin with invoice-:
[name] startswith 'invoice-'
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| searchDocumentsResult | JSON | Optional | A list of repository objects that match the supplied search criteria. |
An example output is:
{
"searchDocumentsResult": [
{
"id": "321Z235_0005MZDLN000019",
"name": "invoice-10025.pdf"
},
{
"id": "321Z235_0005MZDLN000020",
"name": "invoice-10026.pdf"
}
]
}
In this example, the action returned two documents that matched the search criteria.