Is it possible to get the record type in proper ca...
# suitescript
b
Is it possible to get the record type in proper case like "Sales Order" instead of "salesorder" or "salesord" via a search or loading or a record?
b
probably not on all search types, but get the text of the type column
n
if you are loading the record and get the "type" you'll see "salesorder" (pretty sure you don't need to get the "text" value.)
b
I need "Sales Order" though
n
ah I see what you mean I just re-read that
try what battk said
b
Unfortunately, I need it to work on any record type
I'm actually already doing what battk has suggested, but it's not working for all record types as he said
It's not working for Employee for instance
b
how much work are you willing to put in to avoid a hard coded list?
b
Well it needs to work for custom record types too
In any client's account
...so whatever it takes
b
suitetalk has methods to list customizations
so you could combine that with a hardcoded list
b
I'm limited to client side
b
onto esoteric stuff
netsuite has a scripted record type list/record source option that can be used in combination with sourcing/filtering to get related values
you can setup a custom record that has a Script Record Type Select Field, and a sourced field which displays the sourced script id of the Scripted Record Type
b
Okay, I've done that with Fields before
b
a less supported option could be a hardcoded list in combination with a search on 'customrecocordtype'
m
Something else to consider is how you want to handle record types that have been renamed in the account.