DocumentCaptureTask.features

Property Description

The features to extract from the document (such as fields, tables, or text).

Use values from the documentCapture.Feature enum to set the value of this property. If you don't specify any features, the TEXT_EXTRACTION and TABLE_EXTRACTION features are used by default. For more information, see the description of the options.features parameter in documentCapture.documentToStructure(options).

Type

string[]

Module

N/task Module

Parent Object

task.DocumentCaptureTask

Sibling Object Members

DocumentCaptureTask Object Members

Since

2025.2

Errors

Error Code

Thrown If

WRONG_PARAMETER_TYPE

This property has values that are not included in the documentCapture.Feature enum.

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/task Module Script Samples.

            // Add additional code
...
var myDocCaptureTask = task.create({
    taskType: task.TaskType.DOCUMENT_CAPTURE
});
myDocCaptureTask.features = [
    documentCapture.Feature.FIELD_EXTRACTION,
    documentCapture.Feature.TABLE_EXTRACTION
];
...
// Add additional code 

          

General Notices