Set Reference qualifier to only show assignment group parent for selected company

mhafizam
Kilo Guru

Hello everyone,

 

I'm trying to filter the available options in the Assignment Group field based on the Company selected.

I've been looking into Reference Qualifiers, but I'm struggling to apply a condition to achieve this. My goal is to ensure that when a new incident has 'Test Company' selected as the Company, the Assignment Group field only displays groups with the parent 'Test ITIL Fulfillers' related to that company.

I'd appreciate any guidance or suggestions on how to set this up. Thanks in advance!

1 ACCEPTED SOLUTION

Nishant8
Giga Sage

Hello @mhafizam, Since there is no relationship between Group and Company exist, you might have to do following:

1. Create a reference field on Group table with name company - you can refer user table and replicate same here.

2. Once #1 is complete, go to INC form -> right click and configure dictionary -> Under the 'Dictionary Overrides' relationship, open incident entr

Nishant8_0-1740496375123.png

3. Select 'Override Dependent' checkbox and type company there

Nishant8_1-1740496542005.png

 

please try above steps and let me know whether it solves the problem

 

View solution in original post

8 REPLIES 8

The company operates as a vendor (test company). When the 'test' vendor company is selected in the company field, the system should display only the parent groups that have associated subgroups.

@mhafizam 

how do you determine this? -> display only the parent groups that have associated subgroups.

If test company is selected then which field on Group table will you use to relate to company?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

when test company selected, in assigned group [sys_user_group] will show parent.

i'll show you example filter that i run as below. parent is EQ ITIL and it will show only subgroup as screenshot

 

 

mhafizam_0-1740500314386.png

 

@mhafizam 

you can create a dictionary override on Assignment group field for your table and use advanced ref qualifier

something like this

If that particular company is selected then it will show groups based on that query; if another company then it will show all groups

javascript: var query=''; if(current.company.name == 'company name') query='parent.nameINEQ ITIL Fulfillers'; query;

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader