Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=WorkflowTriggerTask.recordType for more information.
N/task Module
WorkflowTriggerTask.recordType
Property Description:
Record type of the workflow definition base record. For example, customer, salesorder, or lead.
In the Workflow Manager, this is the record type that is specified in the Record Type field.
Type:
string
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Module:
N/task Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=WorkflowTriggerTask.recordType
Example:
// Code Example 1
//Add additional code
//...
workflowTask.recordType = 'customer';
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_452073913574.html