DocumentCaptureTask.inputFile

Property Description

The document to extract content from.

The value of this property is a file.File object that represents a file in the NetSuite File Cabinet. For more information, see the description of the options.file parameter in documentCapture.documentToStructure(options).

Type

file.File

Module

N/task Module

Parent Object

task.DocumentCaptureTask

Sibling Object Members

DocumentCaptureTask Object Members

Since

2025.2

Errors

Error Code

Thrown If

UNSUPPORTED_FILE_TYPE

The specified document is not in PDF, TIFF, JPG, or PNG format.

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.inputFile = file.load("542");
...
// Add additional code 

          

General Notices