dynamic populate the assignment group based on condition.

biplab
Tera Contributor

I have a true/false field in incident form called security related incident. I want to populate only two assignment group in assignment group reference field when the security related incident checkbox is true.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@biplab 

so you want to apply reference qualifier on assignment group field

you need to use Dictionary override on Assignment Group field as it's on task level and have the logic checked there

Something like this

Give the field name, group sysIds

javascript: var query ='' ; if(current.field.toString() == 'true') query = 'sys_idINGroupSysId1,GroupSysId2';  query;

AnkurBawiskar_0-1730815571394.png

 

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

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@biplab 

so you want to apply reference qualifier on assignment group field

you need to use Dictionary override on Assignment Group field as it's on task level and have the logic checked there

Something like this

Give the field name, group sysIds

javascript: var query ='' ; if(current.field.toString() == 'true') query = 'sys_idINGroupSysId1,GroupSysId2';  query;

AnkurBawiskar_0-1730815571394.png

 

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

Hello Ankur,

I have already one dictionary override for the same field.

I have already a dictionary override in incident table and assignment group field. its don't allow me to create another one.

Hello Ankur,

i have applied this query in dictionary override reference qualifier but its not working fine, it shows all assignment group in assignment group field.

 

Thanks