- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2022 09:53 AM
Hi, I am testing my script in the background script. It is printing out sysid values. How can i change to more human readable and convert the output to a string.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2022 10:01 AM
If by string, you mean the Display value of a field, then you can use getDisplayValue('field_name'). Reference fields will always give you the sys_id of the record if you grab it directly, if you want the display value, use the same function.
If this resolved your issue, please mark this correct and helpful, thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2022 10:01 AM
If by string, you mean the Display value of a field, then you can use getDisplayValue('field_name'). Reference fields will always give you the sys_id of the record if you grab it directly, if you want the display value, use the same function.
If this resolved your issue, please mark this correct and helpful, thanks!