Advanced Send To in Workflow Notification versus System Email Notifications

Alan42
Tera Guru

I have a working workflow notification that sends to an email variable using the 'To (script)' below.  ('plant_email is the variable in the workflow.)

 

Alan42_0-1711397530550.png

 

I have to add images and formatting for the business so I need to recreate the notification in 'System - Email - Notifications'.   That notification component allows me to format and add images and copy over the subject and message body from the workflow without any changes and make easy formatting edits and additions.    What it doesn't seem to do is allow me to add the receiver variable.   The variable fields are available in reports but not here.    There's no option for a script here and I couldn't find anything for it in layout.  Am I missing something in form layout?   What is the proper way to do this?   I think a script is probably involved but I don't know how to do one that will allow me to add images or easily change formatting.    

 

Alan42_1-1711397899296.png

 

1 ACCEPTED SOLUTION

You will need to update the Email Notification to fire on the event.

View solution in original post

6 REPLIES 6

Brad59
Giga Guru

Update the workflow step to trigger an event and pass the email as an event parameter. In the email configuration, you can select is fired by an event.

 

EDIT: It would probably be a good idea to create a new event in the Event Registry specifically for this action.

Alan42
Tera Guru

I've created a new event and tried using Parameter 2 as suggested in other posts.   Did I miss something?    

 

(function() {
return answer = current.variables.plant_email;
}());

 

Alan42_0-1711399788766.png

 

You will need to update the Email Notification to fire on the event.

Thanks..  I rechecked the event and it was fine but the notification was pointing to the wrong event.