Automattically add Certain users to RTASK watch list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2023 11:38 AM
We are sending e-mail to ServiceNow and it automatically creates a TASK
we want Certain users to be automatically added as watchlist members to that TASK
Have the following script
if (email.body.CAIRCA == "CAIRCA")
var wlist = email.body.wtlist;
current.watch_list = wlist;
current.update();
e-mail body will be as follows
CAIRCA:CAIRCA
wtlist:xyz1@exmplae.com;xyz2@example.com
My task is getting created, assigned to correct group as we have the following field also (as below) in the e-mail, but the Watch List is still empty. xyz1 and xyz2 are just to show, but we are e-mail of correct users in the system
Group: SNow-Business Applications & Integrations
Thanks for your feedback
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2023 03:09 PM
so I modified my script as follows