Send Email notification from workflow

Shalika
Tera Expert

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?

1 ACCEPTED SOLUTION

then @Shalika do this in the script 

answer=[];

answer.push(current.variables.your_Watch_list_variable_name);

answer.push(current.variables.your_request_for_variable_name);

View solution in original post

12 REPLIES 12

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

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

Also make sure that notifications are enabled for those watchlist users as shown below,

find_real_file.png

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

then @Shalika do this in the script 

answer=[];

answer.push(current.variables.your_Watch_list_variable_name);

answer.push(current.variables.your_request_for_variable_name);