Modules

filter

 

Objects/Functions

module (N/task)

SuiteScript 2.0

CsvImportTask.submit()

{CsvImportTask}.submit(){FAILED_TO_SUBMIT_JOB_REQUEST_1: {Failed to submit job request: {reason}}})

N/task Module
CsvImportTask.submit()
Method Description: Directs NetSuite to place a CSV import task into the NetSuite task queue and returns a unique ID for the task. Use CsvImportTaskStatus.status to view the status of a submitted task. This method throws errors resulting from inline validation of CSV file data before the import of data begins (the same validation that is performed between the mapping step and the save step in the Import Assistant). Any errors that occur during the import job are recorded in the CSV response file, as they are for imports initiated through the Import Assistant.
Returns: string
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Governance: 100 units
Module: N/task Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=CsvImportTask.submit()

Example:

// Code Example 1
//Add additional code
//...
var csvImportTaskId = csvTask.submit();
//...
//Add additional code

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