So Netsuite N/Search module doesn't support Saved ...
# suitescript
r
So Netsuite N/Search module doesn't support Saved Information Item searches, does anyone know how I can load a Saved Info Item search?
e
You can use any saved search with search.load({id: <ID of Search>})
r
I am, but it's giving me an error saying it doesn't recognize the record type:
UNABLE_TO_DETERMINE_RECORD_TYPE_FOR_SAVED_SEARCH_ID_1
{"type":"error.SuiteScriptError","name":"UNABLE_TO_DETERMINE_RECORD_TYPE_FOR_SAVED_SEARCH_ID_1","message":"Unable to determine record type for saved search id 1066","stack":["load(N/searchObject)","getItems(/SuiteScripts/getInfoItems.js:28)"],"cause":{"type":"internal error","code":"UNABLE_TO_DETERMINE_RECORD_TYPE_FOR_SAVED_SEARCH_ID_1","details":"Unable to determine record type for saved search id 1066","userEvent":null,"stackTrace":["load(N/searchObject)","getItems(/SuiteScripts/getInfoItems.js:28)"],"notifyOff":false},"id":"","notifyOff":false,"userFacing":false}
Works fine for Saved item searches but not saved info item searches
e
Could be a permission problem. Is the saved search public?
r
Yup it's public. When I check the Help section for search.type, it doesn't list information item as a supported type
e
Ok, I might not be familiar with the Information Item record type. Is that something in SuiteCommerce?
r
Not a record type, it's a type of saved search:
e
I believe it must be a Custom Record type that has “Include in Global Search” checked. So, you might check the Permissions tab of the “Information Item” Custom Record Type.
b
search.load details how standalone search types work
if you are desperate to get confirmation, then you can take a look as the source code of the
isStandaloneSearchType
function in your browser's console on a page that supports suitescript to see how netsuite generates the list of supported standalone search types
567 Views