anyone have a best practice for sourcing a variabl...
# suitescript
m
anyone have a best practice for sourcing a variable into search.Type.xxxx ? I have a MR script searching items that returns multiple item types. I'd like to use the same record.load and source in search.Type.INVENTORY_ITEM if it is an inventory item, and the same for kits, etc.
b
If you are going from search results to a record load, use Result.recordType
if you are going from a record to a search, the type is irrelevant, just do a search on the base type (like search.Type.ITEM) and add a filter for the internal id