Callback function parameters explained in netsuite
Category : SuiteScript 2.0
Hi in this tutorial we are going to show you how NetSuite executes the require() Function, it executes the callback function and loads the dependencies when they are required. the define() and require() functions used by SuiteScript 2.0 to load and define modules.
In simple layman language I will try to differentiate between the parameter usage of callback function.
require([‘N/record’,’N/search’],function(rec, sea){
var recobj = record.load({
type: record.Type.INVOICE,
id: 172932
});
});
This … Read the rest