If you have the internal id, you can search agains...
# suitescript
z
If you have the internal id, you can search against 'item' and look for the type field