data type of display value of a column(not internal type) using rest api

kanikag
Tera Contributor

I want to retrieve the data type of column, not internal type. I know how to get internal type using sys_dictionary, I am looking for data type of column for example

state column in task table has internal type integer but display value is string(Open, closed)

10 REPLIES 10

JenniferRah
Mega Sage
Mega Sage

I'm not sure if you are needing this client side or server side, but a way to do it server side is this:

current.getElement('state').getED().internalType

I am needing this client side, internal type is not what I am looking for, I am trying to get the base type or display type. For example here I am looking for data type of display_value which is string

kanikag_0-1731996645677.png

 

I think the type of the display value is always string. I can't think of an instance where it wouldn't be. The internal value might be different, but the display value is always returned as a string.

 

 

 

this wont be true for all the columns, so how do we get this base type information for all columns? for example for made_sla display type can be boolean, parent base type will be GUID.