Modules

filter

 

Objects/Functions

module (N/task)

SuiteScript 2.0

QueryTask.filePath

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=QueryTask.filePath for more information.

N/task Module
QueryTask.filePath
Property Description: Path of the CSV file to export query results to. The CSV file must be located in the File Cabinet. You can provide a value for this property or the QueryTask.fileId property. Only one of these properties can be set at the same time. If both are set, an error occurs.
Type: string
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/task Module
Parent Object: task.QueryTask
Sibling Object Members: QueryTask Object Members
Since: 2020.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=QueryTask.filePath

Example:

// Code Example 1
// Add additional code
//...
var myQueryTask = task.create({
taskType: task.TaskType.QUERY
});

myQueryTask.filePath = 'ExportFolder/export.csv';
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_159223771684.html