Modules
Objects/Functions
SuiteScript 2.0
{PiRemovalTask}.save(){_1_CANNOT_BE_EMPTY: {Record Type cannot be empty.},_1_JOB_WAS_NOT_FOUND: {_1_JOB_WAS_NOT_FOUND: {_1_JOB_WAS_NOT_FOUND: {_1_JOB_WAS_NOT_FOUND: {Workflow ID ‘ID’ was not found.}})
N/piremoval Module
PiRemovalTask.save()
Method Description:
Saves the PI removal task.
All validation for the task (for example, ensuring that the specified record IDs are valid) occurs when the task is saved using this method.
Returns:
void
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
20 units
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.save()
Example:
// Code Example 1
// Add additional code
//...
var myPiRemovalTask = piremoval.createTask({
recordType: 'customer',
recordIds: [11, 19],
fieldIds: ['comments', 'phone'],
workflowIds: [1],
historyOnly: false,
historyReplacement: 'removed_value'
});
myPiRemovalTask.save();
var myTaskId = myPiRemovalTask.id;
myPiRemovalTask.run();
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_156174691190.html