Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to set users to watch list automatically when choose certain category

AbdulAzeez
Mega Guru

Hello Everyone,

I have a requirement whenever i select a category of "Network" in incident table i must auto-populate 2 users name like user#1 , user#2 in watch list

Please help me out how to achieve this

1 ACCEPTED SOLUTION

Hi Abdul, IN client script use


var a = "sys_idof user1" + ","+ "sys_id of user 2";


g_form.setValue("watch_list", a)


View solution in original post

21 REPLIES 21

I've gone ahead and changed this from a discussion to a question.   You should now be able to mark a reply as correct.



Thanks,


you can have before update Business rule when when Category is Network.



gliderecord to sys_user table and the add the user name to watch list else mention the name of users for the specific category.