- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 01:22 PM
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.)
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 02:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 01:43 PM - edited 03-25-2024 01:45 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 01:50 PM
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;
}());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 02:00 PM
You will need to update the Email Notification to fire on the event.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 03:54 PM
Thanks.. I rechecked the event and it was fine but the notification was pointing to the wrong event.