Modules

filter

 

Objects/Functions

module (N/workflow)

SuiteScript 2.0

Main Examples

N/workflow Module
Member Type: Name
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=N/workflow Module

// Code Example 1
/**
* @NApiVersion 2.x
*/

require(['N/workflow', 'N/search', 'N/error', 'N/record'],
function(workflow, search, error, record) {
function initiateWorkflow() {
var workflowInstanceId = workflow.initiate({
recordType: 'customer',
recordId: 24,
workflowId: 'customworkflow_myWorkFlow'
});
var customerRecord = record.load({
type: record.Type.CUSTOMER,
id: 24
});
}
initiateWorkflow();
});

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