Return colums from reference lookup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 10:31 AM
I dont wanted the created on field to show in my selections that are returned from
Variable Attributes ref_auto_completer=AJAXTableCompleter,ref_ac_columns=user,ref_ac_columns_search=true,ref_ac_order_by=user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 01:42 PM
Hi @Bret Smith,
I don't believe you can hide the display value in the reference variable, in this case, the created timestamp.
It looks like you are selecting a User in the variable, and if so, you should be using the [sys_user] as the referenced table instead of the [sys_user_grmember] table.
Once you select the [sys_user] as the reference table, you won't see the created timestamp as it's not the display value on the [sys_user] table.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 02:10 PM
Ok, if I use the sys_user table I only want to the users in the sys_user table that are members of the OIT ITD group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 02:42 PM
You can write a Script Include to get a list of members from the group selected in another variable.
Have a read at this link -https://www.servicenow.com/community/developer-articles/catalog-items-make-assigned-to-dependent-on-...
Make sure you use your variable that reference the group table, I think it's the Agency in your case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 04:49 PM
here is what I have done and I am getting "no Matches".....
variable on my form to select group name is: groupname
Reference: sys_user_group
the variable that I want to select a member from the group entered (in the groupname variable) is named: itd_approval
Script Include named:findgroupmembers