Create and run a joined search
This sample is a custom module script that creates and runs a joined search. This sample can be used as a custom module or as an individual function within a user event or other server script, so no JSDoc or define statement or return statement or entry point function is needed. But you will need to load the N/search module for the function to work.
The conversion of this script from SuiteScript 1.0 to SuiteScript 2.x includes the following:
-
The
nlobjSearchFilter
function is changed to thesearch.createFilter
method. -
The
nlobjSearchColumn
function is changed to thesearch.createColumn
method. -
The
nlapiSearchRecord
function is changed to theSearch.run
method.
SuiteScript 1.0 Script |
SuiteScript 2.x Script |
---|---|
|
|