We can search a custom list in netsuite and get the values from the custom list using saved search.
For that:
Navigate
Customization> Lists> Click on the “List” link on the respective lists that to be searched> search.
Script:
var customlist92SearchObj = search.create({
type: listID,
filters:
[
[“name”, “is”, option]
],
columns:
[
search.createColumn({
name: “name”,
sort: search.Sort.ASC,
label: “Name”
}),
search.createColumn({ name: “internalid”, label: “Internal ID” })
]
});