Populate the members which is present in the Group

shubhi211
Tera Guru

In catalog item there is a

field name: In which Groups to be added/removed (this is Reference Field)

Field Name: Users to be removed (List collector)

 

So the requirement is: what ever group is being mentioned in "In which Groups to be added/removed"

In the field "Users to be removed" the group members name should be there in the list collector.Capture.PNG

 

below is what I have done, but with this under the field "Users to be removed" Group name is populating (instead of  group member name)

Capture2.PNG

3 ACCEPTED SOLUTIONS

MackI
Kilo Sage

HI @shubhi211 

 

I understand the scenario from the screenshot.Can you pls share the exact User Story and acceptence criteria that you try to achieve?

 

After that, please mark my reply as Helpful so that  I can prepare your catalogue item solution code within a day.It's going to be the Glide Alex script which I need to prepare 

MackI | ServiceNow Developer | 2 *Mainline Certification | LinkedIn Top IT Operation Voice 2023 | Sydney,Australia

View solution in original post

Under In the field "Users to be removed" the group members name should be there in the list collector, instead of Group name.

 

Like in the above-mentioned case "Group name" is being populated.

Like in group there is 10 users so 10 times "Group name" is coming but instead 10 group number names should some under the list.

View solution in original post

SN_Learn
Kilo Patron
Kilo Patron

Hi @shubhi211 ,

 

Your reference qualifier is correct.

The change that have to do it as below:

1. Open the table [sys_user_grmember], then right click and select configure> table.

 

SN_Learn_0-1720961207528.png

 

2. Now, find the User field and set the display value to true

 

SN_Learn_1-1720961283959.png

 

 

Result will be as below:

 

SN_Learn_2-1720961354652.png

 

 

Mark this as Helpful / Accept the Solution if this helps

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

View solution in original post

5 REPLIES 5

MackI
Kilo Sage

HI @shubhi211 

 

I understand the scenario from the screenshot.Can you pls share the exact User Story and acceptence criteria that you try to achieve?

 

After that, please mark my reply as Helpful so that  I can prepare your catalogue item solution code within a day.It's going to be the Glide Alex script which I need to prepare 

MackI | ServiceNow Developer | 2 *Mainline Certification | LinkedIn Top IT Operation Voice 2023 | Sydney,Australia

Under In the field "Users to be removed" the group members name should be there in the list collector, instead of Group name.

 

Like in the above-mentioned case "Group name" is being populated.

Like in group there is 10 users so 10 times "Group name" is coming but instead 10 group number names should some under the list.

SN_Learn
Kilo Patron
Kilo Patron

Hi @shubhi211 ,

 

Your reference qualifier is correct.

The change that have to do it as below:

1. Open the table [sys_user_grmember], then right click and select configure> table.

 

SN_Learn_0-1720961207528.png

 

2. Now, find the User field and set the display value to true

 

SN_Learn_1-1720961283959.png

 

 

Result will be as below:

 

SN_Learn_2-1720961354652.png

 

 

Mark this as Helpful / Accept the Solution if this helps

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

Thank you, It solved my issue