- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2015 07:53 AM
I'm creating a catalog item to ask the submitter what group they want a user added to. I have it working except it returns the sys_ID of the group to the Incident summary field. How do I convert this to the group name?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2015 10:01 AM
Hi , if you set the group's name as Display value then getDisplayValue() is the solution for you or you can try var gr = new GlideRecord('sys_user_group'); if (gr.get(groupID))// add group ID here { // gr.name returns group's name }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2015 10:04 AM
Converted to a reference field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2015 07:53 AM
Hi Tim,
Did you get this working?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2015 07:58 AM
Yes. Ahmed had the winning answer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2019 02:42 AM
Hi I am unable to fetch the List Collector Display value from Client Enabled UI Action, i have tried the below code but no luck.can anyone help me on this.
1.g_form.getValue('v_members'); showing sysid not display value.
2.g_form.getDisplayValue('v_members'); not showing anything.
3.gr.getDisplayValue('v_members); gr is not defined.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2019 04:21 AM
Hi Rajasekar
Usually you dot walk with something like "current.assignment_group.getDisplayValue();" - you are getting the value with "gr.getDisplayValue();" and therefore leave the " ( ) " empty. So in your case, it could be something in the line of: "current.v_members.getDisplayValue();".
See below link, for getDisplayValue() in GlideRecord:
https://community.servicenow.com/community?id=community_question&sys_id=397d0fe9db9cdbc01dcaf3231f961990