Set dynamic subject for email client template
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2023 05:17 PM
Hello all,
I'm trying to create an email client template on the Incident Communication Task table. However, the subject of the template requires me to use field values from the related incident to populate. Here's what I have attempted:
- Use the ${field name} syntax in the Subject field. This worked, but the subject field only allows 100 characters, so I couldn't put all variables required in the subject.
- Create an email script. It didn't show up when I call it in the body, and when I put it in the subject instead, it just displayed the ${mail_script:...} line.
- Create a script include function and call it via javascript. This also didn't work.
So how can I achieve this? I appreciate your help.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2023 08:39 PM
Is "Incident Communication Task" table a custom table? I'm unable to find it on personal instance to verify field names (I'm looking at sys_dictionary.list). Notifications with mailscripts can be tricky, verify the recipient has their notifications on, or this wont even fire. A mailscript could fail on 1 thing and not ever really tell you, other than in logs.
Verify the table on the notification matches what "current" is in the mailscript.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2023 11:25 PM
Hi, Incident Communication Task table is part of the Incident Communications Management application, activated by plugin. As for the remainder of your reply, please refer to my reply to Basheer.