Modules

filter

 

Objects/Functions

module (N/task)

SuiteScript 2.0

SuiteQLTaskStatus.fileId

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

N/task Module
SuiteQLTaskStatus.fileId
Property Description: Internal ID of the CSV file that SuiteQL query results are exported to. This property references the same CSV file that is specified by the SuiteQLTask.fileId property or SuiteQLTask.filePath property in the corresponding task.SuiteQLTask object.
Type: number (read-only)
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/task Module
Parent Object: task.SuiteQLTaskStatus
Sibling Object Members: SuiteQLTaskStatus Object Members
Since: 2020.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=SuiteQLTaskStatus.fileId

Example:

// Code Example 1
// Add additional code
//...
// mySuiteQLTask is an existing task.SuiteQLTask object
var myTaskId = mySuiteQLTask.submit();

var myTaskStatus = task.checkStatus({
taskId: myTaskId
});

var theFileId = myTaskStatus.fileId;
//...
// Add additional code

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