Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=PiRemovalTaskLogItem.status for more information.
N/piremoval Module
PiRemovalTaskLogItem.status
Property Description:
Encapsulates the status of a log item.
Possible status values include:
PENDING
PROCESSING
COMPLETE
FAILED
For more information, see task.TaskStatus.
Type:
string (read-only)
Module:
N/piremoval Module
Parent Object:
piremoval.PiRemovalTaskLogItem
Sibling Object Members:
PiRemovalTaskLogItem Object Members
Since:
2019.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=PiRemovalTaskLogItem.status
Example:
// Code Example 1
// Add additional code
//...
var myPiRemovalTask = piremoval.createTask({
recordType: 'customer',
recordIds: [95],
fieldIds: ['email'],
historyReplacement: 'removed_value'
});
myPiRemovalTask.save();
var myId = myPiRemovalTask.id;
var myStatus = piremoval.getTaskStatus({
id: myId
});
var theLogList = myStatus.logList;
for (var i = 0; i < theLogList.length; i++) {
var theLogListStatus = theLogList[i].status;
// Do something with the log list status here
}
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_156174870975.html