Modules

filter

 

Objects/Functions

module (N/piremoval)

SuiteScript 2.0

piremoval.PiRemovalTaskLogItem

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

N/piremoval Module
piremoval.PiRemovalTaskLogItem
Object Description: This object represents log items that are associated with a piremoval.PiRemovalTaskStatus object. The logs are generated separately when a task is created, started, and completed. A piremoval.PiRemovalTaskLogItem object represents a single log entry that you get from the piremoval.PiRemovalTaskStatus object using the PiRemovalTaskStatus.logList property. The log items are sorted by date. The structure of this object is described in PiRemovalTaskLogItem Object Members.
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/piremoval Module
Methods and Properties: PiRemovalTaskLogItem Object Members
Since: 2019.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=piremoval.PiRemovalTaskLogItem

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++) {
log.debug({
title: 'logList value',
details: theLogList[i]
});
}
//...
// Add additional code

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