Hello everybody,
Is it possible to execute a System Note's saved search from a script whith search.load?
I tryed, but get a error:
{"type":"error.SuiteScriptError","name":"UNABLE_TO_DETERMINE_RECORD_TYPE_FOR_SAVED_SEARCH_ID_1","message":"Unable to determine record type for saved search id 1606","stack":["load(N/searchObject)","map(/SuiteScripts/metricas_diag_MR.js:30)"],"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 1606","userEvent":null,"stackTrace":["load(N/searchObject)","map(/SuiteScripts/metricas_diag_MR.js:30)"],"notifyOff":false},"id":"","notifyOff":false,"userFacing":false}
The script is:
var actuallSearch = search.load(searchId)
The recordtype used is: systemnote