try `recordtype` instead of `type`
# suitescript
e
try
recordtype
instead of
type