Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
N/search Module
Hello,
This is pretty simple one as well, Is there a way to generate adhoc search without creating or loading from the saved search in 2.0?
I didn't want to create a saved search and delete later. Is there a way we can do it dynamically? With SuiteScript 1.0 nlapiSearchRecord('recordtype', null, filters, columns); will not create a saved search but we can get the result from it. Need something equivalent to this in SuiteScript 2.0.
I tried this
var sSearch = search.create({
type: search.Type.RECORD_TYPE,
title: 'SomeTitle2',
id:null,
columns:columns,
filters: filters
});
sSearch.save();
but it still saved to the saved search with auto generated script id