Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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