Why is a reference field returning a sys id instead of the value?

Community Alums
Not applicable

Hi all! I am trying to get the value contained in a reference field in an Onbefore transform script. It is returning the sys id instead of the value contained in the field. I tried with getValue, getReference, getDisplayName and getDisplayValue. Any ideas? 

1 REPLY 1

Jimmie Odelius
Giga Guru

Hi Rocio,


Can you post some sample code of what you are doing? The field in itself contains the sys_id so getValue() should return the sys_id in question. Normally you can get around this i with getDisplayValue though.

If you post some code maybe I can give some input on where it goes wrong.