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.

SHow only Username in catalog variable reference

Nisha30
Kilo Sage

Hello Experts,

 

We are developing catalog form and created a variable as reference (sys_user_grmember) to select the user from it.

When selected it displays Group name, User, and others .

When I select group it displays Username , but we need to show only user name in there.

 

I went to sys_ref_list and for sys_user_grmember added Element = User_name still no luck.

might be doing wrong here please assist.

 

How do I do it

Thanks

1 ACCEPTED SOLUTION

Barath P
Tera Guru

Hi @Nisha30,

You can restrict the fields shown by using a Reference Qualifier. In your catalog form, for the variable referencing sys_user_grmember.

Check the screen shot below and try this
Screenshot 2024-10-08 171415.png

"If you found my answer helpful, please give it a like and mark it as the accepted solution. It helps others find the solution more easily and supports the community!"

 

Thanks & Regards,

Barath.P


View solution in original post

1 REPLY 1

Barath P
Tera Guru

Hi @Nisha30,

You can restrict the fields shown by using a Reference Qualifier. In your catalog form, for the variable referencing sys_user_grmember.

Check the screen shot below and try this
Screenshot 2024-10-08 171415.png

"If you found my answer helpful, please give it a like and mark it as the accepted solution. It helps others find the solution more easily and supports the community!"

 

Thanks & Regards,

Barath.P