logo

NJP

Get the Type of Field in a Table

Import · Jan 09, 2023 · article

We have an API called getED() which returns the field type.

var inc = new GlideRecord(“incident”);
inc.get(“7e20f9dd2f82551045ea802df699b6b3”);
gs.info(“Field Type :”+ “ ” +inc.caller_id.getED().getInternalType())

Output: Field Type: reference

View original source

https://medium.com/@LearnITbyPrashant/get-the-type-of-field-in-a-table-3c6df7201ade?source=rss-d005fc598f0a------2