Is anyone aware of how it would be possible to do ...
# suitescript
d
Is anyone aware of how it would be possible to do a lookup by id to the get scriptable id of or a “RecordType” ?
RecordType is defined in the Schema Browswer under platform->core as a Enum
b
im not really sure what you are asking, but Schema Browser is for SuiteTalk
d
message has been deleted
@battk rather than try to explain it I will show you.
I am trying to complete this mapping for NS Core Record Types
Right now there doesn’t seem to be a clean programatic way to just look this data up by search or by load
b
If I had the choice, i would do the hardcoded list you have
if you had to use suitescript to get to the information, then you would need to create a custom record and use sourcing to get the values
you would have to create a list/record field that has
Scripted Record Type
as the
List/Record
Scripted Record Types have 2 fields of interest to you, the List/Record (contains the internal id number of your record type) and the Script ID (which contains the Script ID)
create 2 fields that use sourcing to source their values from the first list/record you created
you could put the fields on a custom record and create records of the custom record type that you can search
you can also use dynamic mode on a record to set the scripted record type field so that you can get the sourced fields
keep in mind that my suggestion is still to hardcode the lookup