Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Scripting question

Mustafeez
Tera Contributor

How can this issue be resolved if I choose caller "Sean Bonnet" and assignment group "CAB Approval" such that "Sean Bonnet" is not shown in the assign to field?

1 REPLY 1

Brad Bowman
Mega Patron

If you simply want to restrict the Assigned to field so that it can never be the same as the Caller, update your Reference qualifier on the Dictionary Override for this table (incident or whatever).  If you have something existing like 

roles=itil... put that in quotes and add ^sys_id!=' + current.caller_id with a javascript prefix, so it looks something like this

BradBowman_0-1711567936079.png

If you only want to restrict this when the Assignment group is a certain value, you can try to add this in an if condition in this string, or call a Script Include to do the filtering if it gets too complicated.