Assigne To filtering based on Assignment Group

Erik Gunther2
Kilo Guru

How does the Assigned To reference field get filtered when you change the Assignment Group value? When changing he Assignment Group value, out of the box the Assigned To value is removed and the lookup shows the list of users associated with the newly selected Assignment Group. I would have expected to see maybe a Reference qualifier or a client script or something.

In addition to this problem, I have a scoped application with a custom table that extends Task. If I try to update the reference qualifier with a javascript script include, it appears I'll be updating the underlying Task table? Or will my changes only affect my custom table? I ask because the Assigned To field is one of the task fields I inherited into my custom table. 

3 REPLIES 3

The SN Nerd
Giga Sage
Giga Sage

How does the Assigned To reference field get filtered when you change the Assignment Group value? When changing he Assignment Group value, out of the box the Assigned To value is removed and the lookup shows the list of users associated with the newly selected Assignment Group. I would have expected to see maybe a Reference qualifier or a client script or something.

It is done by field dependency. The dependent field is set as 'Assignment Group'.
This doesn't work on all reference fields, there is some magic that goes on. I have inquired about it on the forum before and it seems to be a black box type of function. There is no back-end script to speak of that can be seen to work it out.

In addition to this problem, I have a scoped application with a custom table that extends Task. If I try to update the reference qualifier with a javascript script include, it appears I'll be updating the underlying Task table? Or will my changes only affect my custom table? I ask because the Assigned To field is one of the task fields I inherited into my custom table. 

Use Dictionary Overrides to change the reference qualifier without overriding it on other tables.

 


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Del4
Tera Contributor

@Paul Morris Can it be bi-directional? For example, if the assigned to field is done first, when the assignement group field is then filled out, can only groups that the assigned to is a member of only show up??

Thanks

Del

I think that could work if you remove the field dependency and do it purely by reference qualifiiers, checking the value of both fields before returning the appropriate ref qual.


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022