- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2022 05:27 AM
Hi Team,
My reference field is visible like this:
IM Argentina Operating Unit
IM Argentina Operating Unit
IM Argentina Operating Unit
IM Argentina Operating Unit
IM BR OU
IM BR OU
.............
But I need the unique Values.
How to achieve this requirement?
Thanks,
Yesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2022 09:29 PM
Hi
Why don't you get all sysid into an array, then use unique of arrayUtil class.
Then you can populate the select box with the unique values of array.
Api | ArrayUtil - ServiceNow Developers
Hope this helps!
Thanks,
Nikhil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2022 09:29 PM
Hi
Why don't you get all sysid into an array, then use unique of arrayUtil class.
Then you can populate the select box with the unique values of array.
Api | ArrayUtil - ServiceNow Developers
Hope this helps!
Thanks,
Nikhil

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2022 09:37 PM
Hi Yesh,
Are there any unique field in the existing table? Which fields are unique in the table? If there isn't any field that is unique, create a new field that will be unique.