The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Doubt Regarding Reference Qualifier

chaudhary23
Mega Contributor

I want to apply Reference Qualifier on assigned to field based on assignment group, In how many ways can i do so ?? please reply if anyone knows how to do it.

7 REPLIES 7

KrishnaMohan
Giga Sage

Hi @chaudhary23 

As per servicenow docs (refer here), There are three primary ways to apply a Reference Qualifier on the Assigned to field based on the Assignment Group in ServiceNow:

  1. Simple Reference Qualifier: This is the most common and easiest method. You can directly set the reference qualifier on the dictionary entry of the Assigned to field. The qualifier uses a simple query to filter users based on the Assignment Group selected.

  2. Advanced Reference Qualifier: This method uses a JavaScript function to dynamically build the query. You would create a script include that contains the logic to get the members of the selected assignment group. This approach is more flexible, especially when the filtering logic is complex and can't be achieved with a simple query.  This article might help you Improving advanced reference qualifier performance.

  3. Dynamic Reference Qualifier: This is the most advanced method. You create a special type of script include that implements a GlideRecord query to dynamically filter the results. This method is reusable and can be applied to multiple reference fields with similar filtering requirements.

 

If this helped to answer your query, please mark it helpful & accept the solution.
Regards,
Krishnamohan

Bhimashankar H
Mega Sage

Hi @chaudhary23 ,

 

You can apply a Reference Qualifier to the Assigned To field based on the selected Assignment Group by:

 

1)Reference Qualifier:

a)Simple Reference: Add an encoded query to the Assigned To field dictionary

b)Advance Reference Qualifier: Use a script to dynamically return a query based on the value of the Assignment Group on the form.

c)Dynamic Reference Qualifier: You can create script inlcude to return the record of who meets condition then call this script when you select this type.

 

2)If these fields are equivalent to fields on incident form then you can check there would be 'dependant field' tab on assigned to field on incident form and it will have 'assignment_group' as a value, so you do not need to have the write any reference qualifier here. Check on incident form

 

If you want to implement on any custom form for any fields check you need to go implement the any type of reference qualifier explained above.

 

Thanks,
Bhimashankar H

 

-------------------------------------------------------------------------------------------------
If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. Thanks!

Hi @chaudhary23 ,

 

I hope you saw my reply. 


If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. It will help future readers as well having similar kind of questions and close the thread.

Thanks,
Bhimashankar H

Bhuvan
Kilo Patron

@chaudhary23 

 

You can use,

 

1. Simple Reference Qualifier

2. Dynamic Reference Qualifier

3. Advanced Reference Qualifier

 

Refer below articles that can help you understand in detail,

 

https://www.servicenow.com/community/developer-articles/reference-qualifiers-in-servicenow/ta-p/2327...

 

https://www.servicenow.com/community/developer-articles/article-4-depending-reference-fields-using-r...

 

If this helped to answer your query, please mark it helpful & accept the solution. 

 

Thanks,

Bhuvan