I'm doing a `search.load` on a UI-created search o...
# suitescript
d
I'm doing a
search.load
on a UI-created search of type Commissionable Item ... and I get a SuiteScript error
UNABLE_TO_DETERMINE_RECORD_TYPE_FOR_SAVED_SEARCH_ID_1
So, I need to find out the search type of a search first? Meaning, do a Search of Saved Searches (using internalid) and have the results return the 'Type' and use it to load the search?
b
I favor
nlapiGetFieldValue('searchtype')
on the console of the saved search
d
Ya, I'm trying to execute this (and other) searches in a Map/Reduce
So, in practice, I won't have the luxury of a browser
b
not sure you can actually get the search type that way
d
I hate my life
m
If you don't have any other options, you might be able to try the possible options in a try/catch
d
@michoel, I thought about that .. but as I read more on the Commissionable Item search I discovered that its not designed as a 'report' ... rather its a search that supports the Commission module. So, I told the customer to stop using it to report . Done