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 add people to watchlist automatically

ursnani
Giga Guru

I have a   field on Catalog Item "other_interested_parties"( Referring User Table and its a List Collector). When the user adds users to that field and submit the request then the people in that field should be added automatically to watchlist. I know we can do this after Business Rule (Insert).

Can any one please provide with code which helps me alot.

Thanks

1 ACCEPTED SOLUTION

So your modified code should be



if(current.variables.other_interested_parties)


{


current.watch_list = current.variables.other_interested_parties;


}


View solution in original post

10 REPLIES 10

HI Sanjeev,



I have many Catalog Items with the same field which has to inherit the same property, So do i have to add all my Catalog item in the condition or is there any way i can achieve this.