DocumentCaptureTask.documentType

Property Description

The document type.

Use a value from the documentCapture.DocumentType enum to set the value of this property. For more information, see the description of the options.documentType 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

INVALID_DOCUMENT_TYPE

The value of this property is not included in the documentCapture.DocumentType 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.documentType = documentCapture.DocumentType.INVOICE;
...
// Add additional code 

          

General Notices