Creating a reference qualifier to show certain assignment groups

matthew_hughes
Kilo Sage

On the below form, I'm wanting to add a filter within the 'Assignment group' field:

 

Assigment group form.png

 

However, what I'm wanting to do is restrict the number of 'Assignment groups' that appear. The groups should only appear where the Active flag is true and their parent's parent is 'Markets'.

 

I've tried the following reference qualifier in the Dictionary Entry Override on the assignment group field, but it's not working:

Reference Qualifier.png

I was just wondering if somebody could explain why it's not working and what I need to only show groups where the Active flag is true and their parent's parent is 'Markets'.

 

 

1 ACCEPTED SOLUTION

@Daniel Borkowi1 ; yes your correct and there is no need of javascript in this case (since we are overriding with simple query)

something like :  active=true^parent.parent=sys_id of the Markest group^EQ >>> works

 

HemanthM1_0-1687176007393.png

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

View solution in original post

5 REPLIES 5

Daniel Borkowi1
Mega Sage

Hi @matthew_hughes, your script should deliver a Encoded Query, so in your case it should deliver: 

 

 

"active=true^" +"parent.parent.name=Markets"

 

DanielBorkowi1_0-1687175167686.png

 

Hope that helps.

Greets Daniel.

Hemanth M1
Giga Sage
Giga Sage

Hi @matthew_hughes 

active=true^parent.parent=sys_id of the Markest group^EQ

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

The current is referencing the record there the assignment group field is placed. So you shouldn't use current in this kind of reference qualifier, because the query is independent of this record.

https://docs.servicenow.com/en-US/bundle/utah-platform-administration/page/script/server-scripting/c...

@Daniel Borkowi1 ; yes your correct and there is no need of javascript in this case (since we are overriding with simple query)

something like :  active=true^parent.parent=sys_id of the Markest group^EQ >>> works

 

HemanthM1_0-1687176007393.png

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025