Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=SearchTask.submit() for more information.
N/task Module
SearchTask.submit()
Method Description:
Directs NetSuite to initiate the asynchronous search task and return a unique ID for the task. When the submission is successful, this method adds the internal IDs of any dependent scripts (added using SearchTask.addInboundDependency()) to the SearchTask.inboundDependencies property.
Use task.SearchTaskStatus to view the status of a submitted task.
Returns:
string
The task ID
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
100 units
Module:
N/task Module
Since:
2017.1
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=SearchTask.submit()
Example:
// Code Example 1
//Add additional code
//...
var searchTriggerTask = searchTask.submit();
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4804558173.html