Modules

filter

 

Objects/Functions

module (N/piremoval)

SuiteScript 2.0

PiRemovalTask.workflowIds

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

N/piremoval Module
PiRemovalTask.workflowIds
Property Description: IDs of workflows where PI is removed from the workflow history. If no workflow IDs are entered, no information changes are performed. If the workflow IDs are null or invalid, the following exception occurs: Wrong parameter type: options.workflowIds is expected as array.
Type: number[] (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.workflowIds

Example:

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

myPiRemovalTask.save();
var theWorkflowIds = myPiRemovalTask.workflowIds;
//...
// Add additional code

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