I am running a search with a join on items and get...
# suitescript
a
I am running a search with a join on items and get the
type
of that item. That returns
Inventory Item
even if it is a kit or serial item. But then when I try doing a submitFields from that same data, I get an error
Copy code
message: "The record you are attempting to load has a different type: lotnumberedinventoryitem from the type specified: inventoryitem."
Is there any way for me to directly get from the search results, the type needed for the record.submitFields, rather than manually checking if it is a lot/serialize item?