HOW TO CREATE A SEARCH IN SUITESCRIPT 2.0?
To create a search within any 2.0 script, we need to use search module and using its object create filters and columns and then run it. The following code can be used to create a search in 2.0 define(['N/record', 'N/search'], function(record, search) { function execute(scriptContext) { var customersearch = search.create({ type: "customer", filters: [ search.createFilter( { name: 'isinactive', operator: 'is', ...