Obtain user id from user table reference field

eswarijk
Tera Contributor

One of the fields of my table is a reference type of USER table.

The Table is mapped to a module from which I can perform List Editing.Refer the below picture for reference.

Screenshot (184).png

I am obtaining the User name as the return value from the user table reference field

But I need User ID instead of User name to be returned.

How should I configure in order to achieve this?

3 REPLIES 3

nayanawadhiya1
Kilo Sage

Hey Eswari,


        You have configure the Attribute for that field.


        This will help you Dictionary Attributes - ServiceNow Wiki


What will be the attribute name to set employee number as display value in the reference field?


dvp
Mega Sage
Mega Sage

You need to write a dictionary override on the reference field



Here is the link Dictionary Overrides - ServiceNow Wiki



Override display value Select the check box to use this field as the display value on the extended table.


For example, the Story [rm_story] table uses the short description as the display value in reference fields instead of the number, as defined in the Task [task] table.