- 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:27 PM
Hi,
have you checked your reference field display value? Is it showing the similar values to IM Argentina Operating Unit or not?
I guess it is reference field which shows these values (concatenate the two or more fields).
Can you share the reference table fields
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2022 09:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2022 10:07 PM
Hi,
You have to use the unique field to display in reference field.
Thank,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2022 10:12 PM
Hi
Okay. But I need the Plant Names to be displayed and those should be unique. Is it possible to do?
Thanks,
Yesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2022 10:29 PM
Hi,
You have to control it through the Advanced reference qualifier.
For Script Include & Advanced reference qualifier, go thorough this old thread - How to display only unique values from the Reference variable
Thanks,
Sagar Pagar