How to get a group member of the selected department?

Annie Scott
Tera Contributor

I have a reference variable "current approver" in which I have to display the users from the  group of the selected department. 

1 ACCEPTED SOLUTION

Ashish Parab
Mega Sage

Hey @Annie Scott ,

 

You could try adding the "Department" field as a dependent field.

 

ashish_parab_0-1729663182898.png

 

Please mark this response as Correct and Helpful if it assists you. You can mark more than one reply as an accepted solution.


Thanks,
Ashish Parab

 

View solution in original post

4 REPLIES 4

Runjay Patel
Giga Sage

Hi @Annie Scott ,

 

you can add reference qualifier "current approver" filed like below.

RunjayPatel_0-1729662074342.png

 

javascript: 'department=' + current.variables.department;

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.

Regards
Runjay Patel - ServiceNow Solution Architect
LinkedIn: https://www.linkedin.com/in/runjay
YouTube: https://www.youtube.com/@RunjayP

-------------------------------------------------------------------------

 

Hi @Runjay Patel 

 

I am not getting correct results. Can you help me with any other solution.

AnnieScott_0-1729672998778.png

In the screenhot, I ahve the task mentioned.

Ashish Parab
Mega Sage

Hey @Annie Scott ,

 

You could try adding the "Department" field as a dependent field.

 

ashish_parab_0-1729663182898.png

 

Please mark this response as Correct and Helpful if it assists you. You can mark more than one reply as an accepted solution.


Thanks,
Ashish Parab

 

Hi @Ashish Parab 

I am not getting correct results. Can you help me with any other solution.

AnnieScott_0-1729673126971.png

 

In the screenhot, I ahve the task mentioned.