Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Reference field Qualifier to show right column.

Ram050670
Tera Guru

Hi, i am looking for solution on Portal view but i am looking to show members of the group using reference field. its showing Created and then User, i want User to be only shown to select

can any one help on this ?

Naneen_0-1695414615694.png

Naneen_1-1695414683153.png

 

1 ACCEPTED SOLUTION

i actually used sys user table and with advanced reference qualifier.

javascript:'active=true^sys_idIN'+getIDs("group sys id"); function getIDs(grp){var m=GlideUserGroup.getMembers(grp);var ids=''; while (m.next()){ids+= (m.user+',');} return ids;}

 Its working!! 

Naneen_0-1695662673941.png

 

View solution in original post

4 REPLIES 4

Brad Bowman
Kilo Patron
Kilo Patron

'Created' is an unusual field to be displayed without specifying it.  If you view a group record in the native UI is created_by/on the Display field - does it appear below 'Group' in the gray header bar?  If so, change the Display field on the table to User and you're all set.

@Brad Bowman  

is there a way to use the sys user table and get the members of group?

 

Vishal Birajdar
Giga Sage

Hi @Ram050670 

 

Can you try using "lookup select box" on "Group Member"

Lookup field - User

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

i actually used sys user table and with advanced reference qualifier.

javascript:'active=true^sys_idIN'+getIDs("group sys id"); function getIDs(grp){var m=GlideUserGroup.getMembers(grp);var ids=''; while (m.next()){ids+= (m.user+',');} return ids;}

 Its working!! 

Naneen_0-1695662673941.png