The CreatorCon Call for Content is officially open! Get started here.

Notification on flow designer

Thomas98
Tera Expert

I need help in sending a notification from a flow designer for a catalog item. 

I have configured the notification and called it in the flow designer, all of it works. My issue is I also need to copy the director on this notification.

"Reporting director" is a user table referenced variable on the catalog item form. I need to include director in the notification. I cannot add the "who to send" in the notification itself as its dynamic based on the user input on the catalog form. 

 

How do I achieve this? 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

You will have to include email script so that Reporting Director is included in CC

Include that email script in your notification

Script would be something like this

email.addAddress('cc', current.variables.reporting_director.email, current.variables.reporting_director.name);

Scripting for email notifications

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Maik Skoddow1
Tera Contributor

Hi

from the following playlist watch the last two videos; https://www.youtube.com/playlist?list=PLkQDoKoP0MAOMa7o_B8_hhtzoXMA7ZQaJ

Kind regards
Maik

Maik Skoddow
Tera Patron
Tera Patron

Hi Thomas

from the following playlist watch the last two videos; https://www.youtube.com/playlist?list=PLkQDoKoP0MAOMa7o_B8_hhtzoXMA7ZQaJ

Kind regards
Maik

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

You will have to include email script so that Reporting Director is included in CC

Include that email script in your notification

Script would be something like this

email.addAddress('cc', current.variables.reporting_director.email, current.variables.reporting_director.name);

Scripting for email notifications

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur, 

 

Thanks for helping me out. 

I created a email script and called in the body of the email (message html) and when I preview the email in the sent its not including the director. Looks like I'm doing something wrong.