- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â08-24-2022 01:16 AM
I have a catalog item which has a field "watchlist" - this is a reference field referencing to the user table. I want that whenever the ritm is created then the notification should go to the person who is selected in the watchlist. How can I do this from workflow's notification?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â08-24-2022 01:49 AM
then
answer=[];
answer.push(current.variables.your_Watch_list_variable_name);
answer.push(current.variables.your_request_for_variable_name);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â08-24-2022 01:47 AM
Watchlist users are always list collector field and that shouldn't be an issue. Ideally email should trigger this way.
If its on Cat Item then you can use below script in script section
answer = current.variables.cat item watch_list_variable name
If you want to add other users as well then you can append them seperated by comma as shown below,
answer = current.variables.cat item watch_list_variable name+","+current.requested_for;
Let me know if you have any further questions.
Please mark this as Correct or Helpful based on the impact.
Regards,
Abhijit
Community Rising Star 2022
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â08-24-2022 01:51 AM
Also make sure that notifications are enabled for those watchlist users as shown below,
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â08-24-2022 01:49 AM
then
answer=[];
answer.push(current.variables.your_Watch_list_variable_name);
answer.push(current.variables.your_request_for_variable_name);