Help with override reference qualifier

Cirrus
Kilo Sage

We have a scoped app which generates a release management task record. The task can be reassigned, but currently its shows the full list of users, and we would like to limit this to users with ITIL role only. Tried javascript:'roles=RoleName'; but its still showing the full list. Can anyone advise if this is a syntax issue or an issue trying  to override from the scoped app?

Thanks 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Cirrus 

try this directly without javascript

roles=itil

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

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Cirrus 

try this directly without javascript

roles=itil

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

Sanjay191
Tera Sage

Hello @Cirrus 
try the below reference Qualifier and make sure your scope will be correct .

Sanjay191_0-1737469489262.png


I apply for the assigned to field you can change according to your requirement.
If you found this helpful, please give a thumbs up OR mark it as the solution. Thank you!

Mahathi
Mega Sage
Mega Sage

Hi @Cirrus ,

You might have to query the sys_user_role table as it is not directly accessible from the scoped application.

javascript:"sys_idIN"+getRoledUsers("itil").join(",").

Refer to : https://www.servicenow.com/docs/bundle/xanadu-platform-administration/page/script/server-scripting/t...

If my answer helped in any way, please mark it as ✅Correct & 👍Helpful.


Regards,
Mahathi