Modules

filter

 

Objects/Functions

module (N/task)

SuiteScript 2.0

MapReduceScriptTaskStatus.getPercentageCompleted()

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=MapReduceScriptTaskStatus.getPercentageCompleted() for more information.

N/task Module
MapReduceScriptTaskStatus.getPercentageCompleted()
Method Description: Returns the current percentage complete for the current stage of a task.MapReduceScriptTask. Use the MapReduceScriptTaskStatus.stage property to get the current stage. For general information about map/reduce stages, see Map/Reduce Key Concepts and SuiteScript 2.0 Map/Reduce Script Stages. The input and summarize stages are either 0% or 100% complete at any time.
Returns: number
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Governance: 10 units
Module: N/task Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=MapReduceScriptTaskStatus.getPercentageCompleted()

Example:

// Code Example 1
//Add additional code
//...
var completion = taskStatus.getPercentageCompleted();
log.audit('Percentage Completed: ' + completion);
//...
//Add additional code

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