can someone tell me if you can result the record t...
# suitescript
b
can someone tell me if you can result the record type in an item search like you can in a transaction search? I'm not talking the basic "Type" field because that isn't specific enough. If you look at the xml you can see
baserecordtype
and
recordType
as values but those don't appear to be able to be resulted. I don't want to have to build an item type map in my script if i can help it. Am I missing anything or do I have to build the mapping? If I have to build it I guess I'll build it as a custom module and I suppose I need to result the "is lot numbered" and "is serial" fields to help me dynamically figure out the actual record type of the item. The goal is to have an item search (not type specific) as the input for a MR script that updates the items resulted, but obviously I have to know the proper type in order to update the item.
b
b
oh really, it will be in SS but doesn't result in UI?
well that's convenient. thanks. I incorrectly assumed that if I loaded the search via SS i needed to have all possible results in the results list.
so, if I summarize the results of the search I'm loading
recordType
returns
null
, is there a way to have summarized results and still access the proper
recordType
?
b
no, there is no restriction that all the grouped search results have the same record type
b
okay, so if I need to have the results of my item search summarized, I'll have to build out my own mapping to identify the correct record type enumeration?
b
yes
b
okay, thank you very much for confirming and responding in the first place!