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

Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 11:17 AM
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 11:32 PM
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.