Modules

filter

 

Objects/Functions

module (N/piremoval)

SuiteScript 2.0

PiRemovalTask.historyOnly

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

N/piremoval Module
PiRemovalTask.historyOnly
Property Description: Indicates whether the PI removal task removes system note information only, not field values or workflow history. If true, the task removes information from system notes only. If false, the task removes information from system notes, workflow history, and field values. The default value is false.
Type: boolean (read-only)
Module: N/piremoval Module
Parent Object: piremoval.PiRemovalTask
Sibling Object Members: PiRemovalTask Object Members
Since: 2019.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=PiRemovalTask.historyOnly

Example:

// Code Example 1
// Add additional code
//...
var myPiRemovalTask = piremoval.createTask({
recordType: 'customer',
recordIds: [95],
fieldIds: ['email'],
historyOnly: true,
historyReplacement: 'removed_value'
});

myPiRemovalTask.save();
var theHistoryOnly = myPiRemovalTask.historyOnly;
//...
// Add additional code

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