using the `record` or `currentRecord` module, is t...
# suitescript
j
using the
record
or
currentRecord
module, is there a way to get the Name of the type of record you are on? E.g. Customer, Vendor, Sales Order, etc?
r
In the user event script, The record type is in Context.newRecord.type In client Script, the record type you can get as currentRecord.type Do note both will give the record type enum
j
I need the name though, not the id. E.g. I’d want
My Custom Record Type
not
customrecord_my_custom_record_type
d
I know it's not using record/currentRecord, but I'm pretty sure a query on the ScriptRecordType table will get you what you need