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

Vasantharajan N
Giga Sage
Giga Sage

You can use Notification activity in the workflow and enable advanced checkbox and set the value of answer to the watchlist variable on your catalogue item like shown below and add the email subject and body.

var answer = current.variables.watch_list_variable_name.toString();

find_real_file.png


Thanks & Regards,
Vasanth

If I want to send the notification to the person added in watch list as well as in the requested for variable

Mohith Devatte
Tera Sage
Tera Sage

Hello @Shalika ,

if you are using a workflow then you can use a notification activity which will be present in workflow and give the recipients like below 

if its a field on RITM table use current.watch_list

if its a variable on the catalog item use current.variables.watch_list_variables_name

find_real_file.png

Hope this helps 

PLEASE MARK MY ANSWER CORRECT IF THIS HELPS YOU

 

Abhijit4
Mega Sage

You can watchlist users and other recipients in to list as shown below,

find_real_file.png

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